|
|
|
|
@ -152,4 +152,19 @@ public class PlanController {
|
|
|
|
|
List<ErpProductRespVO> proList = planService.getProductByPlanStatus(status);
|
|
|
|
|
return success(proList);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@GetMapping("/getByStatus")
|
|
|
|
|
@Operation(summary = "获得生产计划")
|
|
|
|
|
@Parameter(name = "status", description = "状态", required = true, example = "1024")
|
|
|
|
|
public CommonResult<List<PlanRespVO>> getByStatus(@RequestParam("status") Integer status) {
|
|
|
|
|
List<Integer> statusList = new ArrayList<>();
|
|
|
|
|
statusList.add(status);
|
|
|
|
|
//statusList.add(PlanStatusEnum.开工.getValue());
|
|
|
|
|
// statusList.add(PlanStatusEnum.派工.getValue());
|
|
|
|
|
// statusList.add(PlanStatusEnum.计划.getValue());
|
|
|
|
|
// statusList.add(PlanStatusEnum.暂停.getValue());
|
|
|
|
|
List<PlanDO> proList = planService.getPlanByStatus(statusList);
|
|
|
|
|
List<PlanRespVO> planRespVOList = planService.buildVOList(proList);
|
|
|
|
|
return success(planRespVOList);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|