123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175 |
- <?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.SystemMapper" >
- <resultMap id="BaseResultMap" type="com.xinxin.topro.base.mysqlmodel.SysSystem" >
- <id column="SS_ID" property="ssId" jdbcType="INTEGER" />
- <result column="SS_Name" property="ssName" jdbcType="VARCHAR" />
- <result column="SS_URL" property="ssUrl" jdbcType="VARCHAR" />
- <result column="SS_Type" property="ssType" jdbcType="INTEGER" />
- <result column="SS_Parameter" property="ssParameter" jdbcType="VARCHAR" />
- <result column="SS_Sort" property="ssSort" jdbcType="INTEGER" />
- <result column="UI_ID_Add" property="uiIdAdd" jdbcType="VARCHAR" />
- <result column="SS_AddDate" property="ssAdddate" jdbcType="TIMESTAMP" />
- <result column="UI_ID_Update" property="uiIdUpdate" jdbcType="VARCHAR" />
- <result column="SS_UpdateDate" property="ssUpdatedate" jdbcType="TIMESTAMP" />
- <result column="SS_IsDel" property="ssIsdel" jdbcType="INTEGER" />
- <result column="SS_EffectiveTime" property="ssEffectivetime" jdbcType="TIMESTAMP" />
- <result column="SS_FailureTime" property="ssFailuretime" jdbcType="TIMESTAMP" />
- <result column="HI_ID" property="hiId" jdbcType="INTEGER" />
- </resultMap>
- <sql id="Base_Column_List" >
- SS_ID, SS_Name, SS_URL, SS_Type, SS_Parameter, SS_Sort, UI_ID_Add, SS_AddDate, UI_ID_Update,
- SS_UpdateDate, SS_IsDel, SS_EffectiveTime, SS_FailureTime, HI_ID
- </sql>
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
- select
- <include refid="Base_Column_List" />
- from sys_system
- where SS_ID = #{ssId,jdbcType=INTEGER}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
- delete from sys_system
- where SS_ID = #{ssId,jdbcType=INTEGER}
- </delete>
- <insert id="insertSelective" parameterType="com.xinxin.topro.base.mysqlmodel.SysSystem" >
- insert into sys_system
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="ssId != null" >
- SS_ID,
- </if>
- <if test="ssName != null" >
- SS_Name,
- </if>
- <if test="ssUrl != null" >
- SS_URL,
- </if>
- <if test="ssType != null" >
- SS_Type,
- </if>
- <if test="ssParameter != null" >
- SS_Parameter,
- </if>
- <if test="ssSort != null" >
- SS_Sort,
- </if>
- <if test="uiIdAdd != null" >
- UI_ID_Add,
- </if>
- <if test="ssAdddate != null" >
- SS_AddDate,
- </if>
- <if test="uiIdUpdate != null" >
- UI_ID_Update,
- </if>
- <if test="ssUpdatedate != null" >
- SS_UpdateDate,
- </if>
- <if test="ssIsdel != null" >
- SS_IsDel,
- </if>
- <if test="ssEffectivetime != null" >
- SS_EffectiveTime,
- </if>
- <if test="ssFailuretime != null" >
- SS_FailureTime,
- </if>
- <if test="hiId != null" >
- HI_ID,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="ssId != null" >
- #{ssId,jdbcType=INTEGER},
- </if>
- <if test="ssName != null" >
- #{ssName,jdbcType=VARCHAR},
- </if>
- <if test="ssUrl != null" >
- #{ssUrl,jdbcType=VARCHAR},
- </if>
- <if test="ssType != null" >
- #{ssType,jdbcType=INTEGER},
- </if>
- <if test="ssParameter != null" >
- #{ssParameter,jdbcType=VARCHAR},
- </if>
- <if test="ssSort != null" >
- #{ssSort,jdbcType=INTEGER},
- </if>
- <if test="uiIdAdd != null" >
- #{uiIdAdd,jdbcType=VARCHAR},
- </if>
- <if test="ssAdddate != null" >
- #{ssAdddate,jdbcType=TIMESTAMP},
- </if>
- <if test="uiIdUpdate != null" >
- #{uiIdUpdate,jdbcType=VARCHAR},
- </if>
- <if test="ssUpdatedate != null" >
- #{ssUpdatedate,jdbcType=TIMESTAMP},
- </if>
- <if test="ssIsdel != null" >
- #{ssIsdel,jdbcType=INTEGER},
- </if>
- <if test="ssEffectivetime != null" >
- #{ssEffectivetime,jdbcType=TIMESTAMP},
- </if>
- <if test="ssFailuretime != null" >
- #{ssFailuretime,jdbcType=TIMESTAMP},
- </if>
- <if test="hiId != null" >
- #{hiId,jdbcType=INTEGER},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.base.mysqlmodel.SysSystem" >
- update sys_system
- <set >
- <if test="ssName != null" >
- SS_Name = #{ssName,jdbcType=VARCHAR},
- </if>
- <if test="ssUrl != null" >
- SS_URL = #{ssUrl,jdbcType=VARCHAR},
- </if>
- <if test="ssType != null" >
- SS_Type = #{ssType,jdbcType=INTEGER},
- </if>
- <if test="ssParameter != null" >
- SS_Parameter = #{ssParameter,jdbcType=VARCHAR},
- </if>
- <if test="ssSort != null" >
- SS_Sort = #{ssSort,jdbcType=INTEGER},
- </if>
- <if test="uiIdAdd != null" >
- UI_ID_Add = #{uiIdAdd,jdbcType=VARCHAR},
- </if>
- <if test="ssAdddate != null" >
- SS_AddDate = #{ssAdddate,jdbcType=TIMESTAMP},
- </if>
- <if test="uiIdUpdate != null" >
- UI_ID_Update = #{uiIdUpdate,jdbcType=VARCHAR},
- </if>
- <if test="ssUpdatedate != null" >
- SS_UpdateDate = #{ssUpdatedate,jdbcType=TIMESTAMP},
- </if>
- <if test="ssIsdel != null" >
- SS_IsDel = #{ssIsdel,jdbcType=INTEGER},
- </if>
- <if test="ssEffectivetime != null" >
- SS_EffectiveTime = #{ssEffectivetime,jdbcType=TIMESTAMP},
- </if>
- <if test="ssFailuretime != null" >
- SS_FailureTime = #{ssFailuretime,jdbcType=TIMESTAMP},
- </if>
- <if test="hiId != null" >
- HI_ID = #{hiId,jdbcType=INTEGER},
- </if>
- </set>
- where SS_ID = #{ssId,jdbcType=INTEGER}
- </update>
- </mapper>
|