UmsAdminPermissionRelationDao.xml 634 B

12345678910111213
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.macro.mall.dao.UmsAdminPermissionRelationDao">
  4. <!--批量新增回写主键支持-->
  5. <insert id="insertList">
  6. INSERT INTO ums_admin_permission_relation (admin_id, permission_id, type) VALUES
  7. <foreach collection="list" separator="," item="item" index="index">
  8. (#{item.adminId,jdbcType=BIGINT},
  9. #{item.permissionId,jdbcType=BIGINT},
  10. #{item.type,jdbcType=INTEGER})
  11. </foreach>
  12. </insert>
  13. </mapper>