From 62f2b98b64f6726ca7cb90cbfa996deaac4ffba9 Mon Sep 17 00:00:00 2001
From: xiaogang <905166056@qq.com>
Date: 星期四, 02 十一月 2023 14:09:04 +0800
Subject: [PATCH] 1、优化查询,便于模糊查询条件2、界面查询条件调整

---
 java110-db/src/main/resources/mapper/store/PurchaseApplyDetailServiceDaoImplMapper.xml |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/java110-db/src/main/resources/mapper/store/PurchaseApplyDetailServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/store/PurchaseApplyDetailServiceDaoImplMapper.xml
index b225378..b9d1d2e 100755
--- a/java110-db/src/main/resources/mapper/store/PurchaseApplyDetailServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/store/PurchaseApplyDetailServiceDaoImplMapper.xml
@@ -108,7 +108,7 @@
         left join t_dict td6 on rs.is_fixed = td6.status_cd and td6.table_name = 'resource_store' and td6.table_columns = 'is_fixed'
         where 1 = 1
         <if test="applyOrderId !=null and applyOrderId != ''">
-            and t.apply_order_id= #{applyOrderId}
+            and t.apply_order_id like concat('%',#{applyOrderId},'%')
         </if>
         <if test="resName !=null and resName != ''">
             and rs.res_name like '%${resName}%'
@@ -257,7 +257,7 @@
         LEFT JOIN resource_store_specification rss on rs.rss_id=rss.rss_id and rss.status_cd = '0'
         where 1 = 1
         <if test="applyOrderId !=null and applyOrderId != ''">
-            and t.apply_order_id= #{applyOrderId}
+            and t.apply_order_id like concat('%',#{applyOrderId},'%')
         </if>
         <if test="resName !=null and resName != ''">
             and rs.res_name like '%${resName}%'

--
Gitblit v1.8.0