12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- <?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.xinxin.topro.base.mysqlmapper.SysRoleMenuMapper" >
- <resultMap id="BaseResultMap" type="com.xinxin.topro.base.mysqlmodel.SysRoleMenu" >
- <id column="RM_ID" property="rmId" jdbcType="INTEGER" />
- <result column="SM_ID" property="smId" jdbcType="INTEGER" />
- <result column="RM_IsDel" property="rmIsdel" jdbcType="INTEGER" />
- <result column="SR_ID" property="srId" jdbcType="INTEGER" />
- </resultMap>
- <sql id="Base_Column_List" >
- RM_ID, SM_ID, RM_IsDel, SR_ID
- </sql>
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
- select
- <include refid="Base_Column_List" />
- from sys_role_menu
- where RM_ID = #{rmId,jdbcType=INTEGER}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
- delete from sys_role_menu
- where RM_ID = #{rmId,jdbcType=INTEGER}
- </delete>
- <insert id="insert" parameterType="com.xinxin.topro.base.mysqlmodel.SysRoleMenu" >
- insert into sys_role_menu (RM_ID, SM_ID, RM_IsDel,
- SR_ID)
- values (#{rmId,jdbcType=INTEGER}, #{smId,jdbcType=INTEGER}, #{rmIsdel,jdbcType=INTEGER},
- #{srId,jdbcType=INTEGER})
- </insert>
- <insert id="insertSelective" parameterType="com.xinxin.topro.base.mysqlmodel.SysRoleMenu" >
- insert into sys_role_menu
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="rmId != null" >
- RM_ID,
- </if>
- <if test="smId != null" >
- SM_ID,
- </if>
- <if test="rmIsdel != null" >
- RM_IsDel,
- </if>
- <if test="srId != null" >
- SR_ID,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="rmId != null" >
- #{rmId,jdbcType=INTEGER},
- </if>
- <if test="smId != null" >
- #{smId,jdbcType=INTEGER},
- </if>
- <if test="rmIsdel != null" >
- #{rmIsdel,jdbcType=INTEGER},
- </if>
- <if test="srId != null" >
- #{srId,jdbcType=INTEGER},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.base.mysqlmodel.SysRoleMenu" >
- update sys_role_menu
- <set >
- <if test="smId != null" >
- SM_ID = #{smId,jdbcType=INTEGER},
- </if>
- <if test="rmIsdel != null" >
- RM_IsDel = #{rmIsdel,jdbcType=INTEGER},
- </if>
- <if test="srId != null" >
- SR_ID = #{srId,jdbcType=INTEGER},
- </if>
- </set>
- where RM_ID = #{rmId,jdbcType=INTEGER}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.xinxin.topro.base.mysqlmodel.SysRoleMenu" >
- update sys_role_menu
- set SM_ID = #{smId,jdbcType=INTEGER},
- RM_IsDel = #{rmIsdel,jdbcType=INTEGER},
- SR_ID = #{srId,jdbcType=INTEGER}
- where RM_ID = #{rmId,jdbcType=INTEGER}
- </update>
- </mapper>
|