Quellcode durchsuchen

修复 删除菜单组也能查到菜单组的问题

吴学文 vor 6 Jahren
Ursprung
Commit
8558cb57e9

+ 1 - 4
java110-db/src/main/resources/mapper/menu/MenuServiceDaoImplMapper.xml

@@ -20,7 +20,7 @@
     <select id="getMenuGroupInfo" parameterType="Map" resultType="Map">
     <select id="getMenuGroupInfo" parameterType="Map" resultType="Map">
         select t.g_id,t.name,t.icon,t.label,t.seq,t.description,t.g_id gId
         select t.g_id,t.name,t.icon,t.label,t.seq,t.description,t.g_id gId
         from m_menu_group t
         from m_menu_group t
-        where 1 =1
+        where t.status_cd= '0'
         <if test="gId !=null and gId != ''">
         <if test="gId !=null and gId != ''">
             and t.g_id= #{gId}
             and t.g_id= #{gId}
         </if>
         </if>
@@ -30,9 +30,6 @@
         <if test="icon !=null and icon != ''">
         <if test="icon !=null and icon != ''">
             and t.icon= #{icon}
             and t.icon= #{icon}
         </if>
         </if>
-        <if test="statusCd !=null and statusCd != ''">
-            and t.status_cd= #{statusCd}
-        </if>
         <if test="label !=null and label != ''">
         <if test="label !=null and label != ''">
             and t.label= #{label}
             and t.label= #{label}
         </if>
         </if>

+ 1 - 1
java110-db/src/main/resources/mapper/service/ServiceBusinessServiceDaoImplMapper.xml

@@ -218,7 +218,7 @@ and t.service_business_id= #{serviceBusinessId}
                 ct.business_type_cd= #{businessTypeCd},
                 ct.business_type_cd= #{businessTypeCd},
             </if>
             </if>
             <if test="description !=null and description != ''">
             <if test="description !=null and description != ''">
-                ct.description= #{description},
+                ct.description= #{description}
             </if>
             </if>
         </set>
         </set>