From 705923fdc6e615a0435c85d3d60eab0180b79a68 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期日, 03 一月 2021 00:44:17 +0800
Subject: [PATCH] 优化 SQL语句错误问题

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

diff --git a/java110-db/src/main/resources/mapper/store/StoreServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/store/StoreServiceDaoImplMapper.xml
index f314ec9..c85c962 100644
--- a/java110-db/src/main/resources/mapper/store/StoreServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/store/StoreServiceDaoImplMapper.xml
@@ -585,10 +585,10 @@
         where
         1=1
         <if test="storeTypeCd != null and storeTypeCd != ''">
-            t.store_type_cd = #{storeTypeCd}
+            and t.store_type_cd = #{storeTypeCd}
         </if>
         <if test="storeId != null and storeId != ''">
-            t.store_id = #{storeId}
+            and t.store_id = #{storeId}
         </if>
         and t.status_cd = '0'
         <if test="page != -1 and page != null ">
@@ -606,10 +606,10 @@
         where
         1=1
         <if test="storeTypeCd != null and storeTypeCd != ''">
-            t.store_type_cd = #{storeTypeCd}
+            and t.store_type_cd = #{storeTypeCd}
         </if>
         <if test="storeId != null and storeId != ''">
-            t.store_id = #{storeId}
+            and t.store_id = #{storeId}
         </if>
         and t.status_cd = '0'
     </select>

--
Gitblit v1.8.0