123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155 |
- <?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.pubservice.mysqlmapper.InpTemporaryDataMapper" >
- <resultMap id="BaseResultMap" type="com.xinxin.topro.pubservice.mysqlModel.InpTemporaryData" >
- <id column="id" property="id" jdbcType="INTEGER" />
- <result column="table_name" property="tableName" jdbcType="VARCHAR" />
- <result column="primary_field_value" property="primaryFieldValue" jdbcType="INTEGER" />
- <result column="main_type" property="mainType" jdbcType="VARCHAR" />
- <result column="sub_type" property="subType" jdbcType="VARCHAR" />
- <result column="is_handle" property="isHandle" jdbcType="INTEGER" />
- <result column="is_del" property="isDel" jdbcType="INTEGER" />
- <result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
- <result column="update_time" property="updateTime" jdbcType="TIMESTAMP" />
- </resultMap>
- <sql id="Base_Column_List" >
- id, table_name, primary_field_value, main_type, sub_type, is_handle, is_del, create_time,
- update_time
- </sql>
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
- select
- <include refid="Base_Column_List" />
- from inp_temporary_data
- where id = #{id,jdbcType=INTEGER}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
- delete from inp_temporary_data
- where id = #{id,jdbcType=INTEGER}
- </delete>
- <insert id="insert" parameterType="com.xinxin.topro.pubservice.mysqlModel.InpTemporaryData" >
- insert into inp_temporary_data (id, table_name, primary_field_value,
- main_type, sub_type, is_handle,
- is_del, create_time, update_time
- )
- values (#{id,jdbcType=INTEGER}, #{tableName,jdbcType=VARCHAR}, #{primaryFieldValue,jdbcType=INTEGER},
- #{mainType,jdbcType=VARCHAR}, #{subType,jdbcType=VARCHAR}, #{isHandle,jdbcType=INTEGER},
- #{isDel,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
- )
- </insert>
- <insert id="insertSelective" parameterType="com.xinxin.topro.pubservice.mysqlModel.InpTemporaryData" >
- insert into inp_temporary_data
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="id != null" >
- id,
- </if>
- <if test="tableName != null" >
- table_name,
- </if>
- <if test="primaryFieldValue != null" >
- primary_field_value,
- </if>
- <if test="mainType != null" >
- main_type,
- </if>
- <if test="subType != null" >
- sub_type,
- </if>
- <if test="isHandle != null" >
- is_handle,
- </if>
- <if test="isDel != null" >
- is_del,
- </if>
- <if test="createTime != null" >
- create_time,
- </if>
- <if test="updateTime != null" >
- update_time,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="id != null" >
- #{id,jdbcType=INTEGER},
- </if>
- <if test="tableName != null" >
- #{tableName,jdbcType=VARCHAR},
- </if>
- <if test="primaryFieldValue != null" >
- #{primaryFieldValue,jdbcType=INTEGER},
- </if>
- <if test="mainType != null" >
- #{mainType,jdbcType=VARCHAR},
- </if>
- <if test="subType != null" >
- #{subType,jdbcType=VARCHAR},
- </if>
- <if test="isHandle != null" >
- #{isHandle,jdbcType=INTEGER},
- </if>
- <if test="isDel != null" >
- #{isDel,jdbcType=INTEGER},
- </if>
- <if test="createTime != null" >
- #{createTime,jdbcType=TIMESTAMP},
- </if>
- <if test="updateTime != null" >
- #{updateTime,jdbcType=TIMESTAMP},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.pubservice.mysqlModel.InpTemporaryData" >
- update inp_temporary_data
- <set >
- <if test="tableName != null" >
- table_name = #{tableName,jdbcType=VARCHAR},
- </if>
- <if test="primaryFieldValue != null" >
- primary_field_value = #{primaryFieldValue,jdbcType=INTEGER},
- </if>
- <if test="mainType != null" >
- main_type = #{mainType,jdbcType=VARCHAR},
- </if>
- <if test="subType != null" >
- sub_type = #{subType,jdbcType=VARCHAR},
- </if>
- <if test="isHandle != null" >
- is_handle = #{isHandle,jdbcType=INTEGER},
- </if>
- <if test="isDel != null" >
- is_del = #{isDel,jdbcType=INTEGER},
- </if>
- <if test="createTime != null" >
- create_time = #{createTime,jdbcType=TIMESTAMP},
- </if>
- <if test="updateTime != null" >
- update_time = #{updateTime,jdbcType=TIMESTAMP},
- </if>
- </set>
- where id = #{id,jdbcType=INTEGER}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.xinxin.topro.pubservice.mysqlModel.InpTemporaryData" >
- update inp_temporary_data
- set table_name = #{tableName,jdbcType=VARCHAR},
- primary_field_value = #{primaryFieldValue,jdbcType=INTEGER},
- main_type = #{mainType,jdbcType=VARCHAR},
- sub_type = #{subType,jdbcType=VARCHAR},
- is_handle = #{isHandle,jdbcType=INTEGER},
- is_del = #{isDel,jdbcType=INTEGER},
- create_time = #{createTime,jdbcType=TIMESTAMP},
- update_time = #{updateTime,jdbcType=TIMESTAMP}
- where id = #{id,jdbcType=INTEGER}
- </update>
- <insert id="batchInsert">
- INSERT INTO inp_temporary_data (table_name, primary_field_value,
- main_type, sub_type, is_handle,
- is_del, create_time, update_time
- )
- VALUES
- <foreach collection="dataList" item="item" separator=",">
- ( #{item.tableName,jdbcType=VARCHAR}, #{item.primaryFieldValue,jdbcType=INTEGER},
- #{item.mainType,jdbcType=VARCHAR}, #{item.subType,jdbcType=VARCHAR}, #{item.isHandle,jdbcType=INTEGER},
- #{item.isDel,jdbcType=INTEGER}, #{item.createTime,jdbcType=TIMESTAMP}, #{item.updateTime,jdbcType=TIMESTAMP}
- )
- </foreach>
- </insert>
- </mapper>
|