|
@@ -5,27 +5,33 @@
|
5
|
5
|
<id column="id" property="id" jdbcType="INTEGER" />
|
6
|
6
|
<result column="community_id" property="communityId" jdbcType="INTEGER" />
|
7
|
7
|
<result column="id_card" property="idCard" jdbcType="VARCHAR" />
|
8
|
|
- <result column="phase" property="phase" jdbcType="VARCHAR" />
|
9
|
|
- <result column="building" property="building" jdbcType="VARCHAR" />
|
10
|
|
- <result column="unit" property="unit" jdbcType="VARCHAR" />
|
11
|
|
- <result column="level" property="level" jdbcType="VARCHAR" />
|
12
|
|
- <result column="room_no" property="roomNo" jdbcType="VARCHAR" />
|
|
8
|
+ <result column="phase_id" property="phaseId" jdbcType="INTEGER" />
|
|
9
|
+ <result column="phase_name" property="phaseName" jdbcType="VARCHAR" />
|
|
10
|
+ <result column="building_id" property="buildingId" jdbcType="INTEGER" />
|
|
11
|
+ <result column="building_name" property="buildingName" jdbcType="VARCHAR" />
|
|
12
|
+ <result column="unit_id" property="unitId" jdbcType="INTEGER" />
|
|
13
|
+ <result column="unit_name" property="unitName" jdbcType="VARCHAR" />
|
|
14
|
+ <result column="level_id" property="levelId" jdbcType="INTEGER" />
|
|
15
|
+ <result column="level_name" property="levelName" jdbcType="VARCHAR" />
|
|
16
|
+ <result column="name" property="name" jdbcType="VARCHAR" />
|
13
|
17
|
<result column="owner_name" property="ownerName" jdbcType="VARCHAR" />
|
14
|
18
|
<result column="owner_tel" property="ownerTel" jdbcType="VARCHAR" />
|
15
|
19
|
<result column="gender" property="gender" jdbcType="CHAR" />
|
16
|
20
|
<result column="pair_status" property="pairStatus" jdbcType="CHAR" />
|
17
|
21
|
<result column="verify_status" property="verifyStatus" jdbcType="CHAR" />
|
|
22
|
+ <result column="sort" property="sort" jdbcType="VARCHAR" />
|
18
|
23
|
<result column="create_user" property="createUser" jdbcType="INTEGER" />
|
19
|
24
|
<result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
|
20
|
25
|
<result column="update_user" property="updateUser" jdbcType="INTEGER" />
|
21
|
26
|
<result column="update_date" property="updateDate" jdbcType="TIMESTAMP" />
|
22
|
27
|
</resultMap>
|
23
|
28
|
<sql id="Base_Column_List" >
|
24
|
|
- id, community_id, id_card, phase, building, unit, level, room_no, owner_name, owner_tel,
|
25
|
|
- gender, pair_status, verify_status, create_user, create_date, update_user, update_date
|
|
29
|
+ id, community_id, id_card, phase_id, phase_name, building_id, building_name, unit_id,
|
|
30
|
+ unit_name, level_id, level_name, name, owner_name, owner_tel, gender, pair_status,
|
|
31
|
+ verify_status, sort, create_user, create_date, update_user, update_date
|
26
|
32
|
</sql>
|
27
|
33
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
28
|
|
- select
|
|
34
|
+ select
|
29
|
35
|
<include refid="Base_Column_List" />
|
30
|
36
|
from tp_building_owner_info
|
31
|
37
|
where id = #{id,jdbcType=INTEGER}
|
|
@@ -35,17 +41,21 @@
|
35
|
41
|
where id = #{id,jdbcType=INTEGER}
|
36
|
42
|
</delete>
|
37
|
43
|
<insert id="insert" parameterType="com.community.huiju.model.TpBuildingOwnerInfo" >
|
38
|
|
- insert into tp_building_owner_info (id, community_id, id_card, phase,
|
39
|
|
- building, unit, level,
|
40
|
|
- room_no, owner_name, owner_tel,
|
41
|
|
- gender, pair_status, verify_status,
|
42
|
|
- create_user, create_date, update_user,
|
|
44
|
+ insert into tp_building_owner_info (id, community_id, id_card,
|
|
45
|
+ phase_id, phase_name, building_id,
|
|
46
|
+ building_name, unit_id, unit_name,
|
|
47
|
+ level_id, level_name, name,
|
|
48
|
+ owner_name, owner_tel, gender,
|
|
49
|
+ pair_status, verify_status, sort,
|
|
50
|
+ create_user, create_date, update_user,
|
43
|
51
|
update_date)
|
44
|
|
- values (#{id,jdbcType=INTEGER}, #{communityId,jdbcType=INTEGER}, #{idCard,jdbcType=VARCHAR},
|
45
|
|
- #{phase,jdbcType=VARCHAR}, #{building,jdbcType=VARCHAR}, #{unit,jdbcType=VARCHAR}, #{level,jdbcType=VARCHAR},
|
46
|
|
- #{roomNo,jdbcType=VARCHAR}, #{ownerName,jdbcType=VARCHAR}, #{ownerTel,jdbcType=VARCHAR},
|
47
|
|
- #{gender,jdbcType=CHAR}, #{pairStatus,jdbcType=CHAR}, #{verifyStatus,jdbcType=CHAR},
|
48
|
|
- #{createUser,jdbcType=INTEGER}, #{createDate,jdbcType=TIMESTAMP}, #{updateUser,jdbcType=INTEGER},
|
|
52
|
+ values (#{id,jdbcType=INTEGER}, #{communityId,jdbcType=INTEGER}, #{idCard,jdbcType=VARCHAR},
|
|
53
|
+ #{phaseId,jdbcType=INTEGER}, #{phaseName,jdbcType=VARCHAR}, #{buildingId,jdbcType=INTEGER},
|
|
54
|
+ #{buildingName,jdbcType=VARCHAR}, #{unitId,jdbcType=INTEGER}, #{unitName,jdbcType=VARCHAR},
|
|
55
|
+ #{levelId,jdbcType=INTEGER}, #{levelName,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
|
|
56
|
+ #{ownerName,jdbcType=VARCHAR}, #{ownerTel,jdbcType=VARCHAR}, #{gender,jdbcType=CHAR},
|
|
57
|
+ #{pairStatus,jdbcType=CHAR}, #{verifyStatus,jdbcType=CHAR}, #{sort,jdbcType=VARCHAR},
|
|
58
|
+ #{createUser,jdbcType=INTEGER}, #{createDate,jdbcType=TIMESTAMP}, #{updateUser,jdbcType=INTEGER},
|
49
|
59
|
#{updateDate,jdbcType=TIMESTAMP})
|
50
|
60
|
</insert>
|
51
|
61
|
<insert id="insertSelective" parameterType="com.community.huiju.model.TpBuildingOwnerInfo" >
|
|
@@ -60,20 +70,32 @@
|
60
|
70
|
<if test="idCard != null" >
|
61
|
71
|
id_card,
|
62
|
72
|
</if>
|
63
|
|
- <if test="phase != null">
|
64
|
|
- phase,
|
|
73
|
+ <if test="phaseId != null" >
|
|
74
|
+ phase_id,
|
|
75
|
+ </if>
|
|
76
|
+ <if test="phaseName != null" >
|
|
77
|
+ phase_name,
|
|
78
|
+ </if>
|
|
79
|
+ <if test="buildingId != null" >
|
|
80
|
+ building_id,
|
65
|
81
|
</if>
|
66
|
|
- <if test="building != null" >
|
67
|
|
- building,
|
|
82
|
+ <if test="buildingName != null" >
|
|
83
|
+ building_name,
|
68
|
84
|
</if>
|
69
|
|
- <if test="unit != null" >
|
70
|
|
- unit,
|
|
85
|
+ <if test="unitId != null" >
|
|
86
|
+ unit_id,
|
71
|
87
|
</if>
|
72
|
|
- <if test="level != null" >
|
73
|
|
- level,
|
|
88
|
+ <if test="unitName != null" >
|
|
89
|
+ unit_name,
|
74
|
90
|
</if>
|
75
|
|
- <if test="roomNo != null" >
|
76
|
|
- room_no,
|
|
91
|
+ <if test="levelId != null" >
|
|
92
|
+ level_id,
|
|
93
|
+ </if>
|
|
94
|
+ <if test="levelName != null" >
|
|
95
|
+ level_name,
|
|
96
|
+ </if>
|
|
97
|
+ <if test="name != null" >
|
|
98
|
+ name,
|
77
|
99
|
</if>
|
78
|
100
|
<if test="ownerName != null" >
|
79
|
101
|
owner_name,
|
|
@@ -90,6 +112,9 @@
|
90
|
112
|
<if test="verifyStatus != null" >
|
91
|
113
|
verify_status,
|
92
|
114
|
</if>
|
|
115
|
+ <if test="sort != null" >
|
|
116
|
+ sort,
|
|
117
|
+ </if>
|
93
|
118
|
<if test="createUser != null" >
|
94
|
119
|
create_user,
|
95
|
120
|
</if>
|
|
@@ -113,20 +138,32 @@
|
113
|
138
|
<if test="idCard != null" >
|
114
|
139
|
#{idCard,jdbcType=VARCHAR},
|
115
|
140
|
</if>
|
116
|
|
- <if test="phase != null">
|
117
|
|
- #{phase,jdbcType=VARCHAR},
|
|
141
|
+ <if test="phaseId != null" >
|
|
142
|
+ #{phaseId,jdbcType=INTEGER},
|
118
|
143
|
</if>
|
119
|
|
- <if test="building != null" >
|
120
|
|
- #{building,jdbcType=VARCHAR},
|
|
144
|
+ <if test="phaseName != null" >
|
|
145
|
+ #{phaseName,jdbcType=VARCHAR},
|
121
|
146
|
</if>
|
122
|
|
- <if test="unit != null" >
|
123
|
|
- #{unit,jdbcType=VARCHAR},
|
|
147
|
+ <if test="buildingId != null" >
|
|
148
|
+ #{buildingId,jdbcType=INTEGER},
|
124
|
149
|
</if>
|
125
|
|
- <if test="level != null" >
|
126
|
|
- #{level,jdbcType=VARCHAR},
|
|
150
|
+ <if test="buildingName != null" >
|
|
151
|
+ #{buildingName,jdbcType=VARCHAR},
|
127
|
152
|
</if>
|
128
|
|
- <if test="roomNo != null" >
|
129
|
|
- #{roomNo,jdbcType=VARCHAR},
|
|
153
|
+ <if test="unitId != null" >
|
|
154
|
+ #{unitId,jdbcType=INTEGER},
|
|
155
|
+ </if>
|
|
156
|
+ <if test="unitName != null" >
|
|
157
|
+ #{unitName,jdbcType=VARCHAR},
|
|
158
|
+ </if>
|
|
159
|
+ <if test="levelId != null" >
|
|
160
|
+ #{levelId,jdbcType=INTEGER},
|
|
161
|
+ </if>
|
|
162
|
+ <if test="levelName != null" >
|
|
163
|
+ #{levelName,jdbcType=VARCHAR},
|
|
164
|
+ </if>
|
|
165
|
+ <if test="name != null" >
|
|
166
|
+ #{name,jdbcType=VARCHAR},
|
130
|
167
|
</if>
|
131
|
168
|
<if test="ownerName != null" >
|
132
|
169
|
#{ownerName,jdbcType=VARCHAR},
|
|
@@ -143,6 +180,9 @@
|
143
|
180
|
<if test="verifyStatus != null" >
|
144
|
181
|
#{verifyStatus,jdbcType=CHAR},
|
145
|
182
|
</if>
|
|
183
|
+ <if test="sort != null" >
|
|
184
|
+ #{sort,jdbcType=VARCHAR},
|
|
185
|
+ </if>
|
146
|
186
|
<if test="createUser != null" >
|
147
|
187
|
#{createUser,jdbcType=INTEGER},
|
148
|
188
|
</if>
|
|
@@ -166,20 +206,32 @@
|
166
|
206
|
<if test="idCard != null" >
|
167
|
207
|
id_card = #{idCard,jdbcType=VARCHAR},
|
168
|
208
|
</if>
|
169
|
|
- <if test="phase != null">
|
170
|
|
- phase = #{phase,jdbcType=VARCHAR},
|
|
209
|
+ <if test="phaseId != null" >
|
|
210
|
+ phase_id = #{phaseId,jdbcType=INTEGER},
|
171
|
211
|
</if>
|
172
|
|
- <if test="building != null" >
|
173
|
|
- building = #{building,jdbcType=VARCHAR},
|
|
212
|
+ <if test="phaseName != null" >
|
|
213
|
+ phase_name = #{phaseName,jdbcType=VARCHAR},
|
174
|
214
|
</if>
|
175
|
|
- <if test="unit != null" >
|
176
|
|
- unit = #{unit,jdbcType=VARCHAR},
|
|
215
|
+ <if test="buildingId != null" >
|
|
216
|
+ building_id = #{buildingId,jdbcType=INTEGER},
|
177
|
217
|
</if>
|
178
|
|
- <if test="level != null" >
|
179
|
|
- level = #{level,jdbcType=VARCHAR},
|
|
218
|
+ <if test="buildingName != null" >
|
|
219
|
+ building_name = #{buildingName,jdbcType=VARCHAR},
|
180
|
220
|
</if>
|
181
|
|
- <if test="roomNo != null" >
|
182
|
|
- room_no = #{roomNo,jdbcType=VARCHAR},
|
|
221
|
+ <if test="unitId != null" >
|
|
222
|
+ unit_id = #{unitId,jdbcType=INTEGER},
|
|
223
|
+ </if>
|
|
224
|
+ <if test="unitName != null" >
|
|
225
|
+ unit_name = #{unitName,jdbcType=VARCHAR},
|
|
226
|
+ </if>
|
|
227
|
+ <if test="levelId != null" >
|
|
228
|
+ level_id = #{levelId,jdbcType=INTEGER},
|
|
229
|
+ </if>
|
|
230
|
+ <if test="levelName != null" >
|
|
231
|
+ level_name = #{levelName,jdbcType=VARCHAR},
|
|
232
|
+ </if>
|
|
233
|
+ <if test="name != null" >
|
|
234
|
+ name = #{name,jdbcType=VARCHAR},
|
183
|
235
|
</if>
|
184
|
236
|
<if test="ownerName != null" >
|
185
|
237
|
owner_name = #{ownerName,jdbcType=VARCHAR},
|
|
@@ -196,6 +248,9 @@
|
196
|
248
|
<if test="verifyStatus != null" >
|
197
|
249
|
verify_status = #{verifyStatus,jdbcType=CHAR},
|
198
|
250
|
</if>
|
|
251
|
+ <if test="sort != null" >
|
|
252
|
+ sort = #{sort,jdbcType=VARCHAR},
|
|
253
|
+ </if>
|
199
|
254
|
<if test="createUser != null" >
|
200
|
255
|
create_user = #{createUser,jdbcType=INTEGER},
|
201
|
256
|
</if>
|
|
@@ -215,16 +270,21 @@
|
215
|
270
|
update tp_building_owner_info
|
216
|
271
|
set community_id = #{communityId,jdbcType=INTEGER},
|
217
|
272
|
id_card = #{idCard,jdbcType=VARCHAR},
|
218
|
|
- phase = #{phase,jdbcType=VARCHAR},
|
219
|
|
- building = #{building,jdbcType=VARCHAR},
|
220
|
|
- unit = #{unit,jdbcType=VARCHAR},
|
221
|
|
- level = #{level,jdbcType=VARCHAR},
|
222
|
|
- room_no = #{roomNo,jdbcType=VARCHAR},
|
|
273
|
+ phase_id = #{phaseId,jdbcType=INTEGER},
|
|
274
|
+ phase_name = #{phaseName,jdbcType=VARCHAR},
|
|
275
|
+ building_id = #{buildingId,jdbcType=INTEGER},
|
|
276
|
+ building_name = #{buildingName,jdbcType=VARCHAR},
|
|
277
|
+ unit_id = #{unitId,jdbcType=INTEGER},
|
|
278
|
+ unit_name = #{unitName,jdbcType=VARCHAR},
|
|
279
|
+ level_id = #{levelId,jdbcType=INTEGER},
|
|
280
|
+ level_name = #{levelName,jdbcType=VARCHAR},
|
|
281
|
+ name = #{name,jdbcType=VARCHAR},
|
223
|
282
|
owner_name = #{ownerName,jdbcType=VARCHAR},
|
224
|
283
|
owner_tel = #{ownerTel,jdbcType=VARCHAR},
|
225
|
284
|
gender = #{gender,jdbcType=CHAR},
|
226
|
285
|
pair_status = #{pairStatus,jdbcType=CHAR},
|
227
|
286
|
verify_status = #{verifyStatus,jdbcType=CHAR},
|
|
287
|
+ sort = #{sort,jdbcType=VARCHAR},
|
228
|
288
|
create_user = #{createUser,jdbcType=INTEGER},
|
229
|
289
|
create_date = #{createDate,jdbcType=TIMESTAMP},
|
230
|
290
|
update_user = #{updateUser,jdbcType=INTEGER},
|
|
@@ -240,20 +300,32 @@
|
240
|
300
|
<if test="idCard != null" >
|
241
|
301
|
id_card = #{idCard,jdbcType=VARCHAR},
|
242
|
302
|
</if>
|
243
|
|
- <if test="phase != null">
|
244
|
|
- phase = #{phase,jdbcType=VARCHAR},
|
|
303
|
+ <if test="phaseId != null" >
|
|
304
|
+ phase_id = #{phaseId,jdbcType=INTEGER},
|
245
|
305
|
</if>
|
246
|
|
- <if test="building != null" >
|
247
|
|
- building = #{building,jdbcType=VARCHAR},
|
|
306
|
+ <if test="phaseName != null" >
|
|
307
|
+ phase_name = #{phaseName,jdbcType=VARCHAR},
|
248
|
308
|
</if>
|
249
|
|
- <if test="unit != null" >
|
250
|
|
- unit = #{unit,jdbcType=VARCHAR},
|
|
309
|
+ <if test="buildingId != null" >
|
|
310
|
+ building_id = #{buildingId,jdbcType=INTEGER},
|
251
|
311
|
</if>
|
252
|
|
- <if test="level != null" >
|
253
|
|
- level = #{level,jdbcType=VARCHAR},
|
|
312
|
+ <if test="buildingName != null" >
|
|
313
|
+ building_name = #{buildingName,jdbcType=VARCHAR},
|
254
|
314
|
</if>
|
255
|
|
- <if test="roomNo != null" >
|
256
|
|
- room_no = #{roomNo,jdbcType=VARCHAR},
|
|
315
|
+ <if test="unitId != null" >
|
|
316
|
+ unit_id = #{unitId,jdbcType=INTEGER},
|
|
317
|
+ </if>
|
|
318
|
+ <if test="unitName != null" >
|
|
319
|
+ unit_name = #{unitName,jdbcType=VARCHAR},
|
|
320
|
+ </if>
|
|
321
|
+ <if test="levelId != null" >
|
|
322
|
+ level_id = #{levelId,jdbcType=INTEGER},
|
|
323
|
+ </if>
|
|
324
|
+ <if test="levelName != null" >
|
|
325
|
+ level_name = #{levelName,jdbcType=VARCHAR},
|
|
326
|
+ </if>
|
|
327
|
+ <if test="name != null" >
|
|
328
|
+ name = #{name,jdbcType=VARCHAR},
|
257
|
329
|
</if>
|
258
|
330
|
<if test="ownerName != null" >
|
259
|
331
|
owner_name = #{ownerName,jdbcType=VARCHAR},
|
|
@@ -270,6 +342,9 @@
|
270
|
342
|
<if test="verifyStatus != null" >
|
271
|
343
|
verify_status = #{verifyStatus,jdbcType=CHAR},
|
272
|
344
|
</if>
|
|
345
|
+ <if test="sort != null" >
|
|
346
|
+ sort = #{sort,jdbcType=VARCHAR},
|
|
347
|
+ </if>
|
273
|
348
|
<if test="createUser != null" >
|
274
|
349
|
create_user = #{createUser,jdbcType=INTEGER},
|
275
|
350
|
</if>
|