- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="com.api.base.dao.UserRoleMapper">
- <resultMap id="BaseResultMap" type="com.api.base.model.UserRole">
- <id column="role_id" jdbcType="BIGINT" property="roleId" />
- <id column="user_id" jdbcType="BIGINT" property="userId" />
- </resultMap>
- <delete id="deleteByUid">
- delete from sys_user_role where user_id = #{uid}
- </delete>
- </mapper>
|