| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得销售报价单") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('crm:sale-quotation:query')") |
| | | public CommonResult<CrmSaleQuotationRespVO> getSaleQuotation(@RequestParam("id") Long id) { |
| | | CrmSaleQuotationDO saleQuotation = saleQuotationService.getSaleQuotation(id); |
| | | if (saleQuotation == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得销售报价单分页") |
| | | @PreAuthorize("@ss.hasPermission('crm:sale-quotation:query')") |
| | | public CommonResult<PageResult<CrmSaleQuotationRespVO>> getSaleQuotationPage(@Valid CrmSaleQuotationPageReqVO pageReqVO) { |
| | | PageResult<CrmSaleQuotationDO> pageResult = saleQuotationService.getSaleQuotationPage(pageReqVO, getLoginUserId()); |
| | | return success(buildSaleQuotationRespVOPageResult(pageResult)); |
| | |
| | | |
| | | @GetMapping("/page-by-customer") |
| | | @Operation(summary = "获得销售报价单分页(基于客户)") |
| | | @PreAuthorize("@ss.hasPermission('crm:sale-quotation:query')") |
| | | public CommonResult<PageResult<CrmSaleQuotationRespVO>> getSaleQuotationPageByCustomerId(@Valid CrmSaleQuotationPageReqVO pageReqVO) { |
| | | PageResult<CrmSaleQuotationDO> pageResult = saleQuotationService.getSaleQuotationPageByCustomerId(pageReqVO); |
| | | return success(buildSaleQuotationRespVOPageResult(pageResult)); |
| | |
| | | |
| | | @GetMapping("/page-by-business") |
| | | @Operation(summary = "获得销售报价单分页(基于商机)") |
| | | @PreAuthorize("@ss.hasPermission('crm:sale-quotation:query')") |
| | | public CommonResult<PageResult<CrmSaleQuotationRespVO>> getSaleQuotationPageByBusinessId(@Valid CrmSaleQuotationPageReqVO pageReqVO) { |
| | | PageResult<CrmSaleQuotationDO> pageResult = saleQuotationService.getSaleQuotationPageByBusinessId(pageReqVO); |
| | | return success(buildSaleQuotationRespVOPageResult(pageResult)); |