| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获取准入申请详情") |
| | | @Parameter(name = "id", description = "编号", required = true) |
| | | @PreAuthorize("@ss.hasPermission('srm:supplier-apply:query')") |
| | | public CommonResult<SrmSupplierApplyRespVO> getApply(@RequestParam("id") Long id) { |
| | | return success(BeanUtils.toBean(applyService.getApply(id), SrmSupplierApplyRespVO.class)); |
| | | } |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获取准入申请分页") |
| | | @PreAuthorize("@ss.hasPermission('srm:supplier-apply:query')") |
| | | public CommonResult<PageResult<SrmSupplierApplyRespVO>> getApplyPage(@Valid SrmSupplierApplyPageReqVO pageReqVO) { |
| | | return success(BeanUtils.toBean(applyService.getApplyPage(pageReqVO), SrmSupplierApplyRespVO.class)); |
| | | } |
| | |
| | | |
| | | @GetMapping("/approve-process-list") |
| | | @Operation(summary = "获取准入申请审批流程列表") |
| | | @PreAuthorize("@ss.hasPermission('srm:supplier-apply:query')") |
| | | public CommonResult<List<Map<String, Object>>> getApproveProcessList() { |
| | | return success(applyService.getSupplierApplyApproveProcessDefinitionList()); |
| | | } |