Blame view

parking-module-pay/src/main/resources/mybatis/mapper/TdBTempParklotMapper.xml 2.57 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
  <?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.TdBTempParklotMapper" >
    <resultMap id="BaseResultMap" type="com.zteits.pay.domain.TdBTempParklot" >
      <result column="pl_no" property="plNo" jdbcType="VARCHAR" />
      <result column="pl_name" property="plName" jdbcType="VARCHAR" />
      <result column="block_no" property="blockNo" jdbcType="BIGINT" />
      <result column="block_name" property="blockName" jdbcType="VARCHAR" />
      <result column="berth_range_no" property="berthRangeNo" jdbcType="VARCHAR" />
      <result column="berth_range_name" property="berthRangeName" jdbcType="VARCHAR" />
      <result column="berths" property="berths" jdbcType="INTEGER" />
    </resultMap>
    <insert id="insert" parameterType="com.zteits.pay.domain.TdBTempParklot" >
      insert into td_b_temp_parkLot (pl_no, pl_name, block_no, 
        block_name, berth_range_no, berth_range_name, 
        berths)
      values (#{plNo,jdbcType=VARCHAR}, #{plName,jdbcType=VARCHAR}, #{blockNo,jdbcType=BIGINT}, 
        #{blockName,jdbcType=VARCHAR}, #{berthRangeNo,jdbcType=VARCHAR}, #{berthRangeName,jdbcType=VARCHAR}, 
        #{berths,jdbcType=INTEGER})
    </insert>
    <insert id="insertSelective" parameterType="com.zteits.pay.domain.TdBTempParklot" >
      insert into td_b_temp_parkLot
      <trim prefix="(" suffix=")" suffixOverrides="," >
        <if test="plNo != null" >
          pl_no,
        </if>
        <if test="plName != null" >
          pl_name,
        </if>
        <if test="blockNo != null" >
          block_no,
        </if>
        <if test="blockName != null" >
          block_name,
        </if>
        <if test="berthRangeNo != null" >
          berth_range_no,
        </if>
        <if test="berthRangeName != null" >
          berth_range_name,
        </if>
        <if test="berths != null" >
          berths,
        </if>
      </trim>
      <trim prefix="values (" suffix=")" suffixOverrides="," >
        <if test="plNo != null" >
          #{plNo,jdbcType=VARCHAR},
        </if>
        <if test="plName != null" >
          #{plName,jdbcType=VARCHAR},
        </if>
        <if test="blockNo != null" >
          #{blockNo,jdbcType=BIGINT},
        </if>
        <if test="blockName != null" >
          #{blockName,jdbcType=VARCHAR},
        </if>
        <if test="berthRangeNo != null" >
          #{berthRangeNo,jdbcType=VARCHAR},
        </if>
        <if test="berthRangeName != null" >
          #{berthRangeName,jdbcType=VARCHAR},
        </if>
        <if test="berths != null" >
          #{berths,jdbcType=INTEGER},
        </if>
      </trim>
    </insert>
  </mapper>