shiyunteng
2026-06-22 838618d0d4a7dd3b585a3a7390fa389e555c9bb0
platformx-business-finance-biz/src/main/java/com/by4cloud/platformx/business/controller/ContractController.java
@@ -51,7 +51,7 @@
    /**
     * 分页查询
     * @param page 分页对象
     * @param contract 合同管理
     * @param queryDTO 合同管理
     * @return
     */
    @Operation(summary = "分页查询" , description = "分页查询" )
@@ -133,6 +133,14 @@
    }
   /**
    * 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
@@ -184,7 +192,9 @@
   @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")));
   }
   /**
@@ -232,6 +242,18 @@
   }
   /**
    * 根据模版生成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);
   }
   /**
    * 延期出货审批
    */