From 21dfddd6e09d32a50a636fff62a3d8a2ed362d5a Mon Sep 17 00:00:00 2001
From: shiyunteng <shiyunteng@example.com>
Date: 星期四, 20 八月 2026 16:29:49 +0800
Subject: [PATCH] feat:合同标的物新增导入 银行流水强制确认 简易合同新增 发票重开 合同标的物导入

---
 platformx-business-finance-biz/src/main/java/com/by4cloud/platformx/business/controller/ContractInvoiceController.java |   60 ++++++++++++++++++++++++++++++++++++++++++++----------------
 1 files changed, 44 insertions(+), 16 deletions(-)

diff --git a/platformx-business-finance-biz/src/main/java/com/by4cloud/platformx/business/controller/ContractInvoiceController.java b/platformx-business-finance-biz/src/main/java/com/by4cloud/platformx/business/controller/ContractInvoiceController.java
index 4296f4a..8f81a5b 100644
--- a/platformx-business-finance-biz/src/main/java/com/by4cloud/platformx/business/controller/ContractInvoiceController.java
+++ b/platformx-business-finance-biz/src/main/java/com/by4cloud/platformx/business/controller/ContractInvoiceController.java
@@ -48,23 +48,23 @@
 	@Operation(summary = "鍒嗛〉鏌ヨ" , description = "鍒嗛〉鏌ヨ" )
 	@GetMapping("/page" )
 	public R getContractPage(@ParameterObject Page page, @ParameterObject ContractQueryDTO queryDTO) {
-		LambdaQueryWrapper<Contract> wrapper = Wrappers.lambdaQuery();
-		wrapper.like(StringUtils.isNotBlank(queryDTO.getContractName()),Contract::getContractName,queryDTO.getContractName());
-		wrapper.like(StringUtils.isNotBlank(queryDTO.getPartyA()),Contract::getPartyA,queryDTO.getPartyA());
-		wrapper.eq(Contract::getBillingStatus,queryDTO.getBillingStatus());
-		if (StrUtil.equals(queryDTO.getInvoiceType(),"1")){
-			wrapper.eqSql(Contract::getBillingAmout,"(select sum(delivered_quantity*unit_price) from contract_subject_matter csm where csm.contract_id = contract.id)");
-		}else if (StrUtil.equals(queryDTO.getInvoiceType(),"0")){
-			wrapper.ltSql(Contract::getBillingAmout,"(select sum(delivered_quantity*unit_price) from contract_subject_matter csm where csm.contract_id = contract.id)");
-		}
+//		LambdaQueryWrapper<Contract> wrapper = Wrappers.lambdaQuery();
+//		wrapper.like(StringUtils.isNotBlank(queryDTO.getContractName()),Contract::getContractName,queryDTO.getContractName());
+//		wrapper.like(StringUtils.isNotBlank(queryDTO.getPartyA()),Contract::getPartyA,queryDTO.getPartyA());
+//		wrapper.eq(Contract::getBillingStatus,queryDTO.getBillingStatus());
+//		if (StrUtil.equals(queryDTO.getInvoiceType(),"1")){
+//			wrapper.eqSql(Contract::getBillingAmout,"(select sum(delivered_quantity*unit_price) from contract_subject_matter csm where csm.contract_id = contract.id)");
+//		}else if (StrUtil.equals(queryDTO.getInvoiceType(),"0")){
+//			wrapper.ltSql(Contract::getBillingAmout,"(select sum(delivered_quantity*unit_price) from contract_subject_matter csm where csm.contract_id = contract.id)");
+//		}
+//
+//		if (StrUtil.equals(queryDTO.getBillingStatus(),"1")){
+//			wrapper.orderByDesc(BaseModel::getCreateTime);
+//		}else {
+//			wrapper.orderByAsc(BaseModel::getCreateTime);
+//		}
 
-		if (StrUtil.equals(queryDTO.getBillingStatus(),"1")){
-			wrapper.orderByDesc(BaseModel::getCreateTime);
-		}else {
-			wrapper.orderByAsc(BaseModel::getCreateTime);
-		}
-
-		return R.ok(contractService.pageByScope(page, wrapper));
+		return R.ok(contractInvoiceService.pageScope(page, queryDTO));
 	}
 
 	/**
@@ -74,6 +74,24 @@
 	@GetMapping("/getContractOutBound/{contractId}" )
 	public R getContractOutBound(@PathVariable("contractId")Long contractId) {
 		return contractInvoiceService.getContractOutBound(contractId);
+	}
+
+	/**
+	 * 鑾峰彇鍚堝悓棰勫紑绁ㄤ俊鎭�
+	 * @return
+	 */
+	@GetMapping("/getContractAdvance/{contractId}" )
+	public R getContractAdvance(@PathVariable("contractId")Long contractId) {
+		return contractInvoiceService.getContractAdvance(contractId);
+	}
+
+	/**
+	 * 鑾峰彇鍚堝悓鎴跨 姘寸數 璐圭敤淇℃伅
+	 * @return
+	 */
+	@GetMapping("/getContractHouseWater/{contractId}" )
+	public R getContractHouseWater(@PathVariable("contractId")Long contractId) {
+		return contractInvoiceService.getContractHouseWater(contractId);
 	}
 
 	/**
@@ -123,6 +141,15 @@
 	}
 
 	/**
+	 * 閲嶆柊寮�绁�
+	 * @return
+	 */
+	@GetMapping("/refresh/{invoiceId}")
+	public R refresh(@PathVariable("invoiceId")Long invoiceId) {
+		return contractInvoiceService.refresh(invoiceId);
+	}
+
+	/**
 	 * 绾㈢エ鏌ヨ
 	 * @return
 	 */
@@ -136,4 +163,5 @@
 	public R pageInvoice(@ParameterObject Page page, @ParameterObject ContractInvoiceQueryDTO queryDTO) {
 		return R.ok(contractInvoiceService.pageInvoice(page, queryDTO));
 	}
+
 }

--
Gitblit v1.9.1