| | |
| | | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获取绩效评价详情") |
| | | @PreAuthorize("@ss.hasPermission('srm:supplier-evaluation:query')") |
| | | public CommonResult<SrmSupplierEvaluationRespVO> getEvaluation(@RequestParam("id") Long id) { |
| | | SrmSupplierEvaluationDO evaluation = evaluationService.getEvaluation(id); |
| | | SrmSupplierEvaluationRespVO resp = BeanUtils.toBean(evaluation, SrmSupplierEvaluationRespVO.class); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获取绩效评价分页") |
| | | @PreAuthorize("@ss.hasPermission('srm:supplier-evaluation:query')") |
| | | public CommonResult<PageResult<SrmSupplierEvaluationRespVO>> getEvaluationPage(@Valid SrmSupplierEvaluationPageReqVO pageReqVO) { |
| | | PageResult<SrmSupplierEvaluationDO> pageResult = evaluationService.getEvaluationPage(pageReqVO); |
| | | List<SrmSupplierEvaluationRespVO> respList = BeanUtils.toBean(pageResult.getList(), SrmSupplierEvaluationRespVO.class); |