| | |
| | | insert into lf.sys_auth |
| | | (name,tag,create_user,create_time,bak) |
| | | values |
| | | <foreach collection="list" item="item" index="index" separator="," > |
| | | <foreach collection="list" item="item" index="index" separator="," > |
| | | (#{item.name},#{item.tag},#{item.createUser},now(),#{item.bak}) |
| | | </foreach> |
| | | </insert> |
| | |
| | | |
| | | <delete id="deleteAuths" > |
| | | delete from lf.sys_auth where id in |
| | | <foreach item="ids" collection="list" index="index" open="(" separator="," close=")"> |
| | | #{ids} |
| | | <foreach item="id" collection="ids" index="index" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | |