对比新文件 |
| | |
| | | <?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.RolePermissionsInfoMapper" > |
| | | <resultMap id="BaseResultMap" type="com.gk.firework.Domain.RolePermissionsInfo" > |
| | | <!-- --> |
| | | <id column="id" property="id" jdbcType="BIGINT" /> |
| | | <result column="roleid" property="roleid" jdbcType="BIGINT" /> |
| | | <result column="permissionid" property="permissionid" jdbcType="BIGINT" /> |
| | | </resultMap> |
| | | <sql id="Base_Column_List" > |
| | | <!-- --> |
| | | id, roleid, permissionid |
| | | </sql> |
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" > |
| | | <!-- --> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from rolepermissions |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </select> |
| | | <select id="selectMenuList" resultType="com.gk.firework.Domain.Vo.Menu"> |
| | | select permissionid as id |
| | | from rolepermissions |
| | | where roleid = #{roleId,jdbcType=BIGINT} |
| | | </select> |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long" > |
| | | <!-- --> |
| | | delete from rolepermissions |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </delete> |
| | | <delete id="delRolePermissionByRoleId"> |
| | | delete from rolepermissions |
| | | where roleid = #{roleid,jdbcType=BIGINT} |
| | | </delete> |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.gk.firework.Domain.RolePermissionsInfo" > |
| | | <!-- --> |
| | | update rolepermissions |
| | | <set > |
| | | <if test="roleid != null" > |
| | | roleid = #{roleid,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="permissionid != null" > |
| | | permissionid = #{permissionid,jdbcType=BIGINT}, |
| | | </if> |
| | | </set> |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | <update id="updateByPrimaryKey" parameterType="com.gk.firework.Domain.RolePermissionsInfo" > |
| | | <!-- --> |
| | | update rolepermissions |
| | | set roleid = #{roleid,jdbcType=BIGINT}, |
| | | permissionid = #{permissionid,jdbcType=BIGINT} |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | </mapper> |