| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得客户信用评级") |
| | | @Parameter(name = "id", description = "编号", required = true) |
| | | @PreAuthorize("@ss.hasPermission('crm:credit-rating:query')") |
| | | public CommonResult<CrmCreditRatingRespVO> getCreditRating(@RequestParam("id") Long id) { |
| | | return success(creditRatingService.getCreditRating(id)); |
| | | } |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得客户信用评级分页") |
| | | @PreAuthorize("@ss.hasPermission('crm:credit-rating:query')") |
| | | public CommonResult<PageResult<CrmCreditRatingRespVO>> getCreditRatingPage(@Valid CrmCreditRatingPageReqVO pageReqVO) { |
| | | return success(creditRatingService.getCreditRatingPage(pageReqVO)); |
| | | } |
| | |
| | | @GetMapping("/latest-by-customer") |
| | | @Operation(summary = "获取客户最新信用评级") |
| | | @Parameter(name = "customerId", description = "客户ID", required = true) |
| | | @PreAuthorize("@ss.hasPermission('crm:credit-rating:query')") |
| | | public CommonResult<CrmCreditRatingRespVO> getLatestByCustomer(@RequestParam("customerId") Long customerId) { |
| | | return success(creditRatingService.getLatestByCustomerId(customerId)); |
| | | } |