From 781c2e20a4bb844dae3f4eafbf5f0e494b942ea8 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期四, 25 五月 2023 18:07:08 +0800
Subject: [PATCH] optimize

---
 java110-db/src/main/resources/mapper/community/MenuServiceDaoImplMapper.xml |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/java110-db/src/main/resources/mapper/community/MenuServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/community/MenuServiceDaoImplMapper.xml
index 39ca37e..7e04a54 100755
--- a/java110-db/src/main/resources/mapper/community/MenuServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/community/MenuServiceDaoImplMapper.xml
@@ -222,7 +222,7 @@
     <select id="getMenuInfo" parameterType="Map" resultType="Map">
         select DISTINCT t.m_id mId,t.name,t.g_id gId,t.url,t.seq,t.p_id pId,t.description,t.is_show isShow,
         if(t.is_show='Y','鏄剧ず','涓嶆樉绀�') isShowName,
-        t.m_id pId,t.name pName,mg.name menuGroupName,mg.store_type,st.name storeTypeName
+        t.m_id pId,t.name pName,mg.name gName,mg.store_type,st.name storeTypeName
         from m_menu t,p_privilege p,m_menu_group mg,store_type st
         where t.status_cd= '0'
         and p.status_cd= '0'
@@ -231,6 +231,9 @@
         and mg.store_type = st.store_type_cd
         <if test="gId !=null and gId != ''">
             and t.g_id= #{gId}
+        </if>
+        <if test="gName !=null and gName != ''">
+            and mg.name= #{gName}
         </if>
         <if test="name !=null and name != ''">
             and t.name like concat('%',#{name},'%')
@@ -333,6 +336,9 @@
         <if test="gId !=null and gId != ''">
             and t.g_id= #{gId}
         </if>
+        <if test="gName !=null and gName != ''">
+            and mg.name= #{gName}
+        </if>
         <if test="name !=null and name != ''">
             and t.name like concat('%',#{name},'%')
         </if>

--
Gitblit v1.8.0