地质所 沉降监测网建设项目
chenhuan
2024-05-16 0fdd42e318f51f9e3c6581473416af1cca69877f
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
<?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.javaweb.geo.mapper.HoleYantuMapper">
    
    <resultMap type="HoleYantu" id="HoleYantuResult">
        <result property="ids"    column="ids"    />
        <result property="code"    column="code"    />
        <result property="projectId"    column="project_id"    />
        <result property="holeId"    column="hole_id"    />
        <result property="frequencyType"    column="frequency_type"    />
        <result property="layerName"    column="layer_name"    />
        <result property="causes"    column="causes"    />
        <result property="era"    column="era"    />
        <result property="beginDepth"    column="begin_depth"    />
        <result property="endDepth"    column="end_depth"    />
        <result property="title"    column="title"    />
        <result property="createTime"    column="create_time"    />
        <result property="recordPerson"    column="record_person"    />
        <result property="recordPersonName"    column="record_person_name"    />
        <result property="description"    column="description"    />
        <result property="longitude"    column="longitude"    />
        <result property="latitude"    column="latitude"    />
        <result property="gpsTime"    column="gps_time"    />
        <result property="isDelete"    column="is_delete"    />
        <result property="position"    column="position"    />
        <result property="locateTime"    column="locate_time"    />
        <result property="reason"    column="reason"    />
        <result property="pic1"    column="pic1"    />
        <result property="pic2"    column="pic2"    />
        <result property="pic3"    column="pic3"    />
        <result property="zycf"    column="zycf"    />
        <result property="cycf"    column="cycf"    />
        <result property="djnd"    column="djnd"    />
        <result property="msd"    column="msd"    />
        <result property="jyx"    column="jyx"    />
        <result property="wzcf"    column="wzcf"    />
        <result property="ys"    column="ys"    />
        <result property="zt"    column="zt"    />
        <result property="bhw"    column="bhw"    />
        <result property="jc"    column="jc"    />
        <result property="sd"    column="sd"    />
        <result property="ftfchd"    column="ftfchd"    />
        <result property="fzntfchd"    column="fzntfchd"    />
        <result property="kx"    column="kx"    />
        <result property="czjl"    column="czjl"    />
        <result property="klzc"    column="klzc"    />
        <result property="hsl"    column="hsl"    />
        <result property="tcw"    column="tcw"    />
        <result property="klxz"    column="klxz"    />
        <result property="klpl"    column="klpl"    />
        <result property="kljp"    column="kljp"    />
        <result property="ybljx"    column="ybljx"    />
        <result property="ybljd"    column="ybljd"    />
        <result property="jdljx"    column="jdljx"    />
        <result property="jdljd"    column="jdljd"    />
        <result property="zdlj"    column="zdlj"    />
        <result property="mycf"    column="mycf"    />
        <result property="fhcd"    column="fhcd"    />
        <result property="kwzc"    column="kwzc"    />
        <result property="jycd"    column="jycd"    />
        <result property="wzcd"    column="wzcd"    />
        <result property="jbzldj"    column="jbzldj"    />
        <result property="kwx"    column="kwx"    />
        <result property="jglx"    column="jglx"    />
        <!--select子查询, column 传给子查询的参数-->
<!--        <collection property="holeMediaList" ofType="com.javaweb.geo.domain.HoleMedia" select="queryDetail" column="ids" />-->
    </resultMap>
 
    <resultMap type="HoleMedia" id="HoleMediaResult">
        <result property="ids"    column="ids"    />
        <result property="recordId"    column="record_id"    />
        <result property="projectId"    column="project_id"    />
        <result property="name"    column="name"    />
        <result property="createTime"    column="create_time"  jdbcType="TIMESTAMP" />
        <result property="type"    column="type"    />
        <result property="internetPath"    column="internet_path"    />
        <result property="createUser"    column="create_user"    />
        <result property="uploadUser"    column="upload_user"    />
    </resultMap>
 
    <!--子查询的sql-->
    <select id="queryDetail" resultMap="HoleMediaResult">
       SELECT * FROM js_hole_media where record_id = #{ids}
    </select>
 
    <sql id="selectHoleYantuVo">
        select ids,code, project_id, hole_id, frequency_type, layer_name, causes, era, begin_depth, end_depth, title, create_time, record_person, description, longitude, latitude, gps_time, is_delete, position, locate_time, reason, pic1, pic2, pic3, zycf, cycf, djnd, msd, jyx, wzcf, ys, zt, bhw, jc, sd, ftfchd, fzntfchd, kx, czjl, klzc, hsl, tcw, klxz, klpl, kljp, ybljx, ybljd, jdljx, jdljd, zdlj, mycf, fhcd, kwzc, jycd, wzcd, jbzldj, kwx, jglx from js_hole_yantu
    </sql>
 
    <select id="selectHoleYantuList" parameterType="HoleYantu" resultMap="HoleYantuResult">
        select
        a.ids,  a.code,  a.project_id,  a.hole_id,  a.frequency_type, a.layer_name, a.causes, era, a.begin_depth,
        a.end_depth, a.title, a.create_time, a.record_person, u.real_name AS record_person_name, a.description,
        a.longitude, a.latitude,  a.gps_time,  a.is_delete, a.position, a.locate_time, a.reason, a.pic1, a.pic2,
        a.pic3,  a.zycf, a.cycf,  a.djnd, a.msd, a.jyx,  a.wzcf, a.ys, a.zt, a.bhw, a.jc,  a.sd, a.ftfchd, a.fzntfchd, a.kx,
        a.czjl, a.klzc,  a.hsl, a.tcw,  a.klxz,  a.klpl, a.kljp, a.ybljx, a.ybljd, a.jdljx, a.jdljd, a.zdlj, a.mycf, a.fhcd, a.kwzc, a.jycd, a.wzcd, a.jbzldj, a.kwx, a.jglx
        from js_hole_yantu  a LEFT JOIN js_company_user u ON a.record_person = u.ids
        <where>  
            <if test="code != null  and code != ''"> and a.code = #{code}</if>
            <if test="projectId != null  and projectId != ''"> and a.project_id = #{projectId}</if>
            <if test="holeId != null  and holeId != ''"> and a.hole_id = #{holeId}</if>
            <if test="frequencyType != null  and frequencyType != ''"> and a.frequency_type = #{frequencyType}</if>
            <if test="layerName != null  and layerName != ''"> and a.layer_name like concat('%', #{layerName}, '%')</if>
            <if test="causes != null  and causes != ''"> and a.causes = #{causes}</if>
            <if test="era != null  and era != ''"> and a.era = #{era}</if>
            <if test="beginDepth != null "> and a.begin_depth = #{beginDepth}</if>
            <if test="endDepth != null "> and a.end_depth = #{endDepth}</if>
            <if test="title != null  and title != ''"> and a.title = #{title}</if>
            <if test="recordPerson != null  and recordPerson != ''"> and a.record_person = #{recordPerson}</if>
            <if test="description != null  and description != ''"> and a.description = #{description}</if>
            <if test="longitude != null "> and a.longitude = #{longitude}</if>
            <if test="latitude != null "> and a.latitude = #{latitude}</if>
            <if test="gpsTime != null "> and a.gps_time = #{gpsTime}</if>
            <if test="isDelete != null  and isDelete != ''"> and a.is_delete = #{isDelete}</if>
            <if test="position != null  and position != ''"> and a.position = #{position}</if>
            <if test="locateTime != null "> and a.locate_time = #{locateTime}</if>
            <if test="reason != null  and reason != ''"> and a.reason = #{reason}</if>
            <if test="pic1 != null  and pic1 != ''"> and a.pic1 = #{pic1}</if>
            <if test="pic2 != null  and pic2 != ''"> and a.pic2 = #{pic2}</if>
            <if test="pic3 != null  and pic3 != ''"> and a.pic3 = #{pic3}</if>
            <if test="zycf != null  and zycf != ''"> and a.zycf = #{zycf}</if>
            <if test="cycf != null  and cycf != ''"> and a.cycf = #{cycf}</if>
            <if test="djnd != null  and djnd != ''"> and a.djnd = #{djnd}</if>
            <if test="msd != null  and msd != ''"> and a.msd = #{msd}</if>
            <if test="jyx != null  and jyx != ''"> and a.jyx = #{jyx}</if>
            <if test="wzcf != null  and wzcf != ''"> and a.wzcf = #{wzcf}</if>
            <if test="ys != null  and ys != ''"> and a.ys = #{ys}</if>
            <if test="zt != null  and zt != ''"> and a.zt = #{zt}</if>
            <if test="bhw != null  and bhw != ''"> and a.bhw = #{bhw}</if>
            <if test="jc != null  and jc != ''"> and a.jc = #{jc}</if>
            <if test="sd != null  and sd != ''"> and a.sd = #{sd}</if>
            <if test="ftfchd != null  and ftfchd != ''"> and a.ftfchd = #{ftfchd}</if>
            <if test="fzntfchd != null  and fzntfchd != ''"> and a.fzntfchd = #{fzntfchd}</if>
            <if test="kx != null  and kx != ''"> and a.kx = #{kx}</if>
            <if test="czjl != null  and czjl != ''"> and a.czjl = #{czjl}</if>
            <if test="klzc != null  and klzc != ''"> and a.klzc = #{klzc}</if>
            <if test="hsl != null  and hsl != ''"> and a.hsl = #{hsl}</if>
            <if test="tcw != null  and tcw != ''"> and a.tcw = #{tcw}</if>
            <if test="klxz != null  and klxz != ''"> and a.klxz = #{klxz}</if>
            <if test="klpl != null  and klpl != ''"> and a.klpl = #{klpl}</if>
            <if test="kljp != null  and kljp != ''"> and a.kljp = #{kljp}</if>
            <if test="ybljx != null  and ybljx != ''"> and a.ybljx = #{ybljx}</if>
            <if test="ybljd != null  and ybljd != ''"> and a.ybljd = #{ybljd}</if>
            <if test="jdljx != null  and jdljx != ''"> and a.jdljx = #{jdljx}</if>
            <if test="jdljd != null  and jdljd != ''"> and a.jdljd = #{jdljd}</if>
            <if test="zdlj != null  and zdlj != ''"> and a.zdlj = #{zdlj}</if>
            <if test="mycf != null  and mycf != ''"> and a.mycf = #{mycf}</if>
            <if test="fhcd != null  and fhcd != ''"> and a.fhcd = #{fhcd}</if>
            <if test="kwzc != null  and kwzc != ''"> and a.kwzc = #{kwzc}</if>
            <if test="jycd != null  and jycd != ''"> and a.jycd = #{jycd}</if>
            <if test="wzcd != null  and wzcd != ''"> and a.wzcd = #{wzcd}</if>
            <if test="jbzldj != null  and jbzldj != ''"> and a.jbzldj = #{jbzldj}</if>
            <if test="kwx != null  and kwx != ''"> and a.kwx = #{kwx}</if>
            <if test="jglx != null  and jglx != ''"> and a.jglx = #{jglx}</if>
        </where>
        order by a.code ASC,a.end_depth ASC
    </select>
 
 
    <select id="selectTongjiHoleYantuList" parameterType="HoleYantu" resultMap="HoleYantuResult">
        select
         a.frequency_type, a.begin_depth, a.end_depth
         from js_hole_yantu  a where a.project_id = #{projectId}
        order by end_depth ASC
    </select>
 
    
    <select id="selectHoleYantuById" parameterType="String" resultMap="HoleYantuResult">
        SELECT
        a.ids,
        a.code,
        a.project_id,
        a.hole_id,
        a.frequency_type,
        a.layer_name,
        a.causes,
        a.era,
        a.begin_depth,
        a.end_depth,
        a.title,
        a.create_time,
        a.record_person,
        u.real_name AS record_person_name,
        a.description,
        a.longitude,
        a.latitude,
        a.gps_time,
        a.is_delete,
        a.position,
        a.locate_time,
        a.reason,
        a.pic1,
        a.pic2,
        a.pic3,
        a.zycf,
        a.cycf,
        a.djnd,
        a.msd,
        a.jyx,
        a.wzcf,
        a.ys,
        a.zt,
        a.bhw,
        a.jc,
        a.sd,
        a.ftfchd,
        a.fzntfchd,
        a.kx,
        a.czjl,
        a.klzc,
        a.hsl,
        a.tcw,
        a.klxz,
        a.klpl,
        a.kljp,
        a.ybljx,
        a.ybljd,
        a.jdljx,
        a.jdljd,
        a.zdlj,
        a.mycf,
        a.fhcd,
        a.kwzc,
        a.jycd,
        a.wzcd,
        a.jbzldj,
        a.kwx,
        a.jglx
        FROM js_hole_yantu a LEFT JOIN js_company_user u ON a.record_person = u.ids WHERE a.ids = #{ids}
    </select>
 
    <select id="selectHoleYantuByProject0"  resultMap="HoleYantuResult">
        <include refid="selectHoleYantuVo"/> WHERE project_id = any(SELECT ids FROM js_project WHERE `status` = '0' AND is_deleted = '0')
    </select>
 
    <select id="selectHoleYantuByProject1" resultMap="HoleYantuResult">
        <include refid="selectHoleYantuVo"/> WHERE project_id = any(SELECT ids FROM js_project WHERE `status` = '1' AND is_deleted = '0')
    </select>
 
    <select id="selectHoleYantuListByHoleId"  parameterType="String" resultMap="HoleYantuResult">
        <include refid="selectHoleYantuVo"/> WHERE hole_id = #{holeId} ORDER BY end_depth ASC
    </select>
 
    <select id="selectHoleYantuByProjectId" resultMap="HoleYantuResult">
        <include refid="selectHoleYantuVo"/> WHERE project_id = #{projectId}
    </select>
 
    <insert id="insertHoleYantu" parameterType="HoleYantu">
        insert into js_hole_yantu
        <trim prefix="(" suffix=")" suffixOverrides=",">
            <if test="ids != null  and ids != ''">ids,</if>
            <if test="code != null  and code != ''">code,</if>
            <if test="projectId != null  and projectId != ''">project_id,</if>
            <if test="holeId != null  and holeId != ''">hole_id,</if>
            <if test="frequencyType != null  and frequencyType != ''">frequency_type,</if>
            <if test="layerName != null  and layerName != ''">layer_name,</if>
            <if test="causes != null  and causes != ''">causes,</if>
            <if test="era != null  and era != ''">era,</if>
            <if test="beginDepth != null ">begin_depth,</if>
            <if test="endDepth != null ">end_depth,</if>
            <if test="title != null  and title != ''">title,</if>
            <if test="createTime != null ">create_time,</if>
            <if test="recordPerson != null  and recordPerson != ''">record_person,</if>
            <if test="description != null  and description != ''">description,</if>
            <if test="longitude != null ">longitude,</if>
            <if test="latitude != null ">latitude,</if>
            <if test="gpsTime != null ">gps_time,</if>
            <if test="isDelete != null  and isDelete != ''">is_delete,</if>
            <if test="position != null  and position != ''">position,</if>
            <if test="locateTime != null ">locate_time,</if>
            <if test="reason != null  and reason != ''">reason,</if>
            <if test="pic1 != null  and pic1 != ''">pic1,</if>
            <if test="pic2 != null  and pic2 != ''">pic2,</if>
            <if test="pic3 != null  and pic3 != ''">pic3,</if>
            <if test="zycf != null  and zycf != ''">zycf,</if>
            <if test="cycf != null  and cycf != ''">cycf,</if>
            <if test="djnd != null  and djnd != ''">djnd,</if>
            <if test="msd != null  and msd != ''">msd,</if>
            <if test="jyx != null  and jyx != ''">jyx,</if>
            <if test="wzcf != null  and wzcf != ''">wzcf,</if>
            <if test="ys != null  and ys != ''">ys,</if>
            <if test="zt != null  and zt != ''">zt,</if>
            <if test="bhw != null  and bhw != ''">bhw,</if>
            <if test="jc != null  and jc != ''">jc,</if>
            <if test="sd != null  and sd != ''">sd,</if>
            <if test="ftfchd != null  and ftfchd != ''">ftfchd,</if>
            <if test="fzntfchd != null  and fzntfchd != ''">fzntfchd,</if>
            <if test="kx != null  and kx != ''">kx,</if>
            <if test="czjl != null  and czjl != ''">czjl,</if>
            <if test="klzc != null  and klzc != ''">klzc,</if>
            <if test="hsl != null  and hsl != ''">hsl,</if>
            <if test="tcw != null  and tcw != ''">tcw,</if>
            <if test="klxz != null  and klxz != ''">klxz,</if>
            <if test="klpl != null  and klpl != ''">klpl,</if>
            <if test="kljp != null  and kljp != ''">kljp,</if>
            <if test="ybljx != null  and ybljx != ''">ybljx,</if>
            <if test="ybljd != null  and ybljd != ''">ybljd,</if>
            <if test="jdljx != null  and jdljx != ''">jdljx,</if>
            <if test="jdljd != null  and jdljd != ''">jdljd,</if>
            <if test="zdlj != null  and zdlj != ''">zdlj,</if>
            <if test="mycf != null  and mycf != ''">mycf,</if>
            <if test="fhcd != null  and fhcd != ''">fhcd,</if>
            <if test="kwzc != null  and kwzc != ''">kwzc,</if>
            <if test="jycd != null  and jycd != ''">jycd,</if>
            <if test="wzcd != null  and wzcd != ''">wzcd,</if>
            <if test="jbzldj != null  and jbzldj != ''">jbzldj,</if>
            <if test="kwx != null  and kwx != ''">kwx,</if>
            <if test="jglx != null  and jglx != ''">jglx,</if>
         </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
            <if test="ids != null  and ids != ''">#{ids},</if>
            <if test="code != null  and code != ''">#{code},</if>
            <if test="projectId != null  and projectId != ''">#{projectId},</if>
            <if test="holeId != null  and holeId != ''">#{holeId},</if>
            <if test="frequencyType != null  and frequencyType != ''">#{frequencyType},</if>
            <if test="layerName != null  and layerName != ''">#{layerName},</if>
            <if test="causes != null  and causes != ''">#{causes},</if>
            <if test="era != null  and era != ''">#{era},</if>
            <if test="beginDepth != null ">#{beginDepth},</if>
            <if test="endDepth != null ">#{endDepth},</if>
            <if test="title != null  and title != ''">#{title},</if>
            <if test="createTime != null ">#{createTime},</if>
            <if test="recordPerson != null  and recordPerson != ''">#{recordPerson},</if>
            <if test="description != null  and description != ''">#{description},</if>
            <if test="longitude != null ">#{longitude},</if>
            <if test="latitude != null ">#{latitude},</if>
            <if test="gpsTime != null ">#{gpsTime},</if>
            <if test="isDelete != null  and isDelete != ''">#{isDelete},</if>
            <if test="position != null  and position != ''">#{position},</if>
            <if test="locateTime != null ">#{locateTime},</if>
            <if test="reason != null  and reason != ''">#{reason},</if>
            <if test="pic1 != null  and pic1 != ''">#{pic1},</if>
            <if test="pic2 != null  and pic2 != ''">#{pic2},</if>
            <if test="pic3 != null  and pic3 != ''">#{pic3},</if>
            <if test="zycf != null  and zycf != ''">#{zycf},</if>
            <if test="cycf != null  and cycf != ''">#{cycf},</if>
            <if test="djnd != null  and djnd != ''">#{djnd},</if>
            <if test="msd != null  and msd != ''">#{msd},</if>
            <if test="jyx != null  and jyx != ''">#{jyx},</if>
            <if test="wzcf != null  and wzcf != ''">#{wzcf},</if>
            <if test="ys != null  and ys != ''">#{ys},</if>
            <if test="zt != null  and zt != ''">#{zt},</if>
            <if test="bhw != null  and bhw != ''">#{bhw},</if>
            <if test="jc != null  and jc != ''">#{jc},</if>
            <if test="sd != null  and sd != ''">#{sd},</if>
            <if test="ftfchd != null  and ftfchd != ''">#{ftfchd},</if>
            <if test="fzntfchd != null  and fzntfchd != ''">#{fzntfchd},</if>
            <if test="kx != null  and kx != ''">#{kx},</if>
            <if test="czjl != null  and czjl != ''">#{czjl},</if>
            <if test="klzc != null  and klzc != ''">#{klzc},</if>
            <if test="hsl != null  and hsl != ''">#{hsl},</if>
            <if test="tcw != null  and tcw != ''">#{tcw},</if>
            <if test="klxz != null  and klxz != ''">#{klxz},</if>
            <if test="klpl != null  and klpl != ''">#{klpl},</if>
            <if test="kljp != null  and kljp != ''">#{kljp},</if>
            <if test="ybljx != null  and ybljx != ''">#{ybljx},</if>
            <if test="ybljd != null  and ybljd != ''">#{ybljd},</if>
            <if test="jdljx != null  and jdljx != ''">#{jdljx},</if>
            <if test="jdljd != null  and jdljd != ''">#{jdljd},</if>
            <if test="zdlj != null  and zdlj != ''">#{zdlj},</if>
            <if test="mycf != null  and mycf != ''">#{mycf},</if>
            <if test="fhcd != null  and fhcd != ''">#{fhcd},</if>
            <if test="kwzc != null  and kwzc != ''">#{kwzc},</if>
            <if test="jycd != null  and jycd != ''">#{jycd},</if>
            <if test="wzcd != null  and wzcd != ''">#{wzcd},</if>
            <if test="jbzldj != null  and jbzldj != ''">#{jbzldj},</if>
            <if test="kwx != null  and kwx != ''">#{kwx},</if>
            <if test="jglx != null  and jglx != ''">#{jglx},</if>
         </trim>
    </insert>
 
    <insert id="insertHoleYantuList" parameterType="java.util.List">
        insert into js_hole_yantu
            (ids,code, project_id, hole_id, frequency_type, layer_name, causes, era, begin_depth, end_depth, title, create_time, record_person, description,
            longitude, latitude, gps_time, is_delete, position, locate_time, reason, pic1, pic2, pic3, zycf, cycf, djnd, msd, jyx, wzcf, ys, zt, bhw, jc, sd,
            ftfchd, fzntfchd, kx, czjl, klzc, hsl, tcw, klxz, klpl, kljp, ybljx, ybljd, jdljx, jdljd, zdlj, mycf, fhcd, kwzc, jycd, wzcd, jbzldj, kwx, jglx)
        VALUES
            <foreach collection="list" item="item" separator =",">
                (#{item.ids}, #{item.code}, #{item.projectId},#{item.holeId},#{item.frequencyType},#{item.layerName},#{item.causes},#{item.era},#{item.beginDepth},#{item.endDepth},#{item.title},#{item.createTime},#{item.recordPerson},#{item.description},
                #{item.longitude},#{item.latitude},#{item.gpsTime},#{item.isDelete},#{item.position},#{item.locateTime},#{item.reason},#{item.pic1},#{item.pic2},#{item.pic3},
                #{item.zycf},#{item.cycf},#{item.djnd},#{item.msd},#{item.jyx},#{item.wzcf},#{item.ys},#{item.zt},#{item.bhw},#{item.jc},#{item.sd},#{item.ftfchd},#{item.fzntfchd},
                #{item.kx},#{item.czjl},#{item.klzc},#{item.hsl},#{item.tcw},#{item.klxz},#{item.klpl},#{item.kljp},#{item.ybljx},#{item.ybljd},#{item.jdljx},#{item.jdljd},#{item.zdlj},
                #{item.mycf},#{item.fhcd},#{item.kwzc},#{item.jycd},#{item.wzcd},#{item.jbzldj},#{item.kwx},#{item.jglx}
                )
            </foreach >
    </insert>
 
    <update id="updateHoleYantu" parameterType="HoleYantu">
        update js_hole_yantu
        <trim prefix="SET" suffixOverrides=",">
            <if test="code != null  and code != ''">code = #{code},</if>
            <if test="projectId != null  and projectId != ''">project_id = #{projectId},</if>
            <if test="holeId != null  and holeId != ''">hole_id = #{holeId},</if>
            <if test="frequencyType != null  and frequencyType != ''">frequency_type = #{frequencyType},</if>
            <if test="layerName != null  and layerName != ''">layer_name = #{layerName},</if>
            <if test="causes != null  and causes != ''">causes = #{causes},</if>
            <if test="era != null  and era != ''">era = #{era},</if>
            <if test="beginDepth != null ">begin_depth = #{beginDepth},</if>
            <if test="endDepth != null ">end_depth = #{endDepth},</if>
            <if test="title != null  and title != ''">title = #{title},</if>
            <if test="createTime != null ">create_time = #{createTime},</if>
            <if test="recordPerson != null  and recordPerson != ''">record_person = #{recordPerson},</if>
            <if test="description != null  and description != ''">description = #{description},</if>
            <if test="longitude != null ">longitude = #{longitude},</if>
            <if test="latitude != null ">latitude = #{latitude},</if>
            <if test="gpsTime != null ">gps_time = #{gpsTime},</if>
            <if test="isDelete != null  and isDelete != ''">is_delete = #{isDelete},</if>
            <if test="position != null  and position != ''">position = #{position},</if>
            <if test="locateTime != null ">locate_time = #{locateTime},</if>
            <if test="reason != null  and reason != ''">reason = #{reason},</if>
            <if test="pic1 != null  and pic1 != ''">pic1 = #{pic1},</if>
            <if test="pic2 != null  and pic2 != ''">pic2 = #{pic2},</if>
            <if test="pic3 != null  and pic3 != ''">pic3 = #{pic3},</if>
            <if test="zycf != null  and zycf != ''">zycf = #{zycf},</if>
            <if test="cycf != null  and cycf != ''">cycf = #{cycf},</if>
            <if test="djnd != null  and djnd != ''">djnd = #{djnd},</if>
            <if test="msd != null  and msd != ''">msd = #{msd},</if>
            <if test="jyx != null  and jyx != ''">jyx = #{jyx},</if>
            <if test="wzcf != null  and wzcf != ''">wzcf = #{wzcf},</if>
            <if test="ys != null  and ys != ''">ys = #{ys},</if>
            <if test="zt != null  and zt != ''">zt = #{zt},</if>
            <if test="bhw != null  and bhw != ''">bhw = #{bhw},</if>
            <if test="jc != null  and jc != ''">jc = #{jc},</if>
            <if test="sd != null  and sd != ''">sd = #{sd},</if>
            <if test="ftfchd != null  and ftfchd != ''">ftfchd = #{ftfchd},</if>
            <if test="fzntfchd != null  and fzntfchd != ''">fzntfchd = #{fzntfchd},</if>
            <if test="kx != null  and kx != ''">kx = #{kx},</if>
            <if test="czjl != null  and czjl != ''">czjl = #{czjl},</if>
            <if test="klzc != null  and klzc != ''">klzc = #{klzc},</if>
            <if test="hsl != null  and hsl != ''">hsl = #{hsl},</if>
            <if test="tcw != null  and tcw != ''">tcw = #{tcw},</if>
            <if test="klxz != null  and klxz != ''">klxz = #{klxz},</if>
            <if test="klpl != null  and klpl != ''">klpl = #{klpl},</if>
            <if test="kljp != null  and kljp != ''">kljp = #{kljp},</if>
            <if test="ybljx != null  and ybljx != ''">ybljx = #{ybljx},</if>
            <if test="ybljd != null  and ybljd != ''">ybljd = #{ybljd},</if>
            <if test="jdljx != null  and jdljx != ''">jdljx = #{jdljx},</if>
            <if test="jdljd != null  and jdljd != ''">jdljd = #{jdljd},</if>
            <if test="zdlj != null  and zdlj != ''">zdlj = #{zdlj},</if>
            <if test="mycf != null  and mycf != ''">mycf = #{mycf},</if>
            <if test="fhcd != null  and fhcd != ''">fhcd = #{fhcd},</if>
            <if test="kwzc != null  and kwzc != ''">kwzc = #{kwzc},</if>
            <if test="jycd != null  and jycd != ''">jycd = #{jycd},</if>
            <if test="wzcd != null  and wzcd != ''">wzcd = #{wzcd},</if>
            <if test="jbzldj != null  and jbzldj != ''">jbzldj = #{jbzldj},</if>
            <if test="kwx != null  and kwx != ''">kwx = #{kwx},</if>
            <if test="jglx != null  and jglx != ''">jglx = #{jglx},</if>
        </trim>
        where ids = #{ids}
    </update>
 
    <delete id="deleteHoleYantuById" parameterType="String">
        delete from js_hole_yantu where ids = #{ids}
    </delete>
 
    <delete id="deleteHoleYantuByIds" parameterType="String">
        delete from js_hole_yantu where ids in 
        <foreach item="ids" collection="array" open="(" separator="," close=")">
            #{ids}
        </foreach>
    </delete>
    
</mapper>