liu
2 天以前 381e02b9eccbe953b31d09f2af1c2ce77c816140
yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/controller/admin/pro/mps/MesProMpsController.java
@@ -81,7 +81,6 @@
    @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) {
@@ -92,7 +91,6 @@
    @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()));
@@ -119,7 +117,7 @@
                        .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")
@@ -183,4 +181,4 @@
        });
    }
}
}