|
|
|
@ -492,11 +492,11 @@ public class WorkOrderRunServiceImpl extends BaseServiceImpl<WorkOrderRunMapper, |
|
|
|
wo.setPlanEndDate(DateUtil.format(date, DateUtil.PATTERN_DATETIME)); |
|
|
|
wo.setPlanEndDate(DateUtil.format(date, DateUtil.PATTERN_DATETIME)); |
|
|
|
|
|
|
|
|
|
|
|
//更改订单调度员和计划员
|
|
|
|
//更改订单调度员和计划员
|
|
|
|
TeamSet makeTeam = teamSetMapper.selectById(wo.getTsId()); |
|
|
|
// TeamSet makeTeam = teamSetMapper.selectById(wo.getTsId());
|
|
|
|
if (makeTeam == null) { |
|
|
|
// if (makeTeam == null) {
|
|
|
|
throw new ServiceException("未找到车间订单的主责班组,班组ID:" + wo.getTsId()); |
|
|
|
// throw new ServiceException("未找到车间订单的主责班组,班组ID:" + wo.getTsId());
|
|
|
|
} |
|
|
|
// }
|
|
|
|
workOrderService.maintainOrder(wo, makeTeam.getPlanner(), makeTeam.getDispatcher(), workOrderRun, false); |
|
|
|
// workOrderService.maintainOrder(wo, makeTeam.getPlanner(), makeTeam.getDispatcher(), workOrderRun, false);
|
|
|
|
//更新车间订单主责任单位
|
|
|
|
//更新车间订单主责任单位
|
|
|
|
workOrderService.updateHostWorkUnit(wo); |
|
|
|
workOrderService.updateHostWorkUnit(wo); |
|
|
|
|
|
|
|
|
|
|
|
|