123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153 |
- <?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.SysRoleMapper" >
- <resultMap id="BaseResultMap" type="com.xinxin.topro.base.mysqlmodel.SysRole" >
- <id column="SR_ID" property="srId" jdbcType="INTEGER" />
- <result column="SR_Name" property="srName" jdbcType="VARCHAR" />
- <result column="SR_Describe" property="srDescribe" jdbcType="VARCHAR" />
- <result column="SR_Sort" property="srSort" jdbcType="INTEGER" />
- <result column="UI_ID_Add" property="uiIdAdd" jdbcType="VARCHAR" />
- <result column="SR_AddDate" property="srAdddate" jdbcType="TIMESTAMP" />
- <result column="UI_ID_Update" property="uiIdUpdate" jdbcType="VARCHAR" />
- <result column="SR_UpdateDate" property="srUpdatedate" jdbcType="TIMESTAMP" />
- <result column="SR_IsDel" property="srIsdel" jdbcType="INTEGER" />
- <result column="HI_ID" property="hiId" jdbcType="INTEGER" />
- </resultMap>
- <sql id="Base_Column_List" >
- SR_ID, SR_Name, SR_Describe, SR_Sort, UI_ID_Add, SR_AddDate, UI_ID_Update, SR_UpdateDate,
- SR_IsDel, HI_ID
- </sql>
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
- select
- <include refid="Base_Column_List" />
- from sys_role
- where SR_ID = #{srId,jdbcType=INTEGER}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
- delete from sys_role
- where SR_ID = #{srId,jdbcType=INTEGER}
- </delete>
- <insert id="insert" parameterType="com.xinxin.topro.base.mysqlmodel.SysRole" >
- insert into sys_role (SR_ID, SR_Name, SR_Describe,
- SR_Sort, UI_ID_Add, SR_AddDate,
- UI_ID_Update, SR_UpdateDate, SR_IsDel,
- HI_ID)
- values (#{srId,jdbcType=INTEGER}, #{srName,jdbcType=VARCHAR}, #{srDescribe,jdbcType=VARCHAR},
- #{srSort,jdbcType=INTEGER}, #{uiIdAdd,jdbcType=VARCHAR}, #{srAdddate,jdbcType=TIMESTAMP},
- #{uiIdUpdate,jdbcType=VARCHAR}, #{srUpdatedate,jdbcType=TIMESTAMP}, #{srIsdel,jdbcType=INTEGER},
- #{hiId,jdbcType=INTEGER})
- </insert>
- <insert id="insertSelective" parameterType="com.xinxin.topro.base.mysqlmodel.SysRole" >
- insert into sys_role
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="srId != null" >
- SR_ID,
- </if>
- <if test="srName != null" >
- SR_Name,
- </if>
- <if test="srDescribe != null" >
- SR_Describe,
- </if>
- <if test="srSort != null" >
- SR_Sort,
- </if>
- <if test="uiIdAdd != null" >
- UI_ID_Add,
- </if>
- <if test="srAdddate != null" >
- SR_AddDate,
- </if>
- <if test="uiIdUpdate != null" >
- UI_ID_Update,
- </if>
- <if test="srUpdatedate != null" >
- SR_UpdateDate,
- </if>
- <if test="srIsdel != null" >
- SR_IsDel,
- </if>
- <if test="hiId != null" >
- HI_ID,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="srId != null" >
- #{srId,jdbcType=INTEGER},
- </if>
- <if test="srName != null" >
- #{srName,jdbcType=VARCHAR},
- </if>
- <if test="srDescribe != null" >
- #{srDescribe,jdbcType=VARCHAR},
- </if>
- <if test="srSort != null" >
- #{srSort,jdbcType=INTEGER},
- </if>
- <if test="uiIdAdd != null" >
- #{uiIdAdd,jdbcType=VARCHAR},
- </if>
- <if test="srAdddate != null" >
- #{srAdddate,jdbcType=TIMESTAMP},
- </if>
- <if test="uiIdUpdate != null" >
- #{uiIdUpdate,jdbcType=VARCHAR},
- </if>
- <if test="srUpdatedate != null" >
- #{srUpdatedate,jdbcType=TIMESTAMP},
- </if>
- <if test="srIsdel != null" >
- #{srIsdel,jdbcType=INTEGER},
- </if>
- <if test="hiId != null" >
- #{hiId,jdbcType=INTEGER},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.base.mysqlmodel.SysRole" >
- update sys_role
- <set >
- <if test="srName != null" >
- SR_Name = #{srName,jdbcType=VARCHAR},
- </if>
- <if test="srDescribe != null" >
- SR_Describe = #{srDescribe,jdbcType=VARCHAR},
- </if>
- <if test="srSort != null" >
- SR_Sort = #{srSort,jdbcType=INTEGER},
- </if>
- <if test="uiIdAdd != null" >
- UI_ID_Add = #{uiIdAdd,jdbcType=VARCHAR},
- </if>
- <if test="srAdddate != null" >
- SR_AddDate = #{srAdddate,jdbcType=TIMESTAMP},
- </if>
- <if test="uiIdUpdate != null" >
- UI_ID_Update = #{uiIdUpdate,jdbcType=VARCHAR},
- </if>
- <if test="srUpdatedate != null" >
- SR_UpdateDate = #{srUpdatedate,jdbcType=TIMESTAMP},
- </if>
- <if test="srIsdel != null" >
- SR_IsDel = #{srIsdel,jdbcType=INTEGER},
- </if>
- <if test="hiId != null" >
- HI_ID = #{hiId,jdbcType=INTEGER},
- </if>
- </set>
- where SR_ID = #{srId,jdbcType=INTEGER}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.xinxin.topro.base.mysqlmodel.SysRole" >
- update sys_role
- set SR_Name = #{srName,jdbcType=VARCHAR},
- SR_Describe = #{srDescribe,jdbcType=VARCHAR},
- SR_Sort = #{srSort,jdbcType=INTEGER},
- UI_ID_Add = #{uiIdAdd,jdbcType=VARCHAR},
- SR_AddDate = #{srAdddate,jdbcType=TIMESTAMP},
- UI_ID_Update = #{uiIdUpdate,jdbcType=VARCHAR},
- SR_UpdateDate = #{srUpdatedate,jdbcType=TIMESTAMP},
- SR_IsDel = #{srIsdel,jdbcType=INTEGER},
- HI_ID = #{hiId,jdbcType=INTEGER}
- where SR_ID = #{srId,jdbcType=INTEGER}
- </update>
- </mapper>
|