Commit 90d90b64 by wangli

修改

1 parent b9e35154
......@@ -88,8 +88,17 @@ public class DispatchServiceImpl implements DispatchService {
return Result.success(res);
}
@Transactional
@Override
public Result<?> getDispatchEngineerOrderList(String levelType, List<String> levelIds, String date) {
// 获取groupIds
List<String> groupIds = this.queryOrgGroupIds(levelType, levelIds);
// 获取engineerCodes
List<String> engineerCodes = this.queryEngineerCodes(groupIds);
List<String> orderIds = this.queryOrderAppointmentOrderIds(engineerCodes, date);
return null;
}
......@@ -114,15 +123,16 @@ public class DispatchServiceImpl implements DispatchService {
return orderRequestMPDao.selectList(lqw);
}
private List<OrderAppointment> queryOrderAppointments(List<String> engineerCodes, String date) {
private List<String> queryOrderAppointmentOrderIds(List<String> engineerCodes, String date) {
// 获取工程师服务单列表
List<String> orderIds = new ArrayList<>();
LambdaQueryWrapper<OrderAppointment> lqw = new LambdaQueryWrapper<>();
lqw.in(OrderAppointment::getEngineerCode, engineerCodes);
lqw.eq(OrderAppointment::getStatus, "预指派");
lqw.ge(OrderAppointment::getExpectTime, this.DateString2Timestamp(date, "00:00:00"));
lqw.le(OrderAppointment::getExpectTime, this.DateString2Timestamp(date, "23:59:59"));
orderAppointmentMPDao.selectList(lqw);
return null;
lqw.select(OrderAppointment::getOrderId);
return orderAppointmentMPDao.selectList(lqw).stream().map(OrderAppointment::getOrderId).collect(Collectors.toList());
}
private List<String> queryEngineerCodes(List<String> groupIds) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!