Commit e4819a9d83f6ba73cc8899964bc4dcf2fabdf24f
1 parent
f298481d
注释掉快递员分配逻辑
Showing
1 changed file
with
11 additions
and
11 deletions
sl-express-ms-dispatch-service/src/main/java/com/sl/ms/dispatch/mq/OrderMQListener.java
| ... | ... | @@ -74,17 +74,17 @@ public class OrderMQListener { |
| 74 | 74 | Double latitude = orderMsg.getLatitude(); |
| 75 | 75 | |
| 76 | 76 | Long selectedCourierId = null; |
| 77 | - List<Long> courierIds = courierFeign.queryCourierIdListByCondition( | |
| 78 | - agencyId, | |
| 79 | - longitude, | |
| 80 | - latitude, | |
| 81 | - LocalDateTimeUtil.toEpochMilli(orderMsg.getEstimatedEndTime())); | |
| 82 | - log.info("快递员微服务查出的ids:{}", courierIds); | |
| 83 | - if (CollUtil.isNotEmpty(courierIds)) { | |
| 84 | -// 选中快递员 | |
| 85 | - selectedCourierId = selectCourier(courierIds, orderMsg.getTaskType()); | |
| 86 | - log.info("根据当前任务选出的快递员ID:{}", selectedCourierId); | |
| 87 | - } | |
| 77 | +// List<Long> courierIds = courierFeign.queryCourierIdListByCondition( | |
| 78 | +// agencyId, | |
| 79 | +// longitude, | |
| 80 | +// latitude, | |
| 81 | +// LocalDateTimeUtil.toEpochMilli(orderMsg.getEstimatedEndTime())); | |
| 82 | +// log.info("快递员微服务查出的ids:{}", courierIds); | |
| 83 | +// if (CollUtil.isNotEmpty(courierIds)) { | |
| 84 | +//// 选中快递员 | |
| 85 | +// selectedCourierId = selectCourier(courierIds, orderMsg.getTaskType()); | |
| 86 | +// log.info("根据当前任务选出的快递员ID:{}", selectedCourierId); | |
| 87 | +// } | |
| 88 | 88 | |
| 89 | 89 | // 发送消息 |
| 90 | 90 | CourierTaskMsg courierTaskMsg = CourierTaskMsg.builder() | ... | ... |