From ba5210dc8c6c537cacc59c18d58baa9744cd2b9d Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期二, 10 五月 2022 11:14:39 +0800
Subject: [PATCH] 优化报修单推送bug

---
 java110-db/src/main/resources/mapper/user/MenuGroupV1ServiceDaoImplMapper.xml |  216 ++++++++++++++++++++++++++++--------------------------
 1 files changed, 112 insertions(+), 104 deletions(-)

diff --git a/java110-db/src/main/resources/mapper/user/MenuGroupV1ServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/user/MenuGroupV1ServiceDaoImplMapper.xml
index 1a96544..364f345 100644
--- a/java110-db/src/main/resources/mapper/user/MenuGroupV1ServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/user/MenuGroupV1ServiceDaoImplMapper.xml
@@ -5,129 +5,137 @@
 <mapper namespace="menuGroupV1ServiceDaoImpl">
 
 
-
-
-
     <!-- 淇濆瓨鍟嗘埛淇℃伅淇℃伅 add by wuxw 2018-07-03 -->
     <insert id="saveMenuGroupInfo" parameterType="Map">
         insert into m_menu_group(
-group_type,store_type,g_id,name,icon,description,label,seq
-) values (
-#{groupType},#{storeType},#{gId},#{name},#{icon},#{description},#{label},#{seq}
-)
+        group_type,store_type,g_id,name,icon,description,label,seq
+        ) values (
+        #{groupType},#{storeType},#{gId},#{name},#{icon},#{description},#{label},#{seq}
+        )
     </insert>
-
 
 
     <!-- 鏌ヨ鍟嗘埛淇℃伅淇℃伅 add by wuxw 2018-07-03 -->
     <select id="getMenuGroupInfo" parameterType="Map" resultType="Map">
-        select  t.group_type,t.group_type groupType,t.store_type,t.store_type storeType,t.g_id,t.g_id gId,t.name,t.icon,t.description,t.status_cd,t.status_cd statusCd,t.label,t.seq 
-from m_menu_group t 
-where 1 =1 
-<if test="groupType !=null and groupType != ''">
-   and t.group_type= #{groupType}
-</if> 
-<if test="storeType !=null and storeType != ''">
-   and t.store_type= #{storeType}
-</if> 
-<if test="gId !=null and gId != ''">
-   and t.g_id= #{gId}
-</if> 
-<if test="name !=null and name != ''">
-   and t.name= #{name}
-</if> 
-<if test="icon !=null and icon != ''">
-   and t.icon= #{icon}
-</if> 
-<if test="description !=null and description != ''">
-   and t.description= #{description}
-</if> 
-<if test="statusCd !=null and statusCd != ''">
-   and t.status_cd= #{statusCd}
-</if> 
-<if test="label !=null and label != ''">
-   and t.label= #{label}
-</if> 
-<if test="seq !=null and seq != ''">
-   and t.seq= #{seq}
-</if> 
-order by t.create_time desc
-<if test="page != -1 and page != null ">
-   limit #{page}, #{row}
-</if> 
+        select t.group_type,t.group_type groupType,t.store_type,t.store_type storeType,t.g_id,t.g_id
+        gId,t.name,t.icon,t.description,t.status_cd,t.status_cd statusCd,t.label,t.seq
+        from m_menu_group t
+        where 1 =1
+        <if test="groupType !=null and groupType != ''">
+            and t.group_type= #{groupType}
+        </if>
+        <if test="storeType !=null and storeType != ''">
+            and t.store_type= #{storeType}
+        </if>
+        <if test="gId !=null and gId != ''">
+            and t.g_id= #{gId}
+        </if>
+        <if test="gIds !=null">
+            and t.g_id in
+            <foreach collection="gIds" item="item" open="(" close=")" separator=",">
+                #{item}
+            </foreach>
+        </if>
+        <if test="name !=null and name != ''">
+            and t.name= #{name}
+        </if>
+        <if test="icon !=null and icon != ''">
+            and t.icon= #{icon}
+        </if>
+        <if test="description !=null and description != ''">
+            and t.description= #{description}
+        </if>
+        <if test="statusCd !=null and statusCd != ''">
+            and t.status_cd= #{statusCd}
+        </if>
+        <if test="label !=null and label != ''">
+            and t.label= #{label}
+        </if>
+        <if test="seq !=null and seq != ''">
+            and t.seq= #{seq}
+        </if>
+        order by t.create_time desc
+        <if test="page != -1 and page != null ">
+            limit #{page}, #{row}
+        </if>
 
     </select>
 
 
-
-
     <!-- 淇敼鍟嗘埛淇℃伅淇℃伅 add by wuxw 2018-07-03 -->
     <update id="updateMenuGroupInfo" parameterType="Map">
-        update  m_menu_group t set t.status_cd = #{statusCd}
-<if test="newBId != null and newBId != ''">
-,t.b_id = #{newBId}
-</if> 
-<if test="groupType !=null and groupType != ''">
-, t.group_type= #{groupType}
-</if> 
-<if test="storeType !=null and storeType != ''">
-, t.store_type= #{storeType}
-</if> 
-<if test="name !=null and name != ''">
-, t.name= #{name}
-</if> 
-<if test="icon !=null and icon != ''">
-, t.icon= #{icon}
-</if> 
-<if test="description !=null and description != ''">
-, t.description= #{description}
-</if> 
-<if test="label !=null and label != ''">
-, t.label= #{label}
-</if> 
-<if test="seq !=null and seq != ''">
-, t.seq= #{seq}
-</if> 
- where 1=1 <if test="gId !=null and gId != ''">
-and t.g_id= #{gId}
-</if> 
+        update m_menu_group t set t.status_cd = #{statusCd}
+        <if test="newBId != null and newBId != ''">
+            ,t.b_id = #{newBId}
+        </if>
+        <if test="groupType !=null and groupType != ''">
+            , t.group_type= #{groupType}
+        </if>
+        <if test="storeType !=null and storeType != ''">
+            , t.store_type= #{storeType}
+        </if>
+        <if test="name !=null and name != ''">
+            , t.name= #{name}
+        </if>
+        <if test="icon !=null and icon != ''">
+            , t.icon= #{icon}
+        </if>
+        <if test="description !=null and description != ''">
+            , t.description= #{description}
+        </if>
+        <if test="label !=null and label != ''">
+            , t.label= #{label}
+        </if>
+        <if test="seq !=null and seq != ''">
+            , t.seq= #{seq}
+        </if>
+        where 1=1
+        <if test="gId !=null and gId != ''">
+            and t.g_id= #{gId}
+        </if>
 
     </update>
 
     <!-- 鏌ヨ鍟嗘埛淇℃伅鏁伴噺 add by wuxw 2018-07-03 -->
-     <select id="queryMenuGroupsCount" parameterType="Map" resultType="Map">
-        select  count(1) count 
-from m_menu_group t 
-where 1 =1 
-<if test="groupType !=null and groupType != ''">
-   and t.group_type= #{groupType}
-</if> 
-<if test="storeType !=null and storeType != ''">
-   and t.store_type= #{storeType}
-</if> 
-<if test="gId !=null and gId != ''">
-   and t.g_id= #{gId}
-</if> 
-<if test="name !=null and name != ''">
-   and t.name= #{name}
-</if> 
-<if test="icon !=null and icon != ''">
-   and t.icon= #{icon}
-</if> 
-<if test="description !=null and description != ''">
-   and t.description= #{description}
-</if> 
-<if test="statusCd !=null and statusCd != ''">
-   and t.status_cd= #{statusCd}
-</if> 
-<if test="label !=null and label != ''">
-   and t.label= #{label}
-</if> 
-<if test="seq !=null and seq != ''">
-   and t.seq= #{seq}
-</if> 
+    <select id="queryMenuGroupsCount" parameterType="Map" resultType="Map">
+        select count(1) count
+        from m_menu_group t
+        where 1 =1
+        <if test="groupType !=null and groupType != ''">
+            and t.group_type= #{groupType}
+        </if>
+        <if test="storeType !=null and storeType != ''">
+            and t.store_type= #{storeType}
+        </if>
+        <if test="gId !=null and gId != ''">
+            and t.g_id= #{gId}
+        </if>
+        <if test="gIds !=null">
+            and t.g_id in
+            <foreach collection="gIds" item="item" open="(" close=")" separator=",">
+                #{item}
+            </foreach>
+        </if>
+        <if test="name !=null and name != ''">
+            and t.name= #{name}
+        </if>
+        <if test="icon !=null and icon != ''">
+            and t.icon= #{icon}
+        </if>
+        <if test="description !=null and description != ''">
+            and t.description= #{description}
+        </if>
+        <if test="statusCd !=null and statusCd != ''">
+            and t.status_cd= #{statusCd}
+        </if>
+        <if test="label !=null and label != ''">
+            and t.label= #{label}
+        </if>
+        <if test="seq !=null and seq != ''">
+            and t.seq= #{seq}
+        </if>
 
 
-     </select>
+    </select>
 
 </mapper>

--
Gitblit v1.8.0