| | |
| | | |
| | | @GetMapping("/page-by-customer") |
| | | @Operation(summary = "获得合同分页,基于指定客户") |
| | | @PreAuthorize("@ss.hasPermission('crm:contract:query')") |
| | | public CommonResult<PageResult<CrmContractRespVO>> getContractPageByCustomer(@Valid CrmContractPageReqVO pageVO) { |
| | | Assert.notNull(pageVO.getCustomerId(), "客户编号不能为空"); |
| | | PageResult<CrmContractDO> pageResult = contractService.getContractPageByCustomerId(pageVO); |
| | |
| | | |
| | | @GetMapping("/page-by-business") |
| | | @Operation(summary = "获得合同分页,基于指定商机") |
| | | @PreAuthorize("@ss.hasPermission('crm:contract:query')") |
| | | public CommonResult<PageResult<CrmContractRespVO>> getContractPageByBusiness(@Valid CrmContractPageReqVO pageVO) { |
| | | Assert.notNull(pageVO.getBusinessId(), "商机编号不能为空"); |
| | | PageResult<CrmContractDO> pageResult = contractService.getContractPageByBusinessId(pageVO); |