<?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.neusoft.smart.pos.trade.persistent.mapper.GrantOrderMasterMapper">
  <resultMap id="BaseResultMap" type="com.neusoft.smart.pos.trade.persistent.domain.GrantOrderMaster">
    <id column="id" jdbcType="INTEGER" property="id" />
    <result column="grant_order_number" jdbcType="VARCHAR" property="grantOrderNumber" />
    <result column="outer_order_number" jdbcType="VARCHAR" property="outerOrderNumber" />
    <result column="auth_no" jdbcType="VARCHAR" property="authNo" />
    <result column="org_id" jdbcType="INTEGER" property="orgId" />
    <result column="shop_id" jdbcType="INTEGER" property="shopId" />
    <result column="serial_no" jdbcType="VARCHAR" property="serialNo" />
    <result column="device_name" jdbcType="VARCHAR" property="deviceName" />
    <result column="customer_number" jdbcType="VARCHAR" property="customerNumber" />
    <result column="seq_no" jdbcType="INTEGER" property="seqNo" />
    <result column="grant_amount" jdbcType="DECIMAL" property="grantAmount" />
    <result column="pay_amount" jdbcType="DECIMAL" property="payAmount" />
    <result column="unfreeze_amount" jdbcType="DECIMAL" property="unfreezeAmount" />
    <result column="pay_type" jdbcType="VARCHAR" property="payType" />
    <result column="grant_status" jdbcType="CHAR" property="grantStatus" />
    <result column="code_url" jdbcType="VARCHAR" property="codeUrl" />
    <result column="scan_code" jdbcType="VARCHAR" property="scanCode" />
    <result column="time_expire" jdbcType="TIMESTAMP" property="timeExpire" />
    <result column="version" jdbcType="INTEGER" property="version" />
    <result column="refund_number" jdbcType="VARCHAR" property="refundNumber" />
    <result column="remark" jdbcType="VARCHAR" property="remark" />
    <result column="grant_time" jdbcType="TIMESTAMP" property="grantTime" />
    <result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
    <result column="created_by" jdbcType="VARCHAR" property="createdBy" />
    <result column="updated_by" jdbcType="VARCHAR" property="updatedBy" />
    <result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" />
  </resultMap>
  <sql id="Example_Where_Clause">
    <where>
      <foreach collection="oredCriteria" item="criteria" separator="or">
        <if test="criteria.valid">
          <trim prefix="(" prefixOverrides="and" suffix=")">
            <foreach collection="criteria.criteria" item="criterion">
              <choose>
                <when test="criterion.noValue">
                  and ${criterion.condition}
                </when>
                <when test="criterion.singleValue">
                  and ${criterion.condition} #{criterion.value}
                </when>
                <when test="criterion.betweenValue">
                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
                </when>
                <when test="criterion.listValue">
                  and ${criterion.condition}
                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
                    #{listItem}
                  </foreach>
                </when>
              </choose>
            </foreach>
          </trim>
        </if>
      </foreach>
    </where>
  </sql>
  <sql id="Update_By_Example_Where_Clause">
    <where>
      <foreach collection="example.oredCriteria" item="criteria" separator="or">
        <if test="criteria.valid">
          <trim prefix="(" prefixOverrides="and" suffix=")">
            <foreach collection="criteria.criteria" item="criterion">
              <choose>
                <when test="criterion.noValue">
                  and ${criterion.condition}
                </when>
                <when test="criterion.singleValue">
                  and ${criterion.condition} #{criterion.value}
                </when>
                <when test="criterion.betweenValue">
                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
                </when>
                <when test="criterion.listValue">
                  and ${criterion.condition}
                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
                    #{listItem}
                  </foreach>
                </when>
              </choose>
            </foreach>
          </trim>
        </if>
      </foreach>
    </where>
  </sql>
  <sql id="Base_Column_List">
    id, grant_order_number, outer_order_number, auth_no, org_id, shop_id, serial_no, 
    device_name, customer_number, seq_no, grant_amount, pay_amount, unfreeze_amount, 
    pay_type, grant_status, code_url, scan_code, time_expire, version, refund_number, 
    remark, grant_time, created_at, created_by, updated_by, updated_at
  </sql>
  <select id="selectByExample" parameterType="com.neusoft.smart.pos.trade.persistent.domain.GrantOrderMasterExample" resultMap="BaseResultMap">
    select
    <if test="distinct">
      distinct
    </if>
    <include refid="Base_Column_List" />
    from grant_order_master
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
    <if test="offset != null and limit != null">
      limit ${offset}, ${limit}
    </if>
  </select>
  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
    select 
    <include refid="Base_Column_List" />
    from grant_order_master
    where id = #{id,jdbcType=INTEGER}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
    delete from grant_order_master
    where id = #{id,jdbcType=INTEGER}
  </delete>
  <delete id="deleteByExample" parameterType="com.neusoft.smart.pos.trade.persistent.domain.GrantOrderMasterExample">
    delete from grant_order_master
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.neusoft.smart.pos.trade.persistent.domain.GrantOrderMaster" useGeneratedKeys="true">
    insert into grant_order_master (grant_order_number, outer_order_number, 
      auth_no, org_id, shop_id, 
      serial_no, device_name, customer_number, 
      seq_no, grant_amount, pay_amount, 
      unfreeze_amount, pay_type, grant_status, 
      code_url, scan_code, time_expire, 
      version, refund_number, remark, 
      grant_time, created_at, created_by, 
      updated_by, updated_at)
    values (#{grantOrderNumber,jdbcType=VARCHAR}, #{outerOrderNumber,jdbcType=VARCHAR}, 
      #{authNo,jdbcType=VARCHAR}, #{orgId,jdbcType=INTEGER}, #{shopId,jdbcType=INTEGER}, 
      #{serialNo,jdbcType=VARCHAR}, #{deviceName,jdbcType=VARCHAR}, #{customerNumber,jdbcType=VARCHAR}, 
      #{seqNo,jdbcType=INTEGER}, #{grantAmount,jdbcType=DECIMAL}, #{payAmount,jdbcType=DECIMAL}, 
      #{unfreezeAmount,jdbcType=DECIMAL}, #{payType,jdbcType=VARCHAR}, #{grantStatus,jdbcType=CHAR}, 
      #{codeUrl,jdbcType=VARCHAR}, #{scanCode,jdbcType=VARCHAR}, #{timeExpire,jdbcType=TIMESTAMP}, 
      #{version,jdbcType=INTEGER}, #{refundNumber,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, 
      #{grantTime,jdbcType=TIMESTAMP}, #{createdAt,jdbcType=TIMESTAMP}, #{createdBy,jdbcType=VARCHAR}, 
      #{updatedBy,jdbcType=VARCHAR}, #{updatedAt,jdbcType=TIMESTAMP})
  </insert>
  <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.neusoft.smart.pos.trade.persistent.domain.GrantOrderMaster" useGeneratedKeys="true">
    insert into grant_order_master
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="grantOrderNumber != null">
        grant_order_number,
      </if>
      <if test="outerOrderNumber != null">
        outer_order_number,
      </if>
      <if test="authNo != null">
        auth_no,
      </if>
      <if test="orgId != null">
        org_id,
      </if>
      <if test="shopId != null">
        shop_id,
      </if>
      <if test="serialNo != null">
        serial_no,
      </if>
      <if test="deviceName != null">
        device_name,
      </if>
      <if test="customerNumber != null">
        customer_number,
      </if>
      <if test="seqNo != null">
        seq_no,
      </if>
      <if test="grantAmount != null">
        grant_amount,
      </if>
      <if test="payAmount != null">
        pay_amount,
      </if>
      <if test="unfreezeAmount != null">
        unfreeze_amount,
      </if>
      <if test="payType != null">
        pay_type,
      </if>
      <if test="grantStatus != null">
        grant_status,
      </if>
      <if test="codeUrl != null">
        code_url,
      </if>
      <if test="scanCode != null">
        scan_code,
      </if>
      <if test="timeExpire != null">
        time_expire,
      </if>
      <if test="version != null">
        version,
      </if>
      <if test="refundNumber != null">
        refund_number,
      </if>
      <if test="remark != null">
        remark,
      </if>
      <if test="grantTime != null">
        grant_time,
      </if>
      <if test="createdAt != null">
        created_at,
      </if>
      <if test="createdBy != null">
        created_by,
      </if>
      <if test="updatedBy != null">
        updated_by,
      </if>
      <if test="updatedAt != null">
        updated_at,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="grantOrderNumber != null">
        #{grantOrderNumber,jdbcType=VARCHAR},
      </if>
      <if test="outerOrderNumber != null">
        #{outerOrderNumber,jdbcType=VARCHAR},
      </if>
      <if test="authNo != null">
        #{authNo,jdbcType=VARCHAR},
      </if>
      <if test="orgId != null">
        #{orgId,jdbcType=INTEGER},
      </if>
      <if test="shopId != null">
        #{shopId,jdbcType=INTEGER},
      </if>
      <if test="serialNo != null">
        #{serialNo,jdbcType=VARCHAR},
      </if>
      <if test="deviceName != null">
        #{deviceName,jdbcType=VARCHAR},
      </if>
      <if test="customerNumber != null">
        #{customerNumber,jdbcType=VARCHAR},
      </if>
      <if test="seqNo != null">
        #{seqNo,jdbcType=INTEGER},
      </if>
      <if test="grantAmount != null">
        #{grantAmount,jdbcType=DECIMAL},
      </if>
      <if test="payAmount != null">
        #{payAmount,jdbcType=DECIMAL},
      </if>
      <if test="unfreezeAmount != null">
        #{unfreezeAmount,jdbcType=DECIMAL},
      </if>
      <if test="payType != null">
        #{payType,jdbcType=VARCHAR},
      </if>
      <if test="grantStatus != null">
        #{grantStatus,jdbcType=CHAR},
      </if>
      <if test="codeUrl != null">
        #{codeUrl,jdbcType=VARCHAR},
      </if>
      <if test="scanCode != null">
        #{scanCode,jdbcType=VARCHAR},
      </if>
      <if test="timeExpire != null">
        #{timeExpire,jdbcType=TIMESTAMP},
      </if>
      <if test="version != null">
        #{version,jdbcType=INTEGER},
      </if>
      <if test="refundNumber != null">
        #{refundNumber,jdbcType=VARCHAR},
      </if>
      <if test="remark != null">
        #{remark,jdbcType=VARCHAR},
      </if>
      <if test="grantTime != null">
        #{grantTime,jdbcType=TIMESTAMP},
      </if>
      <if test="createdAt != null">
        #{createdAt,jdbcType=TIMESTAMP},
      </if>
      <if test="createdBy != null">
        #{createdBy,jdbcType=VARCHAR},
      </if>
      <if test="updatedBy != null">
        #{updatedBy,jdbcType=VARCHAR},
      </if>
      <if test="updatedAt != null">
        #{updatedAt,jdbcType=TIMESTAMP},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="com.neusoft.smart.pos.trade.persistent.domain.GrantOrderMasterExample" resultType="java.lang.Integer">
    select count(*) from grant_order_master
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </select>
  <update id="updateByExampleSelective" parameterType="map">
    update grant_order_master
    <set>
      <if test="record.id != null">
        id = #{record.id,jdbcType=INTEGER},
      </if>
      <if test="record.grantOrderNumber != null">
        grant_order_number = #{record.grantOrderNumber,jdbcType=VARCHAR},
      </if>
      <if test="record.outerOrderNumber != null">
        outer_order_number = #{record.outerOrderNumber,jdbcType=VARCHAR},
      </if>
      <if test="record.authNo != null">
        auth_no = #{record.authNo,jdbcType=VARCHAR},
      </if>
      <if test="record.orgId != null">
        org_id = #{record.orgId,jdbcType=INTEGER},
      </if>
      <if test="record.shopId != null">
        shop_id = #{record.shopId,jdbcType=INTEGER},
      </if>
      <if test="record.serialNo != null">
        serial_no = #{record.serialNo,jdbcType=VARCHAR},
      </if>
      <if test="record.deviceName != null">
        device_name = #{record.deviceName,jdbcType=VARCHAR},
      </if>
      <if test="record.customerNumber != null">
        customer_number = #{record.customerNumber,jdbcType=VARCHAR},
      </if>
      <if test="record.seqNo != null">
        seq_no = #{record.seqNo,jdbcType=INTEGER},
      </if>
      <if test="record.grantAmount != null">
        grant_amount = #{record.grantAmount,jdbcType=DECIMAL},
      </if>
      <if test="record.payAmount != null">
        pay_amount = #{record.payAmount,jdbcType=DECIMAL},
      </if>
      <if test="record.unfreezeAmount != null">
        unfreeze_amount = #{record.unfreezeAmount,jdbcType=DECIMAL},
      </if>
      <if test="record.payType != null">
        pay_type = #{record.payType,jdbcType=VARCHAR},
      </if>
      <if test="record.grantStatus != null">
        grant_status = #{record.grantStatus,jdbcType=CHAR},
      </if>
      <if test="record.codeUrl != null">
        code_url = #{record.codeUrl,jdbcType=VARCHAR},
      </if>
      <if test="record.scanCode != null">
        scan_code = #{record.scanCode,jdbcType=VARCHAR},
      </if>
      <if test="record.timeExpire != null">
        time_expire = #{record.timeExpire,jdbcType=TIMESTAMP},
      </if>
      <if test="record.version != null">
        version = #{record.version,jdbcType=INTEGER},
      </if>
      <if test="record.refundNumber != null">
        refund_number = #{record.refundNumber,jdbcType=VARCHAR},
      </if>
      <if test="record.remark != null">
        remark = #{record.remark,jdbcType=VARCHAR},
      </if>
      <if test="record.grantTime != null">
        grant_time = #{record.grantTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.createdAt != null">
        created_at = #{record.createdAt,jdbcType=TIMESTAMP},
      </if>
      <if test="record.createdBy != null">
        created_by = #{record.createdBy,jdbcType=VARCHAR},
      </if>
      <if test="record.updatedBy != null">
        updated_by = #{record.updatedBy,jdbcType=VARCHAR},
      </if>
      <if test="record.updatedAt != null">
        updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
      </if>
    </set>
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByExample" parameterType="map">
    update grant_order_master
    set id = #{record.id,jdbcType=INTEGER},
      grant_order_number = #{record.grantOrderNumber,jdbcType=VARCHAR},
      outer_order_number = #{record.outerOrderNumber,jdbcType=VARCHAR},
      auth_no = #{record.authNo,jdbcType=VARCHAR},
      org_id = #{record.orgId,jdbcType=INTEGER},
      shop_id = #{record.shopId,jdbcType=INTEGER},
      serial_no = #{record.serialNo,jdbcType=VARCHAR},
      device_name = #{record.deviceName,jdbcType=VARCHAR},
      customer_number = #{record.customerNumber,jdbcType=VARCHAR},
      seq_no = #{record.seqNo,jdbcType=INTEGER},
      grant_amount = #{record.grantAmount,jdbcType=DECIMAL},
      pay_amount = #{record.payAmount,jdbcType=DECIMAL},
      unfreeze_amount = #{record.unfreezeAmount,jdbcType=DECIMAL},
      pay_type = #{record.payType,jdbcType=VARCHAR},
      grant_status = #{record.grantStatus,jdbcType=CHAR},
      code_url = #{record.codeUrl,jdbcType=VARCHAR},
      scan_code = #{record.scanCode,jdbcType=VARCHAR},
      time_expire = #{record.timeExpire,jdbcType=TIMESTAMP},
      version = #{record.version,jdbcType=INTEGER},
      refund_number = #{record.refundNumber,jdbcType=VARCHAR},
      remark = #{record.remark,jdbcType=VARCHAR},
      grant_time = #{record.grantTime,jdbcType=TIMESTAMP},
      created_at = #{record.createdAt,jdbcType=TIMESTAMP},
      created_by = #{record.createdBy,jdbcType=VARCHAR},
      updated_by = #{record.updatedBy,jdbcType=VARCHAR},
      updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="com.neusoft.smart.pos.trade.persistent.domain.GrantOrderMaster">
    update grant_order_master
    <set>
      <if test="grantOrderNumber != null">
        grant_order_number = #{grantOrderNumber,jdbcType=VARCHAR},
      </if>
      <if test="outerOrderNumber != null">
        outer_order_number = #{outerOrderNumber,jdbcType=VARCHAR},
      </if>
      <if test="authNo != null">
        auth_no = #{authNo,jdbcType=VARCHAR},
      </if>
      <if test="orgId != null">
        org_id = #{orgId,jdbcType=INTEGER},
      </if>
      <if test="shopId != null">
        shop_id = #{shopId,jdbcType=INTEGER},
      </if>
      <if test="serialNo != null">
        serial_no = #{serialNo,jdbcType=VARCHAR},
      </if>
      <if test="deviceName != null">
        device_name = #{deviceName,jdbcType=VARCHAR},
      </if>
      <if test="customerNumber != null">
        customer_number = #{customerNumber,jdbcType=VARCHAR},
      </if>
      <if test="seqNo != null">
        seq_no = #{seqNo,jdbcType=INTEGER},
      </if>
      <if test="grantAmount != null">
        grant_amount = #{grantAmount,jdbcType=DECIMAL},
      </if>
      <if test="payAmount != null">
        pay_amount = #{payAmount,jdbcType=DECIMAL},
      </if>
      <if test="unfreezeAmount != null">
        unfreeze_amount = #{unfreezeAmount,jdbcType=DECIMAL},
      </if>
      <if test="payType != null">
        pay_type = #{payType,jdbcType=VARCHAR},
      </if>
      <if test="grantStatus != null">
        grant_status = #{grantStatus,jdbcType=CHAR},
      </if>
      <if test="codeUrl != null">
        code_url = #{codeUrl,jdbcType=VARCHAR},
      </if>
      <if test="scanCode != null">
        scan_code = #{scanCode,jdbcType=VARCHAR},
      </if>
      <if test="timeExpire != null">
        time_expire = #{timeExpire,jdbcType=TIMESTAMP},
      </if>
      <if test="version != null">
        version = #{version,jdbcType=INTEGER},
      </if>
      <if test="refundNumber != null">
        refund_number = #{refundNumber,jdbcType=VARCHAR},
      </if>
      <if test="remark != null">
        remark = #{remark,jdbcType=VARCHAR},
      </if>
      <if test="grantTime != null">
        grant_time = #{grantTime,jdbcType=TIMESTAMP},
      </if>
      <if test="createdAt != null">
        created_at = #{createdAt,jdbcType=TIMESTAMP},
      </if>
      <if test="createdBy != null">
        created_by = #{createdBy,jdbcType=VARCHAR},
      </if>
      <if test="updatedBy != null">
        updated_by = #{updatedBy,jdbcType=VARCHAR},
      </if>
      <if test="updatedAt != null">
        updated_at = #{updatedAt,jdbcType=TIMESTAMP},
      </if>
    </set>
    where id = #{id,jdbcType=INTEGER}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.neusoft.smart.pos.trade.persistent.domain.GrantOrderMaster">
    update grant_order_master
    set grant_order_number = #{grantOrderNumber,jdbcType=VARCHAR},
      outer_order_number = #{outerOrderNumber,jdbcType=VARCHAR},
      auth_no = #{authNo,jdbcType=VARCHAR},
      org_id = #{orgId,jdbcType=INTEGER},
      shop_id = #{shopId,jdbcType=INTEGER},
      serial_no = #{serialNo,jdbcType=VARCHAR},
      device_name = #{deviceName,jdbcType=VARCHAR},
      customer_number = #{customerNumber,jdbcType=VARCHAR},
      seq_no = #{seqNo,jdbcType=INTEGER},
      grant_amount = #{grantAmount,jdbcType=DECIMAL},
      pay_amount = #{payAmount,jdbcType=DECIMAL},
      unfreeze_amount = #{unfreezeAmount,jdbcType=DECIMAL},
      pay_type = #{payType,jdbcType=VARCHAR},
      grant_status = #{grantStatus,jdbcType=CHAR},
      code_url = #{codeUrl,jdbcType=VARCHAR},
      scan_code = #{scanCode,jdbcType=VARCHAR},
      time_expire = #{timeExpire,jdbcType=TIMESTAMP},
      version = #{version,jdbcType=INTEGER},
      refund_number = #{refundNumber,jdbcType=VARCHAR},
      remark = #{remark,jdbcType=VARCHAR},
      grant_time = #{grantTime,jdbcType=TIMESTAMP},
      created_at = #{createdAt,jdbcType=TIMESTAMP},
      created_by = #{createdBy,jdbcType=VARCHAR},
      updated_by = #{updatedBy,jdbcType=VARCHAR},
      updated_at = #{updatedAt,jdbcType=TIMESTAMP}
    where id = #{id,jdbcType=INTEGER}
  </update>
  <insert id="batchInsert">
    <if test="items.get(0) != null">
            insert into grant_order_master  (grant_order_number, outer_order_number, 
        auth_no, org_id, shop_id, 
        serial_no, device_name, customer_number, 
        seq_no, grant_amount, pay_amount, 
        unfreeze_amount, pay_type, grant_status, 
        code_url, scan_code, time_expire, 
        version, refund_number, remark, 
        grant_time, created_at, created_by, 
        updated_by, updated_at)
      values
      <foreach collection="items" item="item" index="index" separator=",">
      (#{item.grantOrderNumber,jdbcType=VARCHAR}, #{item.outerOrderNumber,jdbcType=VARCHAR}, 
        #{item.authNo,jdbcType=VARCHAR}, #{item.orgId,jdbcType=INTEGER}, #{item.shopId,jdbcType=INTEGER}, 
        #{item.serialNo,jdbcType=VARCHAR}, #{item.deviceName,jdbcType=VARCHAR}, #{item.customerNumber,jdbcType=VARCHAR}, 
        #{item.seqNo,jdbcType=INTEGER}, #{item.grantAmount,jdbcType=DECIMAL}, #{item.payAmount,jdbcType=DECIMAL}, 
        #{item.unfreezeAmount,jdbcType=DECIMAL}, #{item.payType,jdbcType=VARCHAR}, #{item.grantStatus,jdbcType=CHAR}, 
        #{item.codeUrl,jdbcType=VARCHAR}, #{item.scanCode,jdbcType=VARCHAR}, #{item.timeExpire,jdbcType=TIMESTAMP}, 
        #{item.version,jdbcType=INTEGER}, #{item.refundNumber,jdbcType=VARCHAR}, #{item.remark,jdbcType=VARCHAR}, 
        #{item.grantTime,jdbcType=TIMESTAMP}, #{item.createdAt,jdbcType=TIMESTAMP}, #{item.createdBy,jdbcType=VARCHAR}, 
        #{item.updatedBy,jdbcType=VARCHAR}, #{item.updatedAt,jdbcType=TIMESTAMP})
      </foreach>
    </if>
  </insert>
</mapper>