wuxw
2019-08-20 39c1845259e34c161bd4e464a44b2f11c8a7e546
修复 update set 问题
1个文件已修改
40 ■■■■ 已修改文件
java110-db/src/main/resources/mapper/menu/MenuServiceDaoImplMapper.xml 40 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
java110-db/src/main/resources/mapper/menu/MenuServiceDaoImplMapper.xml
@@ -48,25 +48,27 @@
    <!-- 修改路由信息 add by wuxw 2018-07-03 -->
    <update id="updateMenuGroupInfo" parameterType="Map">
        update m_menu_group t set
        <if test="statusCd !=null and statusCd != ''">
            t.status_cd = #{statusCd},
        </if>
        <if test="name !=null and name != ''">
             t.name= #{name},
        </if>
        <if test="icon !=null and icon != ''">
            t.icon= #{icon},
        </if>
        <if test="label !=null and label != ''">
            t.label= #{label},
        </if>
        <if test="seq !=null ">
            t.seq= #{seq},
        </if>
        <if test="description !=null and description != ''">
            t.description= #{description}
        </if>
        update m_menu_group t
        <set>
            <if test="statusCd !=null and statusCd != ''">
                t.status_cd = #{statusCd},
            </if>
            <if test="name !=null and name != ''">
                 t.name= #{name},
            </if>
            <if test="icon !=null and icon != ''">
                t.icon= #{icon},
            </if>
            <if test="label !=null and label != ''">
                t.label= #{label},
            </if>
            <if test="seq !=null ">
                t.seq= #{seq},
            </if>
            <if test="description !=null and description != ''">
                t.description= #{description}
            </if>
        </set>
        where t.g_id= #{gId}
    </update>