| | |
| | | |
| | | @GetMapping("/approver-ids") |
| | | @Operation(summary = "获得技术确认函的审核人编号集合,供前端判断是否展示审核按钮") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-tech-confirm:query')") |
| | | public CommonResult<Set<Long>> getApproverUserIds() { |
| | | return success(techConfirmService.getTechConfirmApproverUserIds()); |
| | | } |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得产品技术确认函") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-tech-confirm:query')") |
| | | public CommonResult<ProductTechConfirmRespVO> getTechConfirm(@RequestParam("id") Long id) { |
| | | ProductTechConfirmDO techConfirm = techConfirmService.getTechConfirm(id); |
| | | if (techConfirm == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得产品技术确认函分页") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-tech-confirm:query')") |
| | | public CommonResult<PageResult<ProductTechConfirmRespVO>> getTechConfirmPage(@Valid ProductTechConfirmPageReqVO pageReqVO) { |
| | | PageResult<ProductTechConfirmDO> pageResult = techConfirmService.getTechConfirmPage(pageReqVO); |
| | | return success(new PageResult<>(BeanUtils.toBean(pageResult.getList(), ProductTechConfirmRespVO.class), |