Commit 2b49ea4c authored by chenjiuping's avatar chenjiuping

修正异常查询的SQL

parent 5f150ab3
......@@ -447,7 +447,8 @@ public class OrderExceptionServiceImpl extends AbstractService<OrderExceptionMap
queryWrapper.eq(StrUtil.isNotBlank(reqVo.getSalesmanId()), "o.salesman_id", reqVo.getSalesmanId());
if (null != reqVo.getCustomerIds() && reqVo.getCustomerIds().size() > 0) {
queryWrapper.in("o.salesman_id", reqVo.getCustomerIds());
//queryWrapper.in("o.salesman_id", reqVo.getCustomerIds());
queryWrapper.and(wrapper -> wrapper.in("o.salesman_id", reqVo.getCustomerIds()).or().apply("o.customer_id in(select cus.id from ecw_customer cus where cus.is_customer_service_confirmed = 1 and cus.customer_service in ({0}))", ArrayUtil.join(reqVo.getCustomerIds().toArray(), ",")));
}
queryWrapper.eq(StringUtils.isNotBlank(reqVo.getOrderStatus()), "a.status", reqVo.getOrderStatus());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment