| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得合同指令") |
| | | @Parameter(name = "id", description = "编号", required = true) |
| | | @PreAuthorize("@ss.hasPermission('crm:contract-command:query')") |
| | | public CommonResult<CrmContractCommandRespVO> getCommand(@RequestParam("id") Long id) { |
| | | return success(commandService.getCommand(id)); |
| | | } |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得合同指令分页") |
| | | @PreAuthorize("@ss.hasPermission('crm:contract-command:query')") |
| | | public CommonResult<PageResult<CrmContractCommandRespVO>> getCommandPage(@Valid CrmContractCommandPageReqVO pageReqVO) { |
| | | return success(commandService.getCommandPage(pageReqVO)); |
| | | } |
| | |
| | | @GetMapping("/count-by-contract") |
| | | @Operation(summary = "统计某合同指令数量") |
| | | @Parameter(name = "contractId", description = "合同ID", required = true) |
| | | @PreAuthorize("@ss.hasPermission('crm:contract-command:query')") |
| | | public CommonResult<Long> countByContract(@RequestParam("contractId") Long contractId) { |
| | | return success(commandService.countByContractId(contractId)); |
| | | } |