Blame view

parking-module-pay/src/main/resources/mybatis/smapper/ChargerTicketConfigSMapper.xml 3.1 KB
55f68655   王彪总   新项目
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
  <?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.zteits.pay.mapper.smapper.ChargerTicketConfigSMapper">
    <resultMap id="BaseResultMap" type="com.zteits.pay.domain.ChargerTicketConfig">
      <id column="id" jdbcType="BIGINT" property="id" />
      <result column="ticket_no" jdbcType="VARCHAR" property="ticketNo" />
      <result column="ticket_type" jdbcType="INTEGER" property="ticketType" />
      <result column="ticket_category" jdbcType="INTEGER" property="ticketCategory" />
      <result column="widget_no" jdbcType="VARCHAR" property="widgetNo" />
      <result column="widget_type" jdbcType="VARCHAR" property="widgetType" />
      <result column="widget_name" jdbcType="VARCHAR" property="widgetName" />
      <result column="widget_text" jdbcType="VARCHAR" property="widgetText" />
      <result column="widget_value" jdbcType="VARCHAR" property="widgetValue" />
      <result column="enter_flag" jdbcType="INTEGER" property="enterFlag" />
      <result column="position_type" jdbcType="INTEGER" property="positionType" />
      <result column="order_num" jdbcType="INTEGER" property="orderNum" />
      <result column="org_id" jdbcType="BIGINT" property="orgId" />
      <result column="data_state" jdbcType="INTEGER" property="dataState" />
      <result column="remark" jdbcType="VARCHAR" property="remark" />
      <result column="create_emp_id" jdbcType="VARCHAR" property="createEmpId" />
      <result column="create_emp_name" jdbcType="VARCHAR" property="createEmpName" />
      <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
      <result column="modify_emp_id" jdbcType="VARCHAR" property="modifyEmpId" />
      <result column="modify_emp_name" jdbcType="VARCHAR" property="modifyEmpName" />
      <result column="modify_time" jdbcType="TIMESTAMP" property="modifyTime" />
    </resultMap>
  
    <insert id="bathInsertSelective" parameterType="java.util.List">
  
      insert into charger_ticket_config (ticket_no, ticket_type, ticket_category, 
        widget_no, widget_type, widget_name, 
        widget_text, widget_value, enter_flag, 
        position_type, order_num, org_id,
        data_state, remark, create_emp_id, 
        create_emp_name, create_time, modify_emp_id, 
        modify_emp_name, modify_time)
      values
      <foreach collection="list" index="index" item="item" separator=",">
      (#{item.ticketNo,jdbcType=VARCHAR}, #{item.ticketType,jdbcType=INTEGER}, #{item.ticketCategory,jdbcType=INTEGER},
        #{item.widgetNo,jdbcType=VARCHAR}, #{item.widgetType,jdbcType=VARCHAR}, #{item.widgetName,jdbcType=VARCHAR},
        #{item.widgetText,jdbcType=VARCHAR}, #{item.widgetValue,jdbcType=VARCHAR}, #{item.enterFlag,jdbcType=INTEGER},
        #{item.positionType,jdbcType=INTEGER}, #{item.orderNum,jdbcType=INTEGER}, #{item.orgId,jdbcType=BIGINT},
        1, #{item.remark,jdbcType=VARCHAR}, #{item.createEmpId,jdbcType=VARCHAR},
        #{item.createEmpName,jdbcType=VARCHAR}, SYSDATE(), #{item.modifyEmpId,jdbcType=VARCHAR},
        #{item.modifyEmpName,jdbcType=VARCHAR}, #{item.modifyTime,jdbcType=TIMESTAMP})
      </foreach>
    </insert>
  
  </mapper>