add get plan by status

plp
chenshuichuan 2 years ago
parent 4b163dfb55
commit cdef4910b1

@ -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);
}
}

Loading…
Cancel
Save