From a422a984cfa2a5a2bbe89c6fa6947363e559bb4f Mon Sep 17 00:00:00 2001
From: shiyunteng <shiyunteng@example.com>
Date: 星期五, 22 五月 2026 09:29:14 +0800
Subject: [PATCH] feat:faet:出库加批次号,合同履约加销方购方履约,到货单据必填校验,验收单据必填校验,单位新增法人、委托代理人字段 、合同出库新增erp出库ID

---
 platformx-business-finance-biz/src/main/java/com/by4cloud/platformx/business/controller/ContractController.java |   34 ++++++++++++++++++++++++++++++++++
 1 files changed, 34 insertions(+), 0 deletions(-)

diff --git a/platformx-business-finance-biz/src/main/java/com/by4cloud/platformx/business/controller/ContractController.java b/platformx-business-finance-biz/src/main/java/com/by4cloud/platformx/business/controller/ContractController.java
index b88aa1e..1608d7e 100644
--- a/platformx-business-finance-biz/src/main/java/com/by4cloud/platformx/business/controller/ContractController.java
+++ b/platformx-business-finance-biz/src/main/java/com/by4cloud/platformx/business/controller/ContractController.java
@@ -15,6 +15,7 @@
 import com.by4cloud.platformx.business.service.ContractService;
 import com.by4cloud.platformx.common.security.annotation.Inner;
 import com.by4cloud.platformx.common.security.util.SecurityUtils;
+import jakarta.servlet.http.HttpServletResponse;
 import org.apache.commons.lang3.StringUtils;
 import org.springframework.security.access.prepost.PreAuthorize;
 import com.by4cloud.platformx.common.excel.annotation.ResponseExcel;
@@ -26,6 +27,7 @@
 import lombok.RequiredArgsConstructor;
 import org.springframework.web.bind.annotation.*;
 
+import java.math.BigDecimal;
 import java.util.List;
 import java.util.Objects;
 
@@ -150,5 +152,37 @@
 		return contractService.genCurrentOverdue();
 	}
 
+	/**
+	 * 鐢熸垚鏂板悎鍚�
+	 * @param id id
+	 * @return R
+	 */
+	@Operation(summary = "閫氳繃id鐢熸垚鏂板悎鍚�" , description = "閫氳繃id鐢熸垚鏂板悎鍚�" )
+	@GetMapping("/copyNewContract/{id}" )
+	public R copyNewContract(@PathVariable("id" ) Long id) {
+		return contractService.copyNewContract(id);
+	}
 
+	/**
+	 * 鏍规嵁瀹㈠晢鏌ヨ鍚堝悓
+	 * @param busId id
+	 * @return R
+	 */
+	@Operation(summary = "鏍规嵁瀹㈠晢鏌ヨ鍚堝悓" , description = "鏍规嵁瀹㈠晢鏌ヨ鍚堝悓" )
+	@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"))));
+	}
+
+	/**
+	 * 鏍规嵁妯$増鐢熸垚word涓�鐓ゆ満鍔犲伐鎵挎徑鍚堝悓
+	 * @param id id
+	 * @return R
+	 */
+	@Operation(summary = "鏍规嵁妯$増鐢熸垚word鍚堝悓" , description = "鏍规嵁妯$増鐢熸垚word鍚堝悓" )
+	@GetMapping("/exportContractYMJJGCLWord/{id}" )
+	public void exportContractYMJJGCLWord(@PathVariable("id" ) Long id, HttpServletResponse response) {
+		contractService.exportContractYMJJGCLWord(id,response);
+	}
 }
\ No newline at end of file

--
Gitblit v1.9.1