Commit aa979eae by wangli

新增自有/加盟点筛选

1 parent 7c7a9683
......@@ -22,6 +22,7 @@ public class DispatchOrderListReq {
private List<Integer> priorities;
private List<String> typeCategory;
private List<String> skillCategory;
private List<Integer> groupCategory;
private String phone;
private String orderId;
private List<String> appointmentStatus;
......
......@@ -28,6 +28,7 @@ public class OrderServiceListReq {
private List<Integer> priorities;
private List<String> typeCategory;
private List<String> skillCategory;
private List<Integer> groupCategory;
private String phone;
private String orderId;
private List<String> appointmentStatus;
......
......@@ -307,6 +307,11 @@ public class DispatchServiceImpl implements DispatchService {
String sql = String.format("select 1 from order_appointment oa where oa.order_id = order_request.order_id and oa.dt = order_request.dt and oa.engineer_code in (%s)", engineerCodes);
lqw.exists(sql);
}
if (ListUtils.isNotEmpty(reqDTO.getGroupCategory())) {
String groupCategory = reqDTO.getGroupCategory().stream().map(Object::toString).collect(Collectors.joining(","));
String sql = String.format("select 1 from org_group g where g.group_id = order_request.org_group_id and g.category in (%s)", groupCategory);
lqw.exists(sql);
}
return orderRequestMPDao.selectList(lqw);
}
......
......@@ -78,6 +78,12 @@ public class OrderServiceListServiceImpl implements OrderServiceListService {
lqw.exists(sql);
}
if (ListUtils.isNotEmpty(reqDTO.getGroupCategory())) {
String groupCategory = reqDTO.getGroupCategory().stream().map(Object::toString).collect(Collectors.joining(","));
String sql = String.format("select 1 from org_group g where g.group_id = order_request.org_group_id and g.category in (%s)", groupCategory);
lqw.exists(sql);
}
// 查询工单表列表
orderRequestMPDao.selectPage(pg, lqw);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!