UserRoleMapper.xml 519 B

1234567891011
  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.api.base.dao.UserRoleMapper">
  4. <resultMap id="BaseResultMap" type="com.api.base.model.UserRole">
  5. <id column="role_id" jdbcType="BIGINT" property="roleId" />
  6. <id column="user_id" jdbcType="BIGINT" property="userId" />
  7. </resultMap>
  8. <delete id="deleteByUid">
  9. delete from sys_user_role where user_id = #{uid}
  10. </delete>
  11. </mapper>