| | |
| | | |
| | | <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 |
| | | ) |
| | |
| | | </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} |