| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得客户限制配置") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('crm:customer-limit-config:query')") |
| | | public CommonResult<CrmCustomerLimitConfigRespVO> getCustomerLimitConfig(@RequestParam("id") Long id) { |
| | | CrmCustomerLimitConfigDO limitConfig = customerLimitConfigService.getCustomerLimitConfig(id); |
| | | // 拼接数据 |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得客户限制配置分页") |
| | | @PreAuthorize("@ss.hasPermission('crm:customer-limit-config:query')") |
| | | public CommonResult<PageResult<CrmCustomerLimitConfigRespVO>> getCustomerLimitConfigPage(@Valid CrmCustomerLimitConfigPageReqVO pageVO) { |
| | | PageResult<CrmCustomerLimitConfigDO> pageResult = customerLimitConfigService.getCustomerLimitConfigPage(pageVO); |
| | | if (CollUtil.isEmpty(pageResult.getList())) { |