|
|
|
@@ -4,8 +4,8 @@ |
|
|
|
<resultMap id="BaseResultMap" type="com.iformall.domain.po.MallRolePermission"> |
|
|
|
<id column="id" jdbcType="BIGINT" property="id"/> |
|
|
|
<result column="tenant_id" jdbcType="VARCHAR" property="tenantId"/> |
|
|
|
<result column="permission_id" jdbcType="VARCHAR" property="permissionId"/> |
|
|
|
<result column="role_id" jdbcType="VARCHAR" property="roleId"/> |
|
|
|
<result column="permission_id" jdbcType="BIGINT" property="permissionId"/> |
|
|
|
<result column="role_id" jdbcType="BIGINT" property="roleId"/> |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="allColumns"> |
|
|
|
@@ -46,6 +46,16 @@ |
|
|
|
<include refid="dynamicWhereConditions"/> |
|
|
|
</select> |
|
|
|
|
|
|
|
<insert id="insertBatch" parameterType="java.util.List"> |
|
|
|
insert into mall_role_permission (id, tenant_id, permission_id, role_id) values |
|
|
|
<foreach collection="list" item="item" index="index" separator=","> |
|
|
|
(#{item.id,jdbcType=BIGINT}, |
|
|
|
#{item.tenantId,jdbcType=VARCHAR}, |
|
|
|
#{item.permissionId,jdbcType=BIGINT}, |
|
|
|
#{item.roleId,jdbcType=BIGINT}) |
|
|
|
</foreach> |
|
|
|
</insert> |
|
|
|
|
|
|
|
|
|
|
|
<delete id="deleteByRoleId"> |
|
|
|
delete from mall_role_permission where role_id=#{roleId} |
|
|
|
|