| | |
| | | /** |
| | | * 分页查询 |
| | | * @param page 分页对象 |
| | | * @param contract 合同管理 |
| | | * @param queryDTO 合同管理 |
| | | * @return |
| | | */ |
| | | @Operation(summary = "分页查询" , description = "分页查询" ) |
| | |
| | | } |
| | | |
| | | /** |
| | | * list 下拉 |
| | | */ |
| | | @GetMapping("/list") |
| | | public R list() { |
| | | return R.ok(contractService.list(Wrappers.<Contract>lambdaQuery().eq(Contract::getContractStatus,2).orderByDesc(Contract::getCreateTime))); |
| | | } |
| | | |
| | | /** |
| | | * 启动审核流程 |
| | | * @param id id |
| | | * @return R |
| | |
| | | @GetMapping("/listByBusId/{busId}" ) |
| | | public R listByBusId(@PathVariable("busId" ) Long busId) { |
| | | return R.ok(contractService.listByScope(Wrappers.<Contract>lambdaQuery().eq(Contract::getPartyAId,busId) |
| | | .gt(Contract::getBillingAmout,new BigDecimal("0")))); |
| | | .eq(Contract::getPartyBId,SecurityUtils.getUser().getCompId()) |
| | | .gt(Contract::getBillingAmout,new BigDecimal("0")) |
| | | .apply("paid_amount < billing_amout"))); |
| | | } |
| | | |
| | | /** |