guoyujia 1 year ago
parent
commit
17909a2750

+ 5 - 0
src/main/java/cn/ezhizao/project/business/controller/BizProductionPlanDetailController.java

@@ -139,6 +139,11 @@ public class BizProductionPlanDetailController extends BaseController {
         notStartList.forEach(item ->
         {item.setTechnologyVersion(bizProductionPlanDetail.getTechnologyVersion());
                 item.setTechnologicalProcessId(bizProductionPlanDetail.getTechnologicalProcessId());});
+        //修改生产计划表的版本
+        BizProductionPlanDetail productionPlanDetail = bizProductionPlanDetailService.getById(bizProductionPlanDetail.getId());
+        productionPlanDetail.setTechnologicalProcessId(bizProductionPlanDetail.getTechnologicalProcessId());
+        productionPlanDetail.setTechnologyVersion(bizProductionPlanDetail.getTechnologyVersion());
+        bizProductionPlanDetailService.updateById(productionPlanDetail);
         return toAjax(bizLotService.updateBatchById(notStartList));
     }