| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得线索") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('crm:clue:query')") |
| | | public CommonResult<CrmClueRespVO> getClue(@RequestParam("id") Long id) { |
| | | CrmClueDO clue = clueService.getClue(id); |
| | | return success(buildClueDetail(clue)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得线索分页") |
| | | @PreAuthorize("@ss.hasPermission('crm:clue:query')") |
| | | public CommonResult<PageResult<CrmClueRespVO>> getCluePage(@Valid CrmCluePageReqVO pageVO) { |
| | | PageResult<CrmClueDO> pageResult = clueService.getCluePage(pageVO, getLoginUserId()); |
| | | return success(new PageResult<>(buildClueDetailList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | |
| | | @GetMapping("/follow-count") |
| | | @Operation(summary = "获得分配给我的、待跟进的线索数量") |
| | | @PreAuthorize("@ss.hasPermission('crm:clue:query')") |
| | | public CommonResult<Long> getFollowClueCount() { |
| | | return success(clueService.getFollowClueCount(getLoginUserId())); |
| | | } |