管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2022-10-08 be9f8d7bf1f675def1c280e944ef3c5abb63ac13
src/main/resources/mapper/sys/DepMapper.xml
@@ -15,7 +15,7 @@
    <select id="selectDepRecursive" resultMap="resultMap" resultType="com.lf.server.entity.sys.DepEntity">
        with recursive rs as(
            select * from lf.sys_dep where name='中国石油天然气管道工程有限公司'
            select * from lf.sys_dep where name=#{name}
        union
            select a.* from lf.sys_dep a, rs b where a.pid=b.id
        )
@@ -62,11 +62,11 @@
    </update>
    <update id="updateDeps">
        <foreach collection="list" item="item" index="index" separator=","  >
        <foreach collection="list" item="item" index="index" separator=";">
            update lf.sys_menu
            <set>
                pid=#{item.pid},name=#{item.name},sname=#{item.sname},code=#{item.code},uncode=#{item.uncode},addr=#{item.addr},contact=#{item.contact},
                fax=#{item.fax},email=#{item.email},post=#{item.post},website=#{item.website},level=#{item.level},order_num =#{item.orderNum},
                fax=#{item.fax},email=#{item.email},post=#{item.post},website=#{item.website},level=#{item.level},order_num=#{item.orderNum},
                update_user=#{item.updateUser},update_time=now(),bak=#{item.bak}
            </set>
            where id = #{item.id}