| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得回款计划") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('crm:receivable-plan:query')") |
| | | public CommonResult<CrmReceivablePlanRespVO> getReceivablePlan(@RequestParam("id") Long id) { |
| | | CrmReceivablePlanDO receivablePlan = receivablePlanService.getReceivablePlan(id); |
| | | return success(buildReceivablePlanDetail(receivablePlan)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得回款计划分页") |
| | | @PreAuthorize("@ss.hasPermission('crm:receivable-plan:query')") |
| | | public CommonResult<PageResult<CrmReceivablePlanRespVO>> getReceivablePlanPage(@Valid CrmReceivablePlanPageReqVO pageReqVO) { |
| | | PageResult<CrmReceivablePlanDO> pageResult = receivablePlanService.getReceivablePlanPage(pageReqVO, getLoginUserId()); |
| | | return success(new PageResult<>(buildReceivableDetailList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | @Parameter(name = "customerId", description = "客户编号", required = true), |
| | | @Parameter(name = "contractId", description = "合同编号", required = true) |
| | | }) |
| | | @PreAuthorize("@ss.hasPermission('crm:receivable-plan:query')") |
| | | public CommonResult<List<CrmReceivablePlanRespVO>> getReceivablePlanSimpleList(@RequestParam("customerId") Long customerId, |
| | | @RequestParam("contractId") Long contractId) { |
| | | CrmReceivablePlanPageReqVO pageReqVO = new CrmReceivablePlanPageReqVO().setCustomerId(customerId).setContractId(contractId); |
| | |
| | | |
| | | @GetMapping("/remind-count") |
| | | @Operation(summary = "获得待回款提醒数量") |
| | | @PreAuthorize("@ss.hasPermission('crm:receivable-plan:query')") |
| | | public CommonResult<Long> getReceivablePlanRemindCount() { |
| | | return success(receivablePlanService.getReceivablePlanRemindCount(getLoginUserId())); |
| | | } |