|
|
@@ -1,198 +1,198 @@
|
|
1
|
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
2
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
3
|
|
-<mapper namespace="com.chinaitop.depot.basic.mapper.BasicTankMapper">
|
|
4
|
|
- <resultMap id="BaseResultMap" type="com.chinaitop.depot.basic.model.BasicTank">
|
|
5
|
|
- <id column="id" jdbcType="INTEGER" property="id" />
|
|
6
|
|
- <result column="storageTank_code" jdbcType="VARCHAR" property="storagetankCode" />
|
|
7
|
|
- <result column="storageTank_name" jdbcType="VARCHAR" property="storagetankName" />
|
|
8
|
|
- <result column="org_code" jdbcType="VARCHAR" property="orgCode" />
|
|
9
|
|
- <result column="tank_capacity" jdbcType="DECIMAL" property="tankCapacity" />
|
|
10
|
|
- <result column="createDate" jdbcType="TIMESTAMP" property="createdate" />
|
|
11
|
|
- <result column="facilities_type" jdbcType="INTEGER" property="facilitiesType" />
|
|
12
|
|
- <result column="heating_type" jdbcType="INTEGER" property="heatingType" />
|
|
13
|
|
- <result column="tank_type" jdbcType="INTEGER" property="tankType" />
|
|
14
|
|
- <result column="diameter" jdbcType="DECIMAL" property="diameter" />
|
|
|
3
|
+<mapper namespace="com.chinaitop.depot.basic.mapper.BasicTankMapper">
|
|
|
4
|
+ <resultMap id="BaseResultMap" type="com.chinaitop.depot.basic.model.BasicTank">
|
|
|
5
|
+ <id column="id" jdbcType="INTEGER" property="id" />
|
|
|
6
|
+ <result column="storageTank_code" jdbcType="VARCHAR" property="storagetankCode" />
|
|
|
7
|
+ <result column="storageTank_name" jdbcType="VARCHAR" property="storagetankName" />
|
|
|
8
|
+ <result column="org_code" jdbcType="VARCHAR" property="orgCode" />
|
|
|
9
|
+ <result column="tank_capacity" jdbcType="DECIMAL" property="tankCapacity" />
|
|
|
10
|
+ <result column="createDate" jdbcType="TIMESTAMP" property="createdate" />
|
|
|
11
|
+ <result column="facilities_type" jdbcType="INTEGER" property="facilitiesType" />
|
|
|
12
|
+ <result column="heating_type" jdbcType="INTEGER" property="heatingType" />
|
|
|
13
|
+ <result column="tank_type" jdbcType="INTEGER" property="tankType" />
|
|
|
14
|
+ <result column="diameter" jdbcType="DECIMAL" property="diameter" />
|
|
15
|
15
|
<result column="height" jdbcType="DECIMAL" property="height" />
|
|
16
|
|
- <result column="buildDate" jdbcType="TIMESTAMP" property="builddate" />
|
|
17
|
|
- <result column="check_way" jdbcType="INTEGER" property="checkWay" />
|
|
18
|
|
- <result column="weld_way" jdbcType="INTEGER" property="weldWay" />
|
|
19
|
|
- <result column="tank_apply" jdbcType="INTEGER" property="tankApply" />
|
|
20
|
|
- <result column="tank_status" jdbcType="INTEGER" property="tankStatus" />
|
|
21
|
|
- <result column="org_id" jdbcType="INTEGER" property="orgId" />
|
|
22
|
|
- <result column="del_flag" jdbcType="INTEGER" property="delFlag" />
|
|
|
16
|
+ <result column="buildDate" jdbcType="TIMESTAMP" property="builddate" />
|
|
|
17
|
+ <result column="check_way" jdbcType="INTEGER" property="checkWay" />
|
|
|
18
|
+ <result column="weld_way" jdbcType="INTEGER" property="weldWay" />
|
|
|
19
|
+ <result column="tank_apply" jdbcType="INTEGER" property="tankApply" />
|
|
|
20
|
+ <result column="tank_status" jdbcType="INTEGER" property="tankStatus" />
|
|
|
21
|
+ <result column="org_id" jdbcType="INTEGER" property="orgId" />
|
|
|
22
|
+ <result column="del_flag" jdbcType="INTEGER" property="delFlag" />
|
|
23
|
23
|
<result column="updatetime" jdbcType="TIMESTAMP" property="updatetime" />
|
|
24
|
24
|
<result column="crk_status" jdbcType="VARCHAR" property="crkStatus" />
|
|
25
|
25
|
<result column="ygdm" property="crkStatus" jdbcType="VARCHAR" />
|
|
26
|
|
- <result column="ygajdm" property="crkStatus" jdbcType="VARCHAR" />
|
|
27
|
|
- </resultMap>
|
|
28
|
|
- <sql id="Example_Where_Clause">
|
|
29
|
|
- <where>
|
|
30
|
|
- <foreach collection="oredCriteria" item="criteria" separator="or">
|
|
31
|
|
- <if test="criteria.valid">
|
|
32
|
|
- <trim prefix="(" prefixOverrides="and" suffix=")">
|
|
33
|
|
- <foreach collection="criteria.criteria" item="criterion">
|
|
34
|
|
- <choose>
|
|
35
|
|
- <when test="criterion.noValue">
|
|
36
|
|
- and ${criterion.condition}
|
|
37
|
|
- </when>
|
|
38
|
|
- <when test="criterion.singleValue">
|
|
39
|
|
- and ${criterion.condition} #{criterion.value}
|
|
40
|
|
- </when>
|
|
41
|
|
- <when test="criterion.betweenValue">
|
|
42
|
|
- and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
|
43
|
|
- </when>
|
|
44
|
|
- <when test="criterion.listValue">
|
|
45
|
|
- and ${criterion.condition}
|
|
46
|
|
- <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
47
|
|
- #{listItem}
|
|
48
|
|
- </foreach>
|
|
49
|
|
- </when>
|
|
50
|
|
- </choose>
|
|
51
|
|
- </foreach>
|
|
52
|
|
- </trim>
|
|
53
|
|
- </if>
|
|
54
|
|
- </foreach>
|
|
55
|
|
- </where>
|
|
56
|
|
- </sql>
|
|
57
|
|
- <sql id="Update_By_Example_Where_Clause">
|
|
58
|
|
- <where>
|
|
59
|
|
- <foreach collection="example.oredCriteria" item="criteria" separator="or">
|
|
60
|
|
- <if test="criteria.valid">
|
|
61
|
|
- <trim prefix="(" prefixOverrides="and" suffix=")">
|
|
62
|
|
- <foreach collection="criteria.criteria" item="criterion">
|
|
63
|
|
- <choose>
|
|
64
|
|
- <when test="criterion.noValue">
|
|
65
|
|
- and ${criterion.condition}
|
|
66
|
|
- </when>
|
|
67
|
|
- <when test="criterion.singleValue">
|
|
68
|
|
- and ${criterion.condition} #{criterion.value}
|
|
69
|
|
- </when>
|
|
70
|
|
- <when test="criterion.betweenValue">
|
|
71
|
|
- and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
|
72
|
|
- </when>
|
|
73
|
|
- <when test="criterion.listValue">
|
|
74
|
|
- and ${criterion.condition}
|
|
75
|
|
- <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
76
|
|
- #{listItem}
|
|
77
|
|
- </foreach>
|
|
78
|
|
- </when>
|
|
79
|
|
- </choose>
|
|
80
|
|
- </foreach>
|
|
81
|
|
- </trim>
|
|
82
|
|
- </if>
|
|
83
|
|
- </foreach>
|
|
84
|
|
- </where>
|
|
85
|
|
- </sql>
|
|
86
|
|
- <sql id="Base_Column_List">
|
|
87
|
|
- id, storageTank_code, storageTank_name, org_code, tank_capacity, createDate, facilities_type,
|
|
88
|
|
- heating_type, tank_type, diameter, height, buildDate, check_way, weld_way, tank_apply, tank_status,
|
|
89
|
|
- org_id, del_flag, updatetime, crk_status, ygdm, ygajdm
|
|
90
|
|
- </sql>
|
|
91
|
|
- <select id="selectByExample" parameterType="com.chinaitop.depot.basic.model.BasicTankExample" resultMap="BaseResultMap">
|
|
92
|
|
- select
|
|
93
|
|
- <if test="distinct">
|
|
94
|
|
- distinct
|
|
95
|
|
- </if>
|
|
96
|
|
- <include refid="Base_Column_List" />
|
|
97
|
|
- from basic_tank
|
|
98
|
|
- <if test="_parameter != null">
|
|
99
|
|
- <include refid="Example_Where_Clause" />
|
|
100
|
|
- </if>
|
|
101
|
|
- <if test="orderByClause != null">
|
|
102
|
|
- order by ${orderByClause}
|
|
103
|
|
- </if>
|
|
104
|
|
- </select>
|
|
105
|
|
- <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
106
|
|
- select
|
|
107
|
|
- <include refid="Base_Column_List" />
|
|
108
|
|
- from basic_tank
|
|
109
|
|
- where id = #{id,jdbcType=INTEGER}
|
|
110
|
|
- </select>
|
|
111
|
|
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
|
112
|
|
- delete from basic_tank
|
|
113
|
|
- where id = #{id,jdbcType=INTEGER}
|
|
114
|
|
- </delete>
|
|
115
|
|
- <delete id="deleteByExample" parameterType="com.chinaitop.depot.basic.model.BasicTankExample">
|
|
116
|
|
- delete from basic_tank
|
|
117
|
|
- <if test="_parameter != null">
|
|
118
|
|
- <include refid="Example_Where_Clause" />
|
|
119
|
|
- </if>
|
|
120
|
|
- </delete>
|
|
121
|
|
- <insert id="insert" parameterType="com.chinaitop.depot.basic.model.BasicTank">
|
|
122
|
|
- insert into basic_tank (id, storageTank_code, storageTank_name,
|
|
123
|
|
- org_code, tank_capacity, createDate,
|
|
124
|
|
- facilities_type, heating_type, tank_type,
|
|
125
|
|
- diameter, height, buildDate, check_way,
|
|
126
|
|
- weld_way, tank_apply, tank_status,
|
|
127
|
|
- org_id, del_flag, updatetime, crk_status, ygdm, ygajdm
|
|
128
|
|
- )
|
|
129
|
|
- values (#{id,jdbcType=INTEGER}, #{storagetankCode,jdbcType=VARCHAR}, #{storagetankName,jdbcType=VARCHAR},
|
|
130
|
|
- #{orgCode,jdbcType=VARCHAR}, #{tankCapacity,jdbcType=DECIMAL}, #{createdate,jdbcType=TIMESTAMP},
|
|
131
|
|
- #{facilitiesType,jdbcType=INTEGER}, #{heatingType,jdbcType=INTEGER}, #{tankType,jdbcType=INTEGER},
|
|
132
|
|
- #{diameter,jdbcType=DECIMAL}, #{height,jdbcType=DECIMAL}, #{builddate,jdbcType=TIMESTAMP}, #{checkWay,jdbcType=INTEGER},
|
|
133
|
|
- #{weldWay,jdbcType=INTEGER}, #{tankApply,jdbcType=INTEGER}, #{tankStatus,jdbcType=INTEGER},
|
|
134
|
|
- #{orgId,jdbcType=INTEGER}, #{delFlag,jdbcType=INTEGER}, #{updatetime,jdbcType=TIMESTAMP}, #{crkStatus,jdbcType=VARCHAR},
|
|
135
|
|
- #{ygdm,jdbcType=VARCHAR},#{ygajdm,jdbcType=VARCHAR})
|
|
136
|
|
- </insert>
|
|
137
|
|
- <insert id="insertSelective" parameterType="com.chinaitop.depot.basic.model.BasicTank" keyProperty="id" useGeneratedKeys="true">
|
|
138
|
|
- insert into basic_tank
|
|
139
|
|
- <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
140
|
|
- <if test="id != null">
|
|
141
|
|
- id,
|
|
142
|
|
- </if>
|
|
143
|
|
- <if test="storagetankCode != null">
|
|
144
|
|
- storageTank_code,
|
|
145
|
|
- </if>
|
|
146
|
|
- <if test="storagetankName != null">
|
|
147
|
|
- storageTank_name,
|
|
148
|
|
- </if>
|
|
149
|
|
- <if test="orgCode != null">
|
|
150
|
|
- org_code,
|
|
151
|
|
- </if>
|
|
152
|
|
- <if test="tankCapacity != null">
|
|
153
|
|
- tank_capacity,
|
|
154
|
|
- </if>
|
|
155
|
|
- <if test="createdate != null">
|
|
156
|
|
- createDate,
|
|
157
|
|
- </if>
|
|
158
|
|
- <if test="facilitiesType != null">
|
|
159
|
|
- facilities_type,
|
|
160
|
|
- </if>
|
|
161
|
|
- <if test="heatingType != null">
|
|
162
|
|
- heating_type,
|
|
163
|
|
- </if>
|
|
164
|
|
- <if test="tankType != null">
|
|
165
|
|
- tank_type,
|
|
166
|
|
- </if>
|
|
167
|
|
- <if test="diameter != null">
|
|
168
|
|
- diameter,
|
|
169
|
|
- </if>
|
|
170
|
|
- <if test="height != null">
|
|
171
|
|
- height,
|
|
172
|
|
- </if>
|
|
173
|
|
- <if test="builddate != null">
|
|
174
|
|
- buildDate,
|
|
175
|
|
- </if>
|
|
176
|
|
- <if test="checkWay != null">
|
|
177
|
|
- check_way,
|
|
178
|
|
- </if>
|
|
179
|
|
- <if test="weldWay != null">
|
|
180
|
|
- weld_way,
|
|
181
|
|
- </if>
|
|
182
|
|
- <if test="tankApply != null">
|
|
183
|
|
- tank_apply,
|
|
184
|
|
- </if>
|
|
185
|
|
- <if test="tankStatus != null">
|
|
186
|
|
- tank_status,
|
|
187
|
|
- </if>
|
|
188
|
|
- <if test="orgId != null">
|
|
189
|
|
- org_id,
|
|
190
|
|
- </if>
|
|
191
|
|
- <if test="delFlag != null">
|
|
192
|
|
- del_flag,
|
|
193
|
|
- </if>
|
|
194
|
|
- <if test="updatetime != null">
|
|
195
|
|
- updatetime,
|
|
|
26
|
+ <result column="ygajdm" property="crkStatus" jdbcType="VARCHAR" />
|
|
|
27
|
+ </resultMap>
|
|
|
28
|
+ <sql id="Example_Where_Clause">
|
|
|
29
|
+ <where>
|
|
|
30
|
+ <foreach collection="oredCriteria" item="criteria" separator="or">
|
|
|
31
|
+ <if test="criteria.valid">
|
|
|
32
|
+ <trim prefix="(" prefixOverrides="and" suffix=")">
|
|
|
33
|
+ <foreach collection="criteria.criteria" item="criterion">
|
|
|
34
|
+ <choose>
|
|
|
35
|
+ <when test="criterion.noValue">
|
|
|
36
|
+ and ${criterion.condition}
|
|
|
37
|
+ </when>
|
|
|
38
|
+ <when test="criterion.singleValue">
|
|
|
39
|
+ and ${criterion.condition} #{criterion.value}
|
|
|
40
|
+ </when>
|
|
|
41
|
+ <when test="criterion.betweenValue">
|
|
|
42
|
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
|
|
43
|
+ </when>
|
|
|
44
|
+ <when test="criterion.listValue">
|
|
|
45
|
+ and ${criterion.condition}
|
|
|
46
|
+ <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
|
47
|
+ #{listItem}
|
|
|
48
|
+ </foreach>
|
|
|
49
|
+ </when>
|
|
|
50
|
+ </choose>
|
|
|
51
|
+ </foreach>
|
|
|
52
|
+ </trim>
|
|
|
53
|
+ </if>
|
|
|
54
|
+ </foreach>
|
|
|
55
|
+ </where>
|
|
|
56
|
+ </sql>
|
|
|
57
|
+ <sql id="Update_By_Example_Where_Clause">
|
|
|
58
|
+ <where>
|
|
|
59
|
+ <foreach collection="example.oredCriteria" item="criteria" separator="or">
|
|
|
60
|
+ <if test="criteria.valid">
|
|
|
61
|
+ <trim prefix="(" prefixOverrides="and" suffix=")">
|
|
|
62
|
+ <foreach collection="criteria.criteria" item="criterion">
|
|
|
63
|
+ <choose>
|
|
|
64
|
+ <when test="criterion.noValue">
|
|
|
65
|
+ and ${criterion.condition}
|
|
|
66
|
+ </when>
|
|
|
67
|
+ <when test="criterion.singleValue">
|
|
|
68
|
+ and ${criterion.condition} #{criterion.value}
|
|
|
69
|
+ </when>
|
|
|
70
|
+ <when test="criterion.betweenValue">
|
|
|
71
|
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
|
|
72
|
+ </when>
|
|
|
73
|
+ <when test="criterion.listValue">
|
|
|
74
|
+ and ${criterion.condition}
|
|
|
75
|
+ <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
|
76
|
+ #{listItem}
|
|
|
77
|
+ </foreach>
|
|
|
78
|
+ </when>
|
|
|
79
|
+ </choose>
|
|
|
80
|
+ </foreach>
|
|
|
81
|
+ </trim>
|
|
|
82
|
+ </if>
|
|
|
83
|
+ </foreach>
|
|
|
84
|
+ </where>
|
|
|
85
|
+ </sql>
|
|
|
86
|
+ <sql id="Base_Column_List">
|
|
|
87
|
+ id, storageTank_code, storageTank_name, org_code, tank_capacity, createDate, facilities_type,
|
|
|
88
|
+ heating_type, tank_type, diameter, height, buildDate, check_way, weld_way, tank_apply, tank_status,
|
|
|
89
|
+ org_id, del_flag, updatetime, crk_status, ygdm, ygajdm
|
|
|
90
|
+ </sql>
|
|
|
91
|
+ <select id="selectByExample" parameterType="com.chinaitop.depot.basic.model.BasicTankExample" resultMap="BaseResultMap">
|
|
|
92
|
+ select
|
|
|
93
|
+ <if test="distinct">
|
|
|
94
|
+ distinct
|
|
|
95
|
+ </if>
|
|
|
96
|
+ <include refid="Base_Column_List" />
|
|
|
97
|
+ from basic_tank
|
|
|
98
|
+ <if test="_parameter != null">
|
|
|
99
|
+ <include refid="Example_Where_Clause" />
|
|
|
100
|
+ </if>
|
|
|
101
|
+ <if test="orderByClause != null">
|
|
|
102
|
+ order by ${orderByClause}
|
|
|
103
|
+ </if>
|
|
|
104
|
+ </select>
|
|
|
105
|
+ <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
106
|
+ select
|
|
|
107
|
+ <include refid="Base_Column_List" />
|
|
|
108
|
+ from basic_tank
|
|
|
109
|
+ where id = #{id,jdbcType=INTEGER}
|
|
|
110
|
+ </select>
|
|
|
111
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
|
|
112
|
+ delete from basic_tank
|
|
|
113
|
+ where id = #{id,jdbcType=INTEGER}
|
|
|
114
|
+ </delete>
|
|
|
115
|
+ <delete id="deleteByExample" parameterType="com.chinaitop.depot.basic.model.BasicTankExample">
|
|
|
116
|
+ delete from basic_tank
|
|
|
117
|
+ <if test="_parameter != null">
|
|
|
118
|
+ <include refid="Example_Where_Clause" />
|
|
|
119
|
+ </if>
|
|
|
120
|
+ </delete>
|
|
|
121
|
+ <insert id="insert" parameterType="com.chinaitop.depot.basic.model.BasicTank">
|
|
|
122
|
+ insert into basic_tank (id, storageTank_code, storageTank_name,
|
|
|
123
|
+ org_code, tank_capacity, createDate,
|
|
|
124
|
+ facilities_type, heating_type, tank_type,
|
|
|
125
|
+ diameter, height, buildDate, check_way,
|
|
|
126
|
+ weld_way, tank_apply, tank_status,
|
|
|
127
|
+ org_id, del_flag, updatetime, crk_status, ygdm, ygajdm
|
|
|
128
|
+ )
|
|
|
129
|
+ values (#{id,jdbcType=INTEGER}, #{storagetankCode,jdbcType=VARCHAR}, #{storagetankName,jdbcType=VARCHAR},
|
|
|
130
|
+ #{orgCode,jdbcType=VARCHAR}, #{tankCapacity,jdbcType=DECIMAL}, #{createdate,jdbcType=TIMESTAMP},
|
|
|
131
|
+ #{facilitiesType,jdbcType=INTEGER}, #{heatingType,jdbcType=INTEGER}, #{tankType,jdbcType=INTEGER},
|
|
|
132
|
+ #{diameter,jdbcType=DECIMAL}, #{height,jdbcType=DECIMAL}, #{builddate,jdbcType=TIMESTAMP}, #{checkWay,jdbcType=INTEGER},
|
|
|
133
|
+ #{weldWay,jdbcType=INTEGER}, #{tankApply,jdbcType=INTEGER}, #{tankStatus,jdbcType=INTEGER},
|
|
|
134
|
+ #{orgId,jdbcType=INTEGER}, #{delFlag,jdbcType=INTEGER}, #{updatetime,jdbcType=TIMESTAMP}, #{crkStatus,jdbcType=VARCHAR},
|
|
|
135
|
+ #{ygdm,jdbcType=VARCHAR},#{ygajdm,jdbcType=VARCHAR})
|
|
|
136
|
+ </insert>
|
|
|
137
|
+ <insert id="insertSelective" parameterType="com.chinaitop.depot.basic.model.BasicTank" keyProperty="id" useGeneratedKeys="true">
|
|
|
138
|
+ insert into basic_tank
|
|
|
139
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
140
|
+ <if test="id != null">
|
|
|
141
|
+ id,
|
|
|
142
|
+ </if>
|
|
|
143
|
+ <if test="storagetankCode != null">
|
|
|
144
|
+ storageTank_code,
|
|
|
145
|
+ </if>
|
|
|
146
|
+ <if test="storagetankName != null">
|
|
|
147
|
+ storageTank_name,
|
|
|
148
|
+ </if>
|
|
|
149
|
+ <if test="orgCode != null">
|
|
|
150
|
+ org_code,
|
|
|
151
|
+ </if>
|
|
|
152
|
+ <if test="tankCapacity != null">
|
|
|
153
|
+ tank_capacity,
|
|
|
154
|
+ </if>
|
|
|
155
|
+ <if test="createdate != null">
|
|
|
156
|
+ createDate,
|
|
|
157
|
+ </if>
|
|
|
158
|
+ <if test="facilitiesType != null">
|
|
|
159
|
+ facilities_type,
|
|
|
160
|
+ </if>
|
|
|
161
|
+ <if test="heatingType != null">
|
|
|
162
|
+ heating_type,
|
|
|
163
|
+ </if>
|
|
|
164
|
+ <if test="tankType != null">
|
|
|
165
|
+ tank_type,
|
|
|
166
|
+ </if>
|
|
|
167
|
+ <if test="diameter != null">
|
|
|
168
|
+ diameter,
|
|
|
169
|
+ </if>
|
|
|
170
|
+ <if test="height != null">
|
|
|
171
|
+ height,
|
|
|
172
|
+ </if>
|
|
|
173
|
+ <if test="builddate != null">
|
|
|
174
|
+ buildDate,
|
|
|
175
|
+ </if>
|
|
|
176
|
+ <if test="checkWay != null">
|
|
|
177
|
+ check_way,
|
|
|
178
|
+ </if>
|
|
|
179
|
+ <if test="weldWay != null">
|
|
|
180
|
+ weld_way,
|
|
|
181
|
+ </if>
|
|
|
182
|
+ <if test="tankApply != null">
|
|
|
183
|
+ tank_apply,
|
|
|
184
|
+ </if>
|
|
|
185
|
+ <if test="tankStatus != null">
|
|
|
186
|
+ tank_status,
|
|
|
187
|
+ </if>
|
|
|
188
|
+ <if test="orgId != null">
|
|
|
189
|
+ org_id,
|
|
|
190
|
+ </if>
|
|
|
191
|
+ <if test="delFlag != null">
|
|
|
192
|
+ del_flag,
|
|
|
193
|
+ </if>
|
|
|
194
|
+ <if test="updatetime != null">
|
|
|
195
|
+ updatetime,
|
|
196
|
196
|
</if>
|
|
197
|
197
|
<if test="crkStatus != null">
|
|
198
|
198
|
crk_status,
|
|
|
@@ -202,65 +202,65 @@
|
|
202
|
202
|
</if>
|
|
203
|
203
|
<if test="ygajdm != null">
|
|
204
|
204
|
ygajdm,
|
|
205
|
|
- </if>
|
|
206
|
|
- </trim>
|
|
207
|
|
- <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
208
|
|
- <if test="id != null">
|
|
209
|
|
- #{id,jdbcType=INTEGER},
|
|
210
|
|
- </if>
|
|
211
|
|
- <if test="storagetankCode != null">
|
|
212
|
|
- #{storagetankCode,jdbcType=VARCHAR},
|
|
213
|
|
- </if>
|
|
214
|
|
- <if test="storagetankName != null">
|
|
215
|
|
- #{storagetankName,jdbcType=VARCHAR},
|
|
216
|
|
- </if>
|
|
217
|
|
- <if test="orgCode != null">
|
|
218
|
|
- #{orgCode,jdbcType=VARCHAR},
|
|
219
|
|
- </if>
|
|
220
|
|
- <if test="tankCapacity != null">
|
|
221
|
|
- #{tankCapacity,jdbcType=DECIMAL},
|
|
222
|
|
- </if>
|
|
223
|
|
- <if test="createdate != null">
|
|
224
|
|
- #{createdate,jdbcType=TIMESTAMP},
|
|
225
|
|
- </if>
|
|
226
|
|
- <if test="facilitiesType != null">
|
|
227
|
|
- #{facilitiesType,jdbcType=INTEGER},
|
|
228
|
|
- </if>
|
|
229
|
|
- <if test="heatingType != null">
|
|
230
|
|
- #{heatingType,jdbcType=INTEGER},
|
|
231
|
|
- </if>
|
|
232
|
|
- <if test="tankType != null">
|
|
233
|
|
- #{tankType,jdbcType=INTEGER},
|
|
234
|
|
- </if>
|
|
235
|
|
- <if test="diameter != null">
|
|
236
|
|
- #{diameter,jdbcType=DECIMAL},
|
|
237
|
|
- </if>
|
|
238
|
|
- <if test="height != null">
|
|
239
|
|
- #{height,jdbcType=DECIMAL},
|
|
|
205
|
+ </if>
|
|
|
206
|
+ </trim>
|
|
|
207
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
208
|
+ <if test="id != null">
|
|
|
209
|
+ #{id,jdbcType=INTEGER},
|
|
|
210
|
+ </if>
|
|
|
211
|
+ <if test="storagetankCode != null">
|
|
|
212
|
+ #{storagetankCode,jdbcType=VARCHAR},
|
|
|
213
|
+ </if>
|
|
|
214
|
+ <if test="storagetankName != null">
|
|
|
215
|
+ #{storagetankName,jdbcType=VARCHAR},
|
|
|
216
|
+ </if>
|
|
|
217
|
+ <if test="orgCode != null">
|
|
|
218
|
+ #{orgCode,jdbcType=VARCHAR},
|
|
|
219
|
+ </if>
|
|
|
220
|
+ <if test="tankCapacity != null">
|
|
|
221
|
+ #{tankCapacity,jdbcType=DECIMAL},
|
|
|
222
|
+ </if>
|
|
|
223
|
+ <if test="createdate != null">
|
|
|
224
|
+ #{createdate,jdbcType=TIMESTAMP},
|
|
|
225
|
+ </if>
|
|
|
226
|
+ <if test="facilitiesType != null">
|
|
|
227
|
+ #{facilitiesType,jdbcType=INTEGER},
|
|
|
228
|
+ </if>
|
|
|
229
|
+ <if test="heatingType != null">
|
|
|
230
|
+ #{heatingType,jdbcType=INTEGER},
|
|
|
231
|
+ </if>
|
|
|
232
|
+ <if test="tankType != null">
|
|
|
233
|
+ #{tankType,jdbcType=INTEGER},
|
|
|
234
|
+ </if>
|
|
|
235
|
+ <if test="diameter != null">
|
|
|
236
|
+ #{diameter,jdbcType=DECIMAL},
|
|
|
237
|
+ </if>
|
|
|
238
|
+ <if test="height != null">
|
|
|
239
|
+ #{height,jdbcType=DECIMAL},
|
|
240
|
240
|
</if>
|
|
241
|
241
|
<if test="builddate != null">
|
|
242
|
242
|
#{builddate,jdbcType=TIMESTAMP},
|
|
243
|
|
- </if>
|
|
244
|
|
- <if test="checkWay != null">
|
|
245
|
|
- #{checkWay,jdbcType=INTEGER},
|
|
246
|
|
- </if>
|
|
247
|
|
- <if test="weldWay != null">
|
|
248
|
|
- #{weldWay,jdbcType=INTEGER},
|
|
249
|
|
- </if>
|
|
250
|
|
- <if test="tankApply != null">
|
|
251
|
|
- #{tankApply,jdbcType=INTEGER},
|
|
252
|
|
- </if>
|
|
253
|
|
- <if test="tankStatus != null">
|
|
254
|
|
- #{tankStatus,jdbcType=INTEGER},
|
|
255
|
|
- </if>
|
|
256
|
|
- <if test="orgId != null">
|
|
257
|
|
- #{orgId,jdbcType=INTEGER},
|
|
258
|
|
- </if>
|
|
259
|
|
- <if test="delFlag != null">
|
|
260
|
|
- #{delFlag,jdbcType=INTEGER},
|
|
261
|
|
- </if>
|
|
262
|
|
- <if test="updatetime != null">
|
|
263
|
|
- #{updatetime,jdbcType=TIMESTAMP},
|
|
|
243
|
+ </if>
|
|
|
244
|
+ <if test="checkWay != null">
|
|
|
245
|
+ #{checkWay,jdbcType=INTEGER},
|
|
|
246
|
+ </if>
|
|
|
247
|
+ <if test="weldWay != null">
|
|
|
248
|
+ #{weldWay,jdbcType=INTEGER},
|
|
|
249
|
+ </if>
|
|
|
250
|
+ <if test="tankApply != null">
|
|
|
251
|
+ #{tankApply,jdbcType=INTEGER},
|
|
|
252
|
+ </if>
|
|
|
253
|
+ <if test="tankStatus != null">
|
|
|
254
|
+ #{tankStatus,jdbcType=INTEGER},
|
|
|
255
|
+ </if>
|
|
|
256
|
+ <if test="orgId != null">
|
|
|
257
|
+ #{orgId,jdbcType=INTEGER},
|
|
|
258
|
+ </if>
|
|
|
259
|
+ <if test="delFlag != null">
|
|
|
260
|
+ #{delFlag,jdbcType=INTEGER},
|
|
|
261
|
+ </if>
|
|
|
262
|
+ <if test="updatetime != null">
|
|
|
263
|
+ #{updatetime,jdbcType=TIMESTAMP},
|
|
264
|
264
|
</if>
|
|
265
|
265
|
<if test="crkStatus != null">
|
|
266
|
266
|
#{crkStatus,jdbcType=VARCHAR},
|
|
|
@@ -270,74 +270,74 @@
|
|
270
|
270
|
</if>
|
|
271
|
271
|
<if test="ygajdm != null">
|
|
272
|
272
|
#{ygajdm,jdbcType=VARCHAR},
|
|
273
|
|
- </if>
|
|
274
|
|
- </trim>
|
|
275
|
|
- </insert>
|
|
276
|
|
- <select id="countByExample" parameterType="com.chinaitop.depot.basic.model.BasicTankExample" resultType="java.lang.Integer">
|
|
277
|
|
- select count(*) from basic_tank
|
|
278
|
|
- <if test="_parameter != null">
|
|
279
|
|
- <include refid="Example_Where_Clause" />
|
|
280
|
|
- </if>
|
|
281
|
|
- </select>
|
|
282
|
|
- <update id="updateByExampleSelective" parameterType="map">
|
|
283
|
|
- update basic_tank
|
|
284
|
|
- <set>
|
|
285
|
|
- <if test="record.id != null">
|
|
286
|
|
- id = #{record.id,jdbcType=INTEGER},
|
|
287
|
|
- </if>
|
|
288
|
|
- <if test="record.storagetankCode != null">
|
|
289
|
|
- storageTank_code = #{record.storagetankCode,jdbcType=VARCHAR},
|
|
290
|
|
- </if>
|
|
291
|
|
- <if test="record.storagetankName != null">
|
|
292
|
|
- storageTank_name = #{record.storagetankName,jdbcType=VARCHAR},
|
|
293
|
|
- </if>
|
|
294
|
|
- <if test="record.orgCode != null">
|
|
295
|
|
- org_code = #{record.orgCode,jdbcType=VARCHAR},
|
|
296
|
|
- </if>
|
|
297
|
|
- <if test="record.tankCapacity != null">
|
|
298
|
|
- tank_capacity = #{record.tankCapacity,jdbcType=DECIMAL},
|
|
299
|
|
- </if>
|
|
300
|
|
- <if test="record.createdate != null">
|
|
301
|
|
- createDate = #{record.createdate,jdbcType=TIMESTAMP},
|
|
302
|
|
- </if>
|
|
303
|
|
- <if test="record.facilitiesType != null">
|
|
304
|
|
- facilities_type = #{record.facilitiesType,jdbcType=INTEGER},
|
|
305
|
|
- </if>
|
|
306
|
|
- <if test="record.heatingType != null">
|
|
307
|
|
- heating_type = #{record.heatingType,jdbcType=INTEGER},
|
|
308
|
|
- </if>
|
|
309
|
|
- <if test="record.tankType != null">
|
|
310
|
|
- tank_type = #{record.tankType,jdbcType=INTEGER},
|
|
311
|
|
- </if>
|
|
312
|
|
- <if test="record.diameter != null">
|
|
313
|
|
- diameter = #{record.diameter,jdbcType=DECIMAL},
|
|
314
|
|
- </if>
|
|
315
|
|
- <if test="record.height != null">
|
|
316
|
|
- height = #{record.height,jdbcType=DECIMAL},
|
|
|
273
|
+ </if>
|
|
|
274
|
+ </trim>
|
|
|
275
|
+ </insert>
|
|
|
276
|
+ <select id="countByExample" parameterType="com.chinaitop.depot.basic.model.BasicTankExample" resultType="java.lang.Integer">
|
|
|
277
|
+ select count(*) from basic_tank
|
|
|
278
|
+ <if test="_parameter != null">
|
|
|
279
|
+ <include refid="Example_Where_Clause" />
|
|
|
280
|
+ </if>
|
|
|
281
|
+ </select>
|
|
|
282
|
+ <update id="updateByExampleSelective" parameterType="map">
|
|
|
283
|
+ update basic_tank
|
|
|
284
|
+ <set>
|
|
|
285
|
+ <if test="record.id != null">
|
|
|
286
|
+ id = #{record.id,jdbcType=INTEGER},
|
|
|
287
|
+ </if>
|
|
|
288
|
+ <if test="record.storagetankCode != null">
|
|
|
289
|
+ storageTank_code = #{record.storagetankCode,jdbcType=VARCHAR},
|
|
|
290
|
+ </if>
|
|
|
291
|
+ <if test="record.storagetankName != null">
|
|
|
292
|
+ storageTank_name = #{record.storagetankName,jdbcType=VARCHAR},
|
|
|
293
|
+ </if>
|
|
|
294
|
+ <if test="record.orgCode != null">
|
|
|
295
|
+ org_code = #{record.orgCode,jdbcType=VARCHAR},
|
|
|
296
|
+ </if>
|
|
|
297
|
+ <if test="record.tankCapacity != null">
|
|
|
298
|
+ tank_capacity = #{record.tankCapacity,jdbcType=DECIMAL},
|
|
|
299
|
+ </if>
|
|
|
300
|
+ <if test="record.createdate != null">
|
|
|
301
|
+ createDate = #{record.createdate,jdbcType=TIMESTAMP},
|
|
|
302
|
+ </if>
|
|
|
303
|
+ <if test="record.facilitiesType != null">
|
|
|
304
|
+ facilities_type = #{record.facilitiesType,jdbcType=INTEGER},
|
|
|
305
|
+ </if>
|
|
|
306
|
+ <if test="record.heatingType != null">
|
|
|
307
|
+ heating_type = #{record.heatingType,jdbcType=INTEGER},
|
|
|
308
|
+ </if>
|
|
|
309
|
+ <if test="record.tankType != null">
|
|
|
310
|
+ tank_type = #{record.tankType,jdbcType=INTEGER},
|
|
|
311
|
+ </if>
|
|
|
312
|
+ <if test="record.diameter != null">
|
|
|
313
|
+ diameter = #{record.diameter,jdbcType=DECIMAL},
|
|
|
314
|
+ </if>
|
|
|
315
|
+ <if test="record.height != null">
|
|
|
316
|
+ height = #{record.height,jdbcType=DECIMAL},
|
|
317
|
317
|
</if>
|
|
318
|
318
|
<if test="record.builddate != null">
|
|
319
|
319
|
buildDate = #{record.builddate,jdbcType=TIMESTAMP},
|
|
320
|
|
- </if>
|
|
321
|
|
- <if test="record.checkWay != null">
|
|
322
|
|
- check_way = #{record.checkWay,jdbcType=INTEGER},
|
|
323
|
|
- </if>
|
|
324
|
|
- <if test="record.weldWay != null">
|
|
325
|
|
- weld_way = #{record.weldWay,jdbcType=INTEGER},
|
|
326
|
|
- </if>
|
|
327
|
|
- <if test="record.tankApply != null">
|
|
328
|
|
- tank_apply = #{record.tankApply,jdbcType=INTEGER},
|
|
329
|
|
- </if>
|
|
330
|
|
- <if test="record.tankStatus != null">
|
|
331
|
|
- tank_status = #{record.tankStatus,jdbcType=INTEGER},
|
|
332
|
|
- </if>
|
|
333
|
|
- <if test="record.orgId != null">
|
|
334
|
|
- org_id = #{record.orgId,jdbcType=INTEGER},
|
|
335
|
|
- </if>
|
|
336
|
|
- <if test="record.delFlag != null">
|
|
337
|
|
- del_flag = #{record.delFlag,jdbcType=INTEGER},
|
|
338
|
|
- </if>
|
|
339
|
|
- <if test="record.updatetime != null">
|
|
340
|
|
- updatetime = #{record.updatetime,jdbcType=TIMESTAMP},
|
|
|
320
|
+ </if>
|
|
|
321
|
+ <if test="record.checkWay != null">
|
|
|
322
|
+ check_way = #{record.checkWay,jdbcType=INTEGER},
|
|
|
323
|
+ </if>
|
|
|
324
|
+ <if test="record.weldWay != null">
|
|
|
325
|
+ weld_way = #{record.weldWay,jdbcType=INTEGER},
|
|
|
326
|
+ </if>
|
|
|
327
|
+ <if test="record.tankApply != null">
|
|
|
328
|
+ tank_apply = #{record.tankApply,jdbcType=INTEGER},
|
|
|
329
|
+ </if>
|
|
|
330
|
+ <if test="record.tankStatus != null">
|
|
|
331
|
+ tank_status = #{record.tankStatus,jdbcType=INTEGER},
|
|
|
332
|
+ </if>
|
|
|
333
|
+ <if test="record.orgId != null">
|
|
|
334
|
+ org_id = #{record.orgId,jdbcType=INTEGER},
|
|
|
335
|
+ </if>
|
|
|
336
|
+ <if test="record.delFlag != null">
|
|
|
337
|
+ del_flag = #{record.delFlag,jdbcType=INTEGER},
|
|
|
338
|
+ </if>
|
|
|
339
|
+ <if test="record.updatetime != null">
|
|
|
340
|
+ updatetime = #{record.updatetime,jdbcType=TIMESTAMP},
|
|
341
|
341
|
</if>
|
|
342
|
342
|
<if test="record.crkStatus != null">
|
|
343
|
343
|
crk_status = #{record.crkStatus,jdbcType=VARCHAR},
|
|
|
@@ -347,96 +347,96 @@
|
|
347
|
347
|
</if>
|
|
348
|
348
|
<if test="record.ygajdm != null">
|
|
349
|
349
|
ygajdm = #{record.ygajdm,jdbcType=VARCHAR},
|
|
350
|
|
- </if>
|
|
351
|
|
- </set>
|
|
352
|
|
- <if test="_parameter != null">
|
|
353
|
|
- <include refid="Update_By_Example_Where_Clause" />
|
|
354
|
|
- </if>
|
|
355
|
|
- </update>
|
|
356
|
|
- <update id="updateByExample" parameterType="map">
|
|
357
|
|
- update basic_tank
|
|
358
|
|
- set id = #{record.id,jdbcType=INTEGER},
|
|
359
|
|
- storageTank_code = #{record.storagetankCode,jdbcType=VARCHAR},
|
|
360
|
|
- storageTank_name = #{record.storagetankName,jdbcType=VARCHAR},
|
|
361
|
|
- org_code = #{record.orgCode,jdbcType=VARCHAR},
|
|
362
|
|
- tank_capacity = #{record.tankCapacity,jdbcType=DECIMAL},
|
|
363
|
|
- createDate = #{record.createdate,jdbcType=TIMESTAMP},
|
|
364
|
|
- facilities_type = #{record.facilitiesType,jdbcType=INTEGER},
|
|
365
|
|
- heating_type = #{record.heatingType,jdbcType=INTEGER},
|
|
366
|
|
- tank_type = #{record.tankType,jdbcType=INTEGER},
|
|
367
|
|
- diameter = #{record.diameter,jdbcType=DECIMAL},
|
|
368
|
|
- height = #{record.height,jdbcType=DECIMAL},
|
|
369
|
|
- buildDate = #{record.builddate,jdbcType=TIMESTAMP},
|
|
370
|
|
- check_way = #{record.checkWay,jdbcType=INTEGER},
|
|
371
|
|
- weld_way = #{record.weldWay,jdbcType=INTEGER},
|
|
372
|
|
- tank_apply = #{record.tankApply,jdbcType=INTEGER},
|
|
373
|
|
- tank_status = #{record.tankStatus,jdbcType=INTEGER},
|
|
374
|
|
- org_id = #{record.orgId,jdbcType=INTEGER},
|
|
375
|
|
- del_flag = #{record.delFlag,jdbcType=INTEGER},
|
|
|
350
|
+ </if>
|
|
|
351
|
+ </set>
|
|
|
352
|
+ <if test="_parameter != null">
|
|
|
353
|
+ <include refid="Update_By_Example_Where_Clause" />
|
|
|
354
|
+ </if>
|
|
|
355
|
+ </update>
|
|
|
356
|
+ <update id="updateByExample" parameterType="map">
|
|
|
357
|
+ update basic_tank
|
|
|
358
|
+ set id = #{record.id,jdbcType=INTEGER},
|
|
|
359
|
+ storageTank_code = #{record.storagetankCode,jdbcType=VARCHAR},
|
|
|
360
|
+ storageTank_name = #{record.storagetankName,jdbcType=VARCHAR},
|
|
|
361
|
+ org_code = #{record.orgCode,jdbcType=VARCHAR},
|
|
|
362
|
+ tank_capacity = #{record.tankCapacity,jdbcType=DECIMAL},
|
|
|
363
|
+ createDate = #{record.createdate,jdbcType=TIMESTAMP},
|
|
|
364
|
+ facilities_type = #{record.facilitiesType,jdbcType=INTEGER},
|
|
|
365
|
+ heating_type = #{record.heatingType,jdbcType=INTEGER},
|
|
|
366
|
+ tank_type = #{record.tankType,jdbcType=INTEGER},
|
|
|
367
|
+ diameter = #{record.diameter,jdbcType=DECIMAL},
|
|
|
368
|
+ height = #{record.height,jdbcType=DECIMAL},
|
|
|
369
|
+ buildDate = #{record.builddate,jdbcType=TIMESTAMP},
|
|
|
370
|
+ check_way = #{record.checkWay,jdbcType=INTEGER},
|
|
|
371
|
+ weld_way = #{record.weldWay,jdbcType=INTEGER},
|
|
|
372
|
+ tank_apply = #{record.tankApply,jdbcType=INTEGER},
|
|
|
373
|
+ tank_status = #{record.tankStatus,jdbcType=INTEGER},
|
|
|
374
|
+ org_id = #{record.orgId,jdbcType=INTEGER},
|
|
|
375
|
+ del_flag = #{record.delFlag,jdbcType=INTEGER},
|
|
376
|
376
|
updatetime = #{record.updatetime,jdbcType=TIMESTAMP},
|
|
377
|
377
|
crk_status = #{record.crkStatus,jdbcType=VARCHAR},
|
|
378
|
378
|
ygdm = #{record.ygdm,jdbcType=VARCHAR},
|
|
379
|
|
- ygajdm = #{record.ygajdm,jdbcType=VARCHAR}
|
|
380
|
|
- <if test="_parameter != null">
|
|
381
|
|
- <include refid="Update_By_Example_Where_Clause" />
|
|
382
|
|
- </if>
|
|
383
|
|
- </update>
|
|
384
|
|
- <update id="updateByPrimaryKeySelective" parameterType="com.chinaitop.depot.basic.model.BasicTank">
|
|
385
|
|
- update basic_tank
|
|
386
|
|
- <set>
|
|
387
|
|
- <if test="storagetankCode != null">
|
|
388
|
|
- storageTank_code = #{storagetankCode,jdbcType=VARCHAR},
|
|
389
|
|
- </if>
|
|
390
|
|
- <if test="storagetankName != null">
|
|
391
|
|
- storageTank_name = #{storagetankName,jdbcType=VARCHAR},
|
|
392
|
|
- </if>
|
|
393
|
|
- <if test="orgCode != null">
|
|
394
|
|
- org_code = #{orgCode,jdbcType=VARCHAR},
|
|
395
|
|
- </if>
|
|
396
|
|
- <if test="tankCapacity != null">
|
|
397
|
|
- tank_capacity = #{tankCapacity,jdbcType=DECIMAL},
|
|
398
|
|
- </if>
|
|
399
|
|
- <if test="createdate != null">
|
|
400
|
|
- createDate = #{createdate,jdbcType=TIMESTAMP},
|
|
401
|
|
- </if>
|
|
402
|
|
- <if test="facilitiesType != null">
|
|
403
|
|
- facilities_type = #{facilitiesType,jdbcType=INTEGER},
|
|
404
|
|
- </if>
|
|
405
|
|
- <if test="heatingType != null">
|
|
406
|
|
- heating_type = #{heatingType,jdbcType=INTEGER},
|
|
407
|
|
- </if>
|
|
408
|
|
- <if test="tankType != null">
|
|
409
|
|
- tank_type = #{tankType,jdbcType=INTEGER},
|
|
410
|
|
- </if>
|
|
411
|
|
- <if test="diameter != null">
|
|
412
|
|
- diameter = #{diameter,jdbcType=DECIMAL},
|
|
413
|
|
- </if>
|
|
414
|
|
- <if test="height != null">
|
|
415
|
|
- height = #{height,jdbcType=DECIMAL},
|
|
416
|
|
- </if>
|
|
417
|
|
- <if test="builddate != null">
|
|
418
|
|
- buildDate = #{builddate,jdbcType=TIMESTAMP},
|
|
419
|
|
- </if>
|
|
420
|
|
- <if test="checkWay != null">
|
|
421
|
|
- check_way = #{checkWay,jdbcType=INTEGER},
|
|
422
|
|
- </if>
|
|
423
|
|
- <if test="weldWay != null">
|
|
424
|
|
- weld_way = #{weldWay,jdbcType=INTEGER},
|
|
425
|
|
- </if>
|
|
426
|
|
- <if test="tankApply != null">
|
|
427
|
|
- tank_apply = #{tankApply,jdbcType=INTEGER},
|
|
428
|
|
- </if>
|
|
429
|
|
- <if test="tankStatus != null">
|
|
430
|
|
- tank_status = #{tankStatus,jdbcType=INTEGER},
|
|
431
|
|
- </if>
|
|
432
|
|
- <if test="orgId != null">
|
|
433
|
|
- org_id = #{orgId,jdbcType=INTEGER},
|
|
434
|
|
- </if>
|
|
435
|
|
- <if test="delFlag != null">
|
|
436
|
|
- del_flag = #{delFlag,jdbcType=INTEGER},
|
|
437
|
|
- </if>
|
|
438
|
|
- <if test="updatetime != null">
|
|
439
|
|
- updatetime = #{updatetime,jdbcType=TIMESTAMP},
|
|
|
379
|
+ ygajdm = #{record.ygajdm,jdbcType=VARCHAR}
|
|
|
380
|
+ <if test="_parameter != null">
|
|
|
381
|
+ <include refid="Update_By_Example_Where_Clause" />
|
|
|
382
|
+ </if>
|
|
|
383
|
+ </update>
|
|
|
384
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.chinaitop.depot.basic.model.BasicTank">
|
|
|
385
|
+ update basic_tank
|
|
|
386
|
+ <set>
|
|
|
387
|
+ <if test="storagetankCode != null">
|
|
|
388
|
+ storageTank_code = #{storagetankCode,jdbcType=VARCHAR},
|
|
|
389
|
+ </if>
|
|
|
390
|
+ <if test="storagetankName != null">
|
|
|
391
|
+ storageTank_name = #{storagetankName,jdbcType=VARCHAR},
|
|
|
392
|
+ </if>
|
|
|
393
|
+ <if test="orgCode != null">
|
|
|
394
|
+ org_code = #{orgCode,jdbcType=VARCHAR},
|
|
|
395
|
+ </if>
|
|
|
396
|
+ <if test="tankCapacity != null">
|
|
|
397
|
+ tank_capacity = #{tankCapacity,jdbcType=DECIMAL},
|
|
|
398
|
+ </if>
|
|
|
399
|
+ <if test="createdate != null">
|
|
|
400
|
+ createDate = #{createdate,jdbcType=TIMESTAMP},
|
|
|
401
|
+ </if>
|
|
|
402
|
+ <if test="facilitiesType != null">
|
|
|
403
|
+ facilities_type = #{facilitiesType,jdbcType=INTEGER},
|
|
|
404
|
+ </if>
|
|
|
405
|
+ <if test="heatingType != null">
|
|
|
406
|
+ heating_type = #{heatingType,jdbcType=INTEGER},
|
|
|
407
|
+ </if>
|
|
|
408
|
+ <if test="tankType != null">
|
|
|
409
|
+ tank_type = #{tankType,jdbcType=INTEGER},
|
|
|
410
|
+ </if>
|
|
|
411
|
+ <if test="diameter != null">
|
|
|
412
|
+ diameter = #{diameter,jdbcType=DECIMAL},
|
|
|
413
|
+ </if>
|
|
|
414
|
+ <if test="height != null">
|
|
|
415
|
+ height = #{height,jdbcType=DECIMAL},
|
|
|
416
|
+ </if>
|
|
|
417
|
+ <if test="builddate != null">
|
|
|
418
|
+ buildDate = #{builddate,jdbcType=TIMESTAMP},
|
|
|
419
|
+ </if>
|
|
|
420
|
+ <if test="checkWay != null">
|
|
|
421
|
+ check_way = #{checkWay,jdbcType=INTEGER},
|
|
|
422
|
+ </if>
|
|
|
423
|
+ <if test="weldWay != null">
|
|
|
424
|
+ weld_way = #{weldWay,jdbcType=INTEGER},
|
|
|
425
|
+ </if>
|
|
|
426
|
+ <if test="tankApply != null">
|
|
|
427
|
+ tank_apply = #{tankApply,jdbcType=INTEGER},
|
|
|
428
|
+ </if>
|
|
|
429
|
+ <if test="tankStatus != null">
|
|
|
430
|
+ tank_status = #{tankStatus,jdbcType=INTEGER},
|
|
|
431
|
+ </if>
|
|
|
432
|
+ <if test="orgId != null">
|
|
|
433
|
+ org_id = #{orgId,jdbcType=INTEGER},
|
|
|
434
|
+ </if>
|
|
|
435
|
+ <if test="delFlag != null">
|
|
|
436
|
+ del_flag = #{delFlag,jdbcType=INTEGER},
|
|
|
437
|
+ </if>
|
|
|
438
|
+ <if test="updatetime != null">
|
|
|
439
|
+ updatetime = #{updatetime,jdbcType=TIMESTAMP},
|
|
440
|
440
|
</if>
|
|
441
|
441
|
<if test="crkStatus != null">
|
|
442
|
442
|
crk_status = #{crkStatus,jdbcType=VARCHAR},
|
|
|
@@ -446,33 +446,33 @@
|
|
446
|
446
|
</if>
|
|
447
|
447
|
<if test="ygajdm != null">
|
|
448
|
448
|
ygajdm = #{ygajdm,jdbcType=VARCHAR},
|
|
449
|
|
- </if>
|
|
450
|
|
- </set>
|
|
451
|
|
- where id = #{id,jdbcType=INTEGER}
|
|
452
|
|
- </update>
|
|
453
|
|
- <update id="updateByPrimaryKey" parameterType="com.chinaitop.depot.basic.model.BasicTank">
|
|
454
|
|
- update basic_tank
|
|
455
|
|
- set storageTank_code = #{storagetankCode,jdbcType=VARCHAR},
|
|
456
|
|
- storageTank_name = #{storagetankName,jdbcType=VARCHAR},
|
|
457
|
|
- org_code = #{orgCode,jdbcType=VARCHAR},
|
|
458
|
|
- tank_capacity = #{tankCapacity,jdbcType=DECIMAL},
|
|
459
|
|
- createDate = #{createdate,jdbcType=TIMESTAMP},
|
|
460
|
|
- facilities_type = #{facilitiesType,jdbcType=INTEGER},
|
|
461
|
|
- heating_type = #{heatingType,jdbcType=INTEGER},
|
|
462
|
|
- tank_type = #{tankType,jdbcType=INTEGER},
|
|
463
|
|
- diameter = #{diameter,jdbcType=DECIMAL},
|
|
464
|
|
- height = #{height,jdbcType=DECIMAL},
|
|
465
|
|
- buildDate = #{builddate,jdbcType=TIMESTAMP},
|
|
466
|
|
- check_way = #{checkWay,jdbcType=INTEGER},
|
|
467
|
|
- weld_way = #{weldWay,jdbcType=INTEGER},
|
|
468
|
|
- tank_apply = #{tankApply,jdbcType=INTEGER},
|
|
469
|
|
- tank_status = #{tankStatus,jdbcType=INTEGER},
|
|
470
|
|
- org_id = #{orgId,jdbcType=INTEGER},
|
|
471
|
|
- del_flag = #{delFlag,jdbcType=INTEGER},
|
|
|
449
|
+ </if>
|
|
|
450
|
+ </set>
|
|
|
451
|
+ where id = #{id,jdbcType=INTEGER}
|
|
|
452
|
+ </update>
|
|
|
453
|
+ <update id="updateByPrimaryKey" parameterType="com.chinaitop.depot.basic.model.BasicTank">
|
|
|
454
|
+ update basic_tank
|
|
|
455
|
+ set storageTank_code = #{storagetankCode,jdbcType=VARCHAR},
|
|
|
456
|
+ storageTank_name = #{storagetankName,jdbcType=VARCHAR},
|
|
|
457
|
+ org_code = #{orgCode,jdbcType=VARCHAR},
|
|
|
458
|
+ tank_capacity = #{tankCapacity,jdbcType=DECIMAL},
|
|
|
459
|
+ createDate = #{createdate,jdbcType=TIMESTAMP},
|
|
|
460
|
+ facilities_type = #{facilitiesType,jdbcType=INTEGER},
|
|
|
461
|
+ heating_type = #{heatingType,jdbcType=INTEGER},
|
|
|
462
|
+ tank_type = #{tankType,jdbcType=INTEGER},
|
|
|
463
|
+ diameter = #{diameter,jdbcType=DECIMAL},
|
|
|
464
|
+ height = #{height,jdbcType=DECIMAL},
|
|
|
465
|
+ buildDate = #{builddate,jdbcType=TIMESTAMP},
|
|
|
466
|
+ check_way = #{checkWay,jdbcType=INTEGER},
|
|
|
467
|
+ weld_way = #{weldWay,jdbcType=INTEGER},
|
|
|
468
|
+ tank_apply = #{tankApply,jdbcType=INTEGER},
|
|
|
469
|
+ tank_status = #{tankStatus,jdbcType=INTEGER},
|
|
|
470
|
+ org_id = #{orgId,jdbcType=INTEGER},
|
|
|
471
|
+ del_flag = #{delFlag,jdbcType=INTEGER},
|
|
472
|
472
|
updatetime = #{updatetime,jdbcType=TIMESTAMP},
|
|
473
|
473
|
crk_status = #{crkStatus,jdbcType=VARCHAR},
|
|
474
|
474
|
ygdm = #{ygdm,jdbcType=VARCHAR},
|
|
475
|
|
- ygajdm = #{ygajdm,jdbcType=VARCHAR}
|
|
476
|
|
- where id = #{id,jdbcType=INTEGER}
|
|
477
|
|
- </update>
|
|
|
475
|
+ ygajdm = #{ygajdm,jdbcType=VARCHAR}
|
|
|
476
|
+ where id = #{id,jdbcType=INTEGER}
|
|
|
477
|
+ </update>
|
|
478
|
478
|
</mapper>
|