| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得商机状态") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('crm:business-status:query')") |
| | | public CommonResult<CrmBusinessStatusRespVO> getBusinessStatusType(@RequestParam("id") Long id) { |
| | | CrmBusinessStatusTypeDO statusType = businessStatusTypeService.getBusinessStatusType(id); |
| | | if (statusType == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得商机状态分页") |
| | | @PreAuthorize("@ss.hasPermission('crm:business-status:query')") |
| | | public CommonResult<PageResult<CrmBusinessStatusRespVO>> getBusinessStatusPage(@Valid PageParam pageReqVO) { |
| | | // 1. 查询数据 |
| | | PageResult<CrmBusinessStatusTypeDO> pageResult = businessStatusTypeService.getBusinessStatusTypePage(pageReqVO); |