| | |
| | | import com.aps.core.domain.ApsPlateStandardRequire; |
| | | import com.aps.core.mapper.ApsPlateOrderPlanManagerMapper; |
| | | import com.aps.core.service.IApsPlateOrderPlanManagerService; |
| | | import com.aps.core.service.IApsPlateStandardRequireService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | |
| | | @Autowired |
| | | private ApsPlateOrderPlanManagerMapper apsPlateOrderPlanManagerMapper; |
| | | |
| | | @Autowired |
| | | private IApsPlateStandardRequireService apsPlateStandardRequireService; |
| | | |
| | | /** |
| | | * 查询钣金工单计划管理 |
| | | * |
| | |
| | | return apsPlateOrderPlanManagerMapper.selectApsPlanOrderManager(apsPlateOrderPlanManager); |
| | | } |
| | | |
| | | /** |
| | | * 查询钣金工单计划标准需求 |
| | | * |
| | | * @param workOrderNo 工单号 |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<ApsPlateStandardRequire> selectApsPlanStandardRequire(String workOrderNo) { |
| | | return apsPlateOrderPlanManagerMapper.selectApsPlanStandardRequire(workOrderNo); |
| | | } |
| | | |
| | | /** |
| | | * 批量更新计划时间 |
| | | * |
| | | * @param apsPlateOrderPlanDate |
| | | */ |
| | | @Transactional(rollbackFor = Exception.class) |
| | | @Override |
| | | public void updatePlanDate(ApsPlateOrderPlanDate apsPlateOrderPlanDate) { |
| | | if (apsPlateOrderPlanDate.getIsCustom()){ |
| | | if (apsPlateOrderPlanDate.getIsCustom()) { |
| | | apsPlateOrderPlanManagerMapper.updatePlanDateByCustom(apsPlateOrderPlanDate); |
| | | }else{ |
| | | } else { |
| | | List<ApsPlateOrderPlanRequireDate> planRequireDates = apsPlateOrderPlanManagerMapper.selectPlanRequireIds(apsPlateOrderPlanDate.getPlanIds()); |
| | | planRequireDates.forEach(planRequireDate -> { |
| | | planRequireDate.setUpdateBy(SecurityUtils.getUsername()); |
| | | apsPlateOrderPlanManagerMapper.updatePlanDateByBatch(planRequireDate); |
| | | }); |
| | | } |
| | | |
| | | // apsPlateStandardRequireService.generatorPlan(); |
| | | } |
| | | } |