对比新文件 |
| | |
| | | <?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.gk.firework.Mapper.UserRolesInfoMapper" > |
| | | <resultMap id="BaseResultMap" type="com.gk.firework.Domain.UserRolesInfo" > |
| | | <!-- --> |
| | | <id column="id" property="id" jdbcType="BIGINT" /> |
| | | <result column="userid" property="userid" jdbcType="BIGINT" /> |
| | | <result column="roleid" property="roleid" jdbcType="BIGINT" /> |
| | | </resultMap> |
| | | <sql id="Base_Column_List" > |
| | | <!-- --> |
| | | id, userid, roleid |
| | | </sql> |
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" > |
| | | <!-- --> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from userroles |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </select> |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long" > |
| | | <!-- --> |
| | | delete from userroles |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </delete> |
| | | <delete id="deleteByUserId"> |
| | | delete from userroles |
| | | where userid = #{userid,jdbcType=BIGINT} |
| | | </delete> |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.gk.firework.Domain.UserRolesInfo" > |
| | | <!-- --> |
| | | update userroles |
| | | <set > |
| | | <if test="userid != null" > |
| | | userid = #{userid,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="roleid != null" > |
| | | roleid = #{roleid,jdbcType=BIGINT}, |
| | | </if> |
| | | </set> |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | <update id="updateByPrimaryKey" parameterType="com.gk.firework.Domain.UserRolesInfo" > |
| | | <!-- --> |
| | | update userroles |
| | | set userid = #{userid,jdbcType=BIGINT}, |
| | | roleid = #{roleid,jdbcType=BIGINT} |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | </mapper> |