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/resources/mapper/ProductMapper.xml |   24 +++++++++++++++++-------
 1 files changed, 17 insertions(+), 7 deletions(-)

diff --git a/platformx-business-finance-biz/src/main/resources/mapper/ProductMapper.xml b/platformx-business-finance-biz/src/main/resources/mapper/ProductMapper.xml
index 9fb6ef8..ca39318 100644
--- a/platformx-business-finance-biz/src/main/resources/mapper/ProductMapper.xml
+++ b/platformx-business-finance-biz/src/main/resources/mapper/ProductMapper.xml
@@ -66,16 +66,26 @@
 		WHERE
 			del_flag = '0'
 		<if test="queryDTO.productName !=null and queryDTO.productName !=''">
-			and t.product_name LIKE CONCAT('%', #{queryDTO.productName}, '%')
+			and ( t.product_name LIKE CONCAT('%', #{queryDTO.productName}, '%') or
+			t.erp_code LIKE CONCAT('%', #{queryDTO.productName}, '%'))
 		</if>
 		<if test="queryDTO.parentId !=null ">
 			and t.parent_id = #{queryDTO.parentId}
 		</if>
-		<if test="queryDTO.contractCategory !=null and queryDTO.contractCategory !='' and queryDTO.contractCategory=='water_house'">
-			and t.erp_code in
-			<foreach collection="erpCodes" item="erp" open="(" separator="," close=")">
-				#{erp}
-			</foreach>
-		</if>
+		<choose>
+			<when test="queryDTO.contractCategory !=null and queryDTO.contractCategory !='' and queryDTO.contractCategory=='water_house'">
+				and t.erp_code in
+				<foreach collection="erpCodes" item="erp" open="(" separator="," close=")">
+					#{erp}
+				</foreach>
+			</when>
+			<otherwise>
+				and t.erp_code not in
+				<foreach collection="erpCodes" item="erp" open="(" separator="," close=")">
+					#{erp}
+				</foreach>
+			</otherwise>
+		</choose>
+
 	</select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.1