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.SysRoleOperationMapper" >
- <resultMap id="BaseResultMap" type="com.xinxin.topro.base.mysqlmodel.SysRoleOperation" >
- <id column="RO_ID" property="roId" jdbcType="INTEGER" />
- <result column="RO_IsDel" property="roIsdel" jdbcType="INTEGER" />
- <result column="SO_ID" property="soId" jdbcType="INTEGER" />
- <result column="SR_ID" property="srId" jdbcType="INTEGER" />
- </resultMap>
- <sql id="Base_Column_List" >
- RO_ID, RO_IsDel, SO_ID, SR_ID
- </sql>
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
- select
- <include refid="Base_Column_List" />
- from sys_role_operation
- where RO_ID = #{roId,jdbcType=INTEGER}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
- delete from sys_role_operation
- where RO_ID = #{roId,jdbcType=INTEGER}
- </delete>
- <insert id="insert" parameterType="com.xinxin.topro.base.mysqlmodel.SysRoleOperation" >
- insert into sys_role_operation (RO_ID, RO_IsDel, SO_ID,
- SR_ID)
- values (#{roId,jdbcType=INTEGER}, #{roIsdel,jdbcType=INTEGER}, #{soId,jdbcType=INTEGER},
- #{srId,jdbcType=INTEGER})
- </insert>
- <insert id="insertSelective" parameterType="com.xinxin.topro.base.mysqlmodel.SysRoleOperation" >
- insert into sys_role_operation
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="roId != null" >
- RO_ID,
- </if>
- <if test="roIsdel != null" >
- RO_IsDel,
- </if>
- <if test="soId != null" >
- SO_ID,
- </if>
- <if test="srId != null" >
- SR_ID,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="roId != null" >
- #{roId,jdbcType=INTEGER},
- </if>
- <if test="roIsdel != null" >
- #{roIsdel,jdbcType=INTEGER},
- </if>
- <if test="soId != null" >
- #{soId,jdbcType=INTEGER},
- </if>
- <if test="srId != null" >
- #{srId,jdbcType=INTEGER},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.base.mysqlmodel.SysRoleOperation" >
- update sys_role_operation
- <set >
- <if test="roIsdel != null" >
- RO_IsDel = #{roIsdel,jdbcType=INTEGER},
- </if>
- <if test="soId != null" >
- SO_ID = #{soId,jdbcType=INTEGER},
- </if>
- <if test="srId != null" >
- SR_ID = #{srId,jdbcType=INTEGER},
- </if>
- </set>
- where RO_ID = #{roId,jdbcType=INTEGER}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.xinxin.topro.base.mysqlmodel.SysRoleOperation" >
- update sys_role_operation
- set RO_IsDel = #{roIsdel,jdbcType=INTEGER},
- SO_ID = #{soId,jdbcType=INTEGER},
- SR_ID = #{srId,jdbcType=INTEGER}
- where RO_ID = #{roId,jdbcType=INTEGER}
- </update>
- </mapper>
|