| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得设计项目") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-project:query')") |
| | | public CommonResult<MesPdProjectRespVO> getProject(@RequestParam("id") Long id) { |
| | | MesPdProjectDO project = projectService.getProject(id); |
| | | if (project == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得设计项目分页") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-project:query')") |
| | | public CommonResult<PageResult<MesPdProjectRespVO>> getProjectPage(@Valid MesPdProjectPageReqVO pageReqVO) { |
| | | PageResult<MesPdProjectDO> pageResult = projectService.getProjectPage(pageReqVO); |
| | | return success(new PageResult<>(buildProjectRespVOList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | .remark("").build() |
| | | ); |
| | | // 输出 |
| | | ExcelUtils.write(response, "设计项目导入模板.xls", "设计项目列表", MesPdProjectImportExcelVO.class, list); |
| | | ExcelUtils.writeTemplate(response, "设计项目导入模板.xls", "设计项目列表", MesPdProjectImportExcelVO.class, list); |
| | | } |
| | | |
| | | @PostMapping("/import") |
| | |
| | | |
| | | @GetMapping("/approver-ids") |
| | | @Operation(summary = "获得设计项目的审核人编号集合,供前端判断是否展示审核按钮") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-project:query')") |
| | | public CommonResult<Set<Long>> getApproverUserIds() { |
| | | return success(projectService.getProjectApproverUserIds()); |
| | | } |