| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得生产主计划") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-mps:query')") |
| | | public CommonResult<MesProMpsRespVO> getMps(@RequestParam("id") Long id) { |
| | | MesProMpsDO mps = mpsService.getMps(id); |
| | | if (mps == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得生产主计划分页") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-mps:query')") |
| | | public CommonResult<PageResult<MesProMpsRespVO>> getMpsPage(@Valid MesProMpsPageReqVO pageReqVO) { |
| | | PageResult<MesProMpsDO> pageResult = mpsService.getMpsPage(pageReqVO); |
| | | return success(new PageResult<>(buildMpsRespVOList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | .clientName("").requestDate(java.time.LocalDateTime.of(2026, 10, 16, 9, 0, 0)) |
| | | .remark("").build() |
| | | ); |
| | | ExcelUtils.write(response, "生产主计划导入模板.xls", "生产主计划列表", MesProMpsImportExcelVO.class, list); |
| | | ExcelUtils.writeTemplate(response, "生产主计划导入模板.xls", "生产主计划列表", MesProMpsImportExcelVO.class, list); |
| | | } |
| | | |
| | | @PostMapping("/import") |
| | |
| | | }); |
| | | } |
| | | |
| | | } |
| | | } |