| | |
| | | import com.aps.core.service.ApsPlate.IApsPlateOrderPlanManagerService; |
| | | import com.aps.core.service.ApsPlate.IApsPlateStandardRequireBatchService; |
| | | import com.aps.core.service.ApsPlate.IApsPlateStandardRequireService; |
| | | import com.aps.core.service.ApsPlateStandardRequireOrderEndDayService; |
| | | import jakarta.annotation.Resource; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | IApsPlateStandardRequireBatchService requireBatchService; |
| | | @Resource |
| | | ApsPlanTaskService planTaskService; |
| | | @Resource |
| | | ApsPlateStandardRequireOrderEndDayService orderEndDayService; |
| | | |
| | | /** |
| | | * 查询钣金工单计划管理 |
| | | * |
| | |
| | | apsPlateOrderPlanDate.setUpdateBy(SecurityUtils.getUsername()); |
| | | apsPlateOrderPlanManagerMapper.updatePlanDateByCustom(apsPlateOrderPlanDate); |
| | | } else { |
| | | List<ApsPlateOrderPlanRequireDate> planRequireDates = apsPlateOrderPlanManagerMapper.selectPlanRequireIds(apsPlateOrderPlanDate.getPlanIds()); |
| | | List<Long> planIds = apsPlateOrderPlanDate.getPlanIds(); |
| | | orderEndDayService.saveBatch(planIds); |
| | | |
| | | /*List<ApsPlateOrderPlanRequireDate> planRequireDates = apsPlateOrderPlanManagerMapper.selectPlanRequireIds(planIds); |
| | | planRequireDates.forEach(planRequireDate -> { |
| | | planRequireDate.setUpdateBy(SecurityUtils.getUsername()); |
| | | apsPlateOrderPlanManagerMapper.updatePlanDateByBatch(planRequireDate); |
| | | }); |
| | | });*/ |
| | | } |
| | | String batchNum= requireBatchService.getNewBatchNumber(); |
| | | /* String batchNum= requireBatchService.getNewBatchNumber(); |
| | | planTaskService.savePlanTask(batchNum); |
| | | apsPlateStandardRequireService.generatorPlan(batchNum); |
| | | planTaskService.updateTaskStatus(batchNum, PLAN_TASK_STATUS.FINISHED); |
| | | planTaskService.updateTaskStatus(batchNum, PLAN_TASK_STATUS.FINISHED);*/ |
| | | } |
| | | } |