Commit 21480ca81975699a62cc83b5ae2dd4f0071a081c
Merge remote-tracking branch 'origin/master_cj_zq' into master_cj_zq
Showing
1 changed file
with
5 additions
and
2 deletions
xingyun-sc/src/main/java/com/lframework/xingyun/sc/impl/shipments/ShipmentsOrderInfoServiceImpl.java
| @@ -354,8 +354,11 @@ public class ShipmentsOrderInfoServiceImpl extends BaseMpServiceImpl<ShipmentsOr | @@ -354,8 +354,11 @@ public class ShipmentsOrderInfoServiceImpl extends BaseMpServiceImpl<ShipmentsOr | ||
| 354 | List<List<ShipmentsPlanDetail>> batchList = CommonUtil.partition(detailList, 8); | 354 | List<List<ShipmentsPlanDetail>> batchList = CommonUtil.partition(detailList, 8); |
| 355 | handleBatchData(batchList, planId); | 355 | handleBatchData(batchList, planId); |
| 356 | } | 356 | } |
| 357 | - // 更细发货计划状态 | ||
| 358 | - shipmentsPlanDetailService.completed(planId); | 357 | + ShipmentsPlan plan = shipmentsPlanService.findById(planId); |
| 358 | + if ("IN_PROGRESS".equals(plan.getStatus())) { | ||
| 359 | + // 更新发货计划状态 | ||
| 360 | + shipmentsPlanDetailService.completed(planId); | ||
| 361 | + } | ||
| 359 | } | 362 | } |
| 360 | 363 | ||
| 361 | 364 |