Commit fa366b37 by 王力

Merge branch 'dev_engineer_dynamics0728' into 'develop'

修改

See merge request !300
2 parents 7a665627 755c58b6
...@@ -27,9 +27,6 @@ public class EngineerTimelineServiceImpl implements EngineerTimelineService { ...@@ -27,9 +27,6 @@ public class EngineerTimelineServiceImpl implements EngineerTimelineService {
private EngineerInfoMPDao engineerInfoMPDao; private EngineerInfoMPDao engineerInfoMPDao;
@Autowired @Autowired
private OrderRequestMPDao orderRequestMPDao;
@Autowired
private WarehouseInfoMPDao warehouseInfoMPDao; private WarehouseInfoMPDao warehouseInfoMPDao;
@Autowired @Autowired
...@@ -55,7 +52,7 @@ public class EngineerTimelineServiceImpl implements EngineerTimelineService { ...@@ -55,7 +52,7 @@ public class EngineerTimelineServiceImpl implements EngineerTimelineService {
List<OrderEvent> timelines = this.engineerTimelines(orderIds, date); List<OrderEvent> timelines = this.engineerTimelines(orderIds, date);
// 获取客户地址 // 获取客户地址
HashMap<String, String> orderLocations = this.orderRequestsLocation(orderIds); HashMap<String, String> orderLocations = this.orderRequestsLocation(orders);
// 获取配送站地址 // 获取配送站地址
String branchId = this.getEngineerBranchId(engineerCode); String branchId = this.getEngineerBranchId(engineerCode);
...@@ -90,13 +87,10 @@ public class EngineerTimelineServiceImpl implements EngineerTimelineService { ...@@ -90,13 +87,10 @@ public class EngineerTimelineServiceImpl implements EngineerTimelineService {
return orderEventMPDao.selectList(lqw); return orderEventMPDao.selectList(lqw);
} }
private HashMap<String, String> orderRequestsLocation(List<String> orderIds) { private HashMap<String, String> orderRequestsLocation(List<OrderInfo> orders) {
// 获取客户地址location // 获取客户地址location
HashMap<String, String> map = new HashMap<>(); HashMap<String, String> map = new HashMap<>();
LambdaQueryWrapper<OrderRequest> lqw = new LambdaQueryWrapper<>(); for(OrderInfo o: orders){
lqw.in(OrderRequest::getOrderId, orderIds);
List<OrderRequest> orders = orderRequestMPDao.selectList(lqw);
for(OrderRequest o: orders){
map.put(o.getOrderId(), String.format("%s,%s", o.getX(), o.getY())); map.put(o.getOrderId(), String.format("%s,%s", o.getX(), o.getY()));
} }
return map; return map;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!