Commit 4b27f6e49f9721264cf700ff16fab01514fd4efd
1 parent
204c7f8d
楚江erp:生成发货单-仅在“IN_PROGRESS”状态下更新计划状态数据
Showing
1 changed file
with
5 additions
and
2 deletions
xingyun-sc/src/main/java/com/lframework/xingyun/sc/impl/shipments/ShipmentsOrderInfoServiceImpl.java
| @@ -350,8 +350,11 @@ public class ShipmentsOrderInfoServiceImpl extends BaseMpServiceImpl<ShipmentsOr | @@ -350,8 +350,11 @@ public class ShipmentsOrderInfoServiceImpl extends BaseMpServiceImpl<ShipmentsOr | ||
| 350 | List<List<ShipmentsPlanDetail>> batchList = CommonUtil.partition(detailList, 8); | 350 | List<List<ShipmentsPlanDetail>> batchList = CommonUtil.partition(detailList, 8); |
| 351 | handleBatchData(batchList, planId); | 351 | handleBatchData(batchList, planId); |
| 352 | } | 352 | } |
| 353 | - // 更细发货计划状态 | ||
| 354 | - shipmentsPlanDetailService.completed(planId); | 353 | + ShipmentsPlan plan = shipmentsPlanService.findById(planId); |
| 354 | + if ("IN_PROGRESS".equals(plan.getStatus())) { | ||
| 355 | + // 更新发货计划状态 | ||
| 356 | + shipmentsPlanDetailService.completed(planId); | ||
| 357 | + } | ||
| 355 | } | 358 | } |
| 356 | 359 | ||
| 357 | 360 |