SystemInfoDeleteMapper.xml 4.5 KB
Newer Older
苗卫卫 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120
<?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.boco.nbd.wios.manage.mapper.def.SystemInfoDeleteMapper" >
  <resultMap id="BaseResultMap" type="com.boco.nbd.wios.manage.entity.bo.SystemInfoDelete" >
    <id column="id" property="id" jdbcType="INTEGER" />
    <result column="title" property="title" jdbcType="VARCHAR" />
    <result column="content" property="content" jdbcType="VARCHAR" />
    <result column="third_party_id" property="thirdPartyId" jdbcType="VARCHAR" />
    <result column="status" property="status" jdbcType="BIT" />
    <result column="type" property="type" jdbcType="BIT" />
    <result column="account_id" property="accountId" jdbcType="INTEGER" />
    <result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
    <result column="update_time" property="updateTime" jdbcType="TIMESTAMP" />
    <result column="order_status" property="orderStatus" jdbcType="INTEGER" />
    <result column="overtime_flag" property="overtimeFlag" jdbcType="INTEGER" />
  </resultMap>

  <sql id="Base_Column_List" >
    id, title, content, third_party_id, status, type, account_id, create_time, update_time, 
    order_status, overtime_flag
  </sql>

  <insert id="insert" parameterType="com.boco.nbd.wios.manage.entity.bo.SystemInfoDelete" >
    insert into t_system_info_delete (id, title, content, 
      third_party_id, status, type, 
      account_id, create_time, update_time, 
      order_status, overtime_flag)
    values (#{id,jdbcType=INTEGER}, #{title,jdbcType=VARCHAR}, #{content,jdbcType=VARCHAR}, 
      #{thirdPartyId,jdbcType=VARCHAR}, #{status,jdbcType=BIT}, #{type,jdbcType=BIT}, 
      #{accountId,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, 
      #{orderStatus,jdbcType=INTEGER}, #{overtimeFlag,jdbcType=INTEGER})
  </insert>
  <insert id="insertSelective" parameterType="com.boco.nbd.wios.manage.entity.bo.SystemInfoDelete" >
    insert into t_system_info_delete
    <trim prefix="(" suffix=")" suffixOverrides="," >
      <if test="id != null" >
        id,
      </if>
      <if test="title != null" >
        title,
      </if>
      <if test="content != null" >
        content,
      </if>
      <if test="thirdPartyId != null" >
        third_party_id,
      </if>
      <if test="status != null" >
        status,
      </if>
      <if test="type != null" >
        type,
      </if>
      <if test="accountId != null" >
        account_id,
      </if>
      <if test="createTime != null" >
        create_time,
      </if>
      <if test="updateTime != null" >
        update_time,
      </if>
      <if test="orderStatus != null" >
        order_status,
      </if>
      <if test="overtimeFlag != null" >
        overtime_flag,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides="," >
      <if test="id != null" >
        #{id,jdbcType=INTEGER},
      </if>
      <if test="title != null" >
        #{title,jdbcType=VARCHAR},
      </if>
      <if test="content != null" >
        #{content,jdbcType=VARCHAR},
      </if>
      <if test="thirdPartyId != null" >
        #{thirdPartyId,jdbcType=VARCHAR},
      </if>
      <if test="status != null" >
        #{status,jdbcType=BIT},
      </if>
      <if test="type != null" >
        #{type,jdbcType=BIT},
      </if>
      <if test="accountId != null" >
        #{accountId,jdbcType=INTEGER},
      </if>
      <if test="createTime != null" >
        #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateTime != null" >
        #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="orderStatus != null" >
        #{orderStatus,jdbcType=INTEGER},
      </if>
      <if test="overtimeFlag != null" >
        #{overtimeFlag,jdbcType=INTEGER},
      </if>
    </trim>
  </insert>

  <insert id="batchInsert" parameterType="java.util.List">
    insert into t_system_info_delete ( title, content,
    third_party_id, status, type,
    account_id, create_time, update_time,
    order_status, overtime_flag)
    values
    <foreach collection="list" item="item" separator=",">
    ( #{item.title,jdbcType=VARCHAR}, #{item.content,jdbcType=VARCHAR},
    #{item.thirdPartyId,jdbcType=VARCHAR}, #{item.status,jdbcType=INTEGER}, #{item.type,jdbcType=INTEGER},
    #{item.accountId,jdbcType=INTEGER}, #{item.createTime,jdbcType=TIMESTAMP}, #{item.updateTime,jdbcType=TIMESTAMP},
    #{item.orderStatus,jdbcType=INTEGER}, #{item.overtimeFlag,jdbcType=INTEGER})
    </foreach>
  </insert>
</mapper>