|
|
|
|
@ -308,6 +308,9 @@ public class PlanController {
|
|
|
|
|
planDO.setStatus(PlanStatusEnum.已入库.getValue());
|
|
|
|
|
planService.createPlanStockIn(statusUpdateVO, planDO);
|
|
|
|
|
}
|
|
|
|
|
else if ("commence".equals(statusUpdateVO.getCode())) {
|
|
|
|
|
planDO.setStatus(PlanStatusEnum.已开工.getValue());
|
|
|
|
|
}
|
|
|
|
|
planMapper.updateById(planDO);
|
|
|
|
|
return success(true);
|
|
|
|
|
}
|
|
|
|
|
@ -387,7 +390,14 @@ public class PlanController {
|
|
|
|
|
List<PlanDO> proList = planService.getPlanByStatus(statusList);
|
|
|
|
|
List<PlanRespVO> planRespVOList = planService.buildVOList(proList);
|
|
|
|
|
return success(planRespVOList);
|
|
|
|
|
} else {
|
|
|
|
|
}else if(status ==8){
|
|
|
|
|
List<Integer> statusList = new ArrayList<>();
|
|
|
|
|
statusList.add(PlanStatusEnum.已开工.getValue());
|
|
|
|
|
List<PlanDO> proList = planService.getPlanByStatus(statusList);
|
|
|
|
|
List<PlanRespVO> planRespVOList = planService.buildVOList(proList);
|
|
|
|
|
return success(planRespVOList);
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
return success(Collections.emptyList());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|