123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177 |
- <?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.SysOperationMapper" >
- <resultMap id="BaseResultMap" type="com.xinxin.topro.base.mysqlmodel.SysOperation" >
- <id column="SO_ID" property="soId" jdbcType="INTEGER" />
- <result column="SO_Name" property="soName" jdbcType="VARCHAR" />
- <result column="SO_Intro" property="soIntro" jdbcType="VARCHAR" />
- <result column="SO_Icon" property="soIcon" jdbcType="VARCHAR" />
- <result column="SO_Type" property="soType" jdbcType="INTEGER" />
- <result column="SO_Sort" property="soSort" jdbcType="INTEGER" />
- <result column="UI_ID_Add" property="uiIdAdd" jdbcType="VARCHAR" />
- <result column="SO_AddDate" property="soAdddate" jdbcType="TIMESTAMP" />
- <result column="UI_ID_Update" property="uiIdUpdate" jdbcType="VARCHAR" />
- <result column="SO_UpdateDate" property="soUpdatedate" jdbcType="TIMESTAMP" />
- <result column="SO_IsDel" property="soIsdel" jdbcType="INTEGER" />
- <result column="SF_ID" property="sfId" jdbcType="INTEGER" />
- </resultMap>
- <sql id="Base_Column_List" >
- SO_ID, SO_Name, SO_Intro, SO_Icon, SO_Type, SO_Sort, UI_ID_Add, SO_AddDate, UI_ID_Update,
- SO_UpdateDate, SO_IsDel, SF_ID
- </sql>
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
- select
- <include refid="Base_Column_List" />
- from sys_operation
- where SO_ID = #{soId,jdbcType=INTEGER}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
- delete from sys_operation
- where SO_ID = #{soId,jdbcType=INTEGER}
- </delete>
- <insert id="insert" parameterType="com.xinxin.topro.base.mysqlmodel.SysOperation" >
- insert into sys_operation (SO_ID, SO_Name, SO_Intro,
- SO_Icon, SO_Type, SO_Sort,
- UI_ID_Add, SO_AddDate, UI_ID_Update,
- SO_UpdateDate, SO_IsDel, SF_ID
- )
- values (#{soId,jdbcType=INTEGER}, #{soName,jdbcType=VARCHAR}, #{soIntro,jdbcType=VARCHAR},
- #{soIcon,jdbcType=VARCHAR}, #{soType,jdbcType=INTEGER}, #{soSort,jdbcType=INTEGER},
- #{uiIdAdd,jdbcType=VARCHAR}, #{soAdddate,jdbcType=TIMESTAMP}, #{uiIdUpdate,jdbcType=VARCHAR},
- #{soUpdatedate,jdbcType=TIMESTAMP}, #{soIsdel,jdbcType=INTEGER}, #{sfId,jdbcType=INTEGER}
- )
- </insert>
- <insert id="insertSelective" parameterType="com.xinxin.topro.base.mysqlmodel.SysOperation" >
- insert into sys_operation
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="soId != null" >
- SO_ID,
- </if>
- <if test="soName != null" >
- SO_Name,
- </if>
- <if test="soIntro != null" >
- SO_Intro,
- </if>
- <if test="soIcon != null" >
- SO_Icon,
- </if>
- <if test="soType != null" >
- SO_Type,
- </if>
- <if test="soSort != null" >
- SO_Sort,
- </if>
- <if test="uiIdAdd != null" >
- UI_ID_Add,
- </if>
- <if test="soAdddate != null" >
- SO_AddDate,
- </if>
- <if test="uiIdUpdate != null" >
- UI_ID_Update,
- </if>
- <if test="soUpdatedate != null" >
- SO_UpdateDate,
- </if>
- <if test="soIsdel != null" >
- SO_IsDel,
- </if>
- <if test="sfId != null" >
- SF_ID,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="soId != null" >
- #{soId,jdbcType=INTEGER},
- </if>
- <if test="soName != null" >
- #{soName,jdbcType=VARCHAR},
- </if>
- <if test="soIntro != null" >
- #{soIntro,jdbcType=VARCHAR},
- </if>
- <if test="soIcon != null" >
- #{soIcon,jdbcType=VARCHAR},
- </if>
- <if test="soType != null" >
- #{soType,jdbcType=INTEGER},
- </if>
- <if test="soSort != null" >
- #{soSort,jdbcType=INTEGER},
- </if>
- <if test="uiIdAdd != null" >
- #{uiIdAdd,jdbcType=VARCHAR},
- </if>
- <if test="soAdddate != null" >
- #{soAdddate,jdbcType=TIMESTAMP},
- </if>
- <if test="uiIdUpdate != null" >
- #{uiIdUpdate,jdbcType=VARCHAR},
- </if>
- <if test="soUpdatedate != null" >
- #{soUpdatedate,jdbcType=TIMESTAMP},
- </if>
- <if test="soIsdel != null" >
- #{soIsdel,jdbcType=INTEGER},
- </if>
- <if test="sfId != null" >
- #{sfId,jdbcType=INTEGER},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.base.mysqlmodel.SysOperation" >
- update sys_operation
- <set >
- <if test="soName != null" >
- SO_Name = #{soName,jdbcType=VARCHAR},
- </if>
- <if test="soIntro != null" >
- SO_Intro = #{soIntro,jdbcType=VARCHAR},
- </if>
- <if test="soIcon != null" >
- SO_Icon = #{soIcon,jdbcType=VARCHAR},
- </if>
- <if test="soType != null" >
- SO_Type = #{soType,jdbcType=INTEGER},
- </if>
- <if test="soSort != null" >
- SO_Sort = #{soSort,jdbcType=INTEGER},
- </if>
- <if test="uiIdAdd != null" >
- UI_ID_Add = #{uiIdAdd,jdbcType=VARCHAR},
- </if>
- <if test="soAdddate != null" >
- SO_AddDate = #{soAdddate,jdbcType=TIMESTAMP},
- </if>
- <if test="uiIdUpdate != null" >
- UI_ID_Update = #{uiIdUpdate,jdbcType=VARCHAR},
- </if>
- <if test="soUpdatedate != null" >
- SO_UpdateDate = #{soUpdatedate,jdbcType=TIMESTAMP},
- </if>
- <if test="soIsdel != null" >
- SO_IsDel = #{soIsdel,jdbcType=INTEGER},
- </if>
- <if test="sfId != null" >
- SF_ID = #{sfId,jdbcType=INTEGER},
- </if>
- </set>
- where SO_ID = #{soId,jdbcType=INTEGER}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.xinxin.topro.base.mysqlmodel.SysOperation" >
- update sys_operation
- set SO_Name = #{soName,jdbcType=VARCHAR},
- SO_Intro = #{soIntro,jdbcType=VARCHAR},
- SO_Icon = #{soIcon,jdbcType=VARCHAR},
- SO_Type = #{soType,jdbcType=INTEGER},
- SO_Sort = #{soSort,jdbcType=INTEGER},
- UI_ID_Add = #{uiIdAdd,jdbcType=VARCHAR},
- SO_AddDate = #{soAdddate,jdbcType=TIMESTAMP},
- UI_ID_Update = #{uiIdUpdate,jdbcType=VARCHAR},
- SO_UpdateDate = #{soUpdatedate,jdbcType=TIMESTAMP},
- SO_IsDel = #{soIsdel,jdbcType=INTEGER},
- SF_ID = #{sfId,jdbcType=INTEGER}
- where SO_ID = #{soId,jdbcType=INTEGER}
- </update>
- </mapper>
|