| | |
| | | /** |
| | | * 分页查询 |
| | | * @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"))); |
| | | } |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | /** |
| | | * 根据模版生成word通方公司工业品买卖合同 |
| | | * @param id id |
| | | * @return R |
| | | */ |
| | | @Operation(summary = "根据模版生成word合同" , description = "根据模版生成word合同" ) |
| | | @GetMapping("/exportContractTFGSGYPMMWord/{id}" ) |
| | | public void exportContractTFGSGYPMMWord(@PathVariable("id" ) Long id, HttpServletResponse response) { |
| | | contractService.exportContractTFGSGYPMMWord(id,response); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 延期出货审批 |
| | | */ |
| | | |
| | |
| | | return contractService.delayOutApproval(dto); |
| | | } |
| | | |
| | | /** |
| | | * 新增合同-石工泵 |
| | | * @return R |
| | | */ |
| | | @Operation(summary = "新增合同-石工泵" , description = "新增合同-石工泵" ) |
| | | @PostMapping("/addContractSgb") |
| | | @SysLog("新增合同-石工泵" ) |
| | | public R addContractSgb(@RequestBody ContractAddDTO addDTO) { |
| | | return contractService.addContractSgb(addDTO); |
| | | } |
| | | |
| | | /** |
| | | * 修改合同-石工泵 |
| | | * @return R |
| | | */ |
| | | @Operation(summary = "修改合同-石工泵" , description = "修改合同-石工泵" ) |
| | | @PostMapping("/updateContractSgb") |
| | | @SysLog("修改合同-石工泵" ) |
| | | public R updateContractSgb(@RequestBody ContractUpdateDTO updateDTO) { |
| | | return contractService.updateContractSgb(updateDTO); |
| | | } |
| | | } |