Commit 686d84e2 by wangli

吸怪

1 parent 6d3be815
...@@ -10,6 +10,7 @@ import org.springframework.beans.factory.annotation.Autowired; ...@@ -10,6 +10,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import java.lang.management.PlatformManagedObject;
import java.sql.Timestamp; import java.sql.Timestamp;
import java.time.format.DateTimeFormatter; import java.time.format.DateTimeFormatter;
import java.util.ArrayList; import java.util.ArrayList;
...@@ -98,6 +99,8 @@ public class DispatchServiceImpl implements DispatchService { ...@@ -98,6 +99,8 @@ public class DispatchServiceImpl implements DispatchService {
List<String> orderIds = this.queryOrderAppointmentOrderIds(engineerCodes, date); List<String> orderIds = this.queryOrderAppointmentOrderIds(engineerCodes, date);
List<OrderRequest> orders = this.queryOrderRequestByOrderId(orderIds);
return null; return null;
} }
...@@ -122,6 +125,16 @@ public class DispatchServiceImpl implements DispatchService { ...@@ -122,6 +125,16 @@ public class DispatchServiceImpl implements DispatchService {
return orderRequestMPDao.selectList(lqw); return orderRequestMPDao.selectList(lqw);
} }
private List<OrderRequest> queryOrderRequestByOrderId(List<String> orderIds) {
List<OrderRequest> orders = new ArrayList<>();
if (orderIds.isEmpty()){
return orders;
}
LambdaQueryWrapper<OrderRequest> lqw = new LambdaQueryWrapper<>();
lqw.in(OrderRequest::getOrderId, orderIds);
return orderRequestMPDao.selectList(lqw);
}
private List<String> queryOrderAppointmentOrderIds(List<String> engineerCodes, String date) { private List<String> queryOrderAppointmentOrderIds(List<String> engineerCodes, String date) {
// 获取工程师服务单列表 // 获取工程师服务单列表
List<String> orderIds = new ArrayList<>(); List<String> orderIds = new ArrayList<>();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!