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/ResourceStoreUseRecordServiceDaoImplMapper.xml |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/java110-db/src/main/resources/mapper/store/ResourceStoreUseRecordServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/store/ResourceStoreUseRecordServiceDaoImplMapper.xml
index dc3ea56..f810073 100644
--- a/java110-db/src/main/resources/mapper/store/ResourceStoreUseRecordServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/store/ResourceStoreUseRecordServiceDaoImplMapper.xml
@@ -143,13 +143,13 @@
             and t.unit_price= #{unitPrice}
         </if>
         <if test="createUserId !=null and createUserId != ''">
-            and t.create_user_id= #{createUserId}
+            and t.create_user_id like '%${createUserId}%'
         </if>
         <if test="quantity !=null and quantity != ''">
             and t.quantity= #{quantity}
         </if>
         <if test="rsurId !=null and rsurId != ''">
-            and t.rsur_id= #{rsurId}
+            and t.rsur_id like '%${rsurId}%'
         </if>
         <if test="repairId !=null and repairId != ''">
             and t.repair_id= #{repairId}
@@ -276,13 +276,13 @@
             and t.unit_price= #{unitPrice}
         </if>
         <if test="createUserId !=null and createUserId != ''">
-            and t.create_user_id= #{createUserId}
+            and t.create_user_id like '%${createUserId}%'
         </if>
         <if test="quantity !=null and quantity != ''">
             and t.quantity= #{quantity}
         </if>
         <if test="rsurId !=null and rsurId != ''">
-            and t.rsur_id= #{rsurId}
+            and t.rsur_id like '%${rsurId}%'
         </if>
         <if test="repairId !=null and repairId != ''">
             and t.repair_id= #{repairId}

--
Gitblit v1.8.0