BusJcbGlkgMapper.xml 32 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  3. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  4. <mapper namespace="com.railway.business.catenary.mapper.BusJcbGlkgMapper">
  5. <resultMap id="BaseResultMap" type="com.railway.business.catenary.domain.BusJcbGlkg">
  6. <result column="id" property="id"/>
  7. <result column="dept_id" property="deptId"/>
  8. <result column="dept_name" property="deptName"/>
  9. <result column="station_id" property="stationId"/>
  10. <result column="station_name" property="stationName"/>
  11. <result column="dept_station_id" property="deptStationId"/>
  12. <result column="xingbie" property="xingbie"/>
  13. <result column="xingbie_text" property="xingbieText"/>
  14. <result column="pillar_code" property="pillarCode"/>
  15. <result column="kgbh" property="kgbh"/>
  16. <result column="temperature" property="temperature"/>
  17. <result column="check_date" property="checkDate"/>
  18. <result column="jgx_a" property="jgxA"/>
  19. <result column="jgx_a_desc" property="jgxADesc"/>
  20. <result column="jgx_b" property="jgxB"/>
  21. <result column="jgx_b_desc" property="jgxBDesc"/>
  22. <result column="jgx_c" property="jgxC"/>
  23. <result column="jgx_c_desc" property="jgxCDesc"/>
  24. <result column="qdzz_a" property="qdzzA"/>
  25. <result column="qdzz_a_desc" property="qdzzADesc"/>
  26. <result column="cdg_a" property="cdgA"/>
  27. <result column="cdg_a_desc" property="cdgADesc"/>
  28. <result column="cdg_b" property="cdgB"/>
  29. <result column="cdg_b_desc" property="cdgBDesc"/>
  30. <result column="cdg_c" property="cdgC"/>
  31. <result column="cdg_c_desc" property="cdgCDesc"/>
  32. <result column="gb_a" property="gbA"/>
  33. <result column="gb_a_desc" property="gbADesc"/>
  34. <result column="ctzt_a" property="ctztA"/>
  35. <result column="ctzt_a_desc" property="ctztADesc"/>
  36. <result column="ctmtzt_a" property="ctmtztA"/>
  37. <result column="ctmtzt_a_desc" property="ctmtztADesc"/>
  38. <result column="hjkzt_a" property="hjkztA"/>
  39. <result column="hjkzt_a_desc" property="hjkztADesc"/>
  40. <result column="zcjyzzt_a" property="zcjyzztA"/>
  41. <result column="zcjyzzt_a_desc" property="zcjyzztADesc"/>
  42. <result column="yxzt_a" property="yxztA"/>
  43. <result column="yxzt_a_desc" property="yxztADesc"/>
  44. <result column="yxzt_b" property="yxztB"/>
  45. <result column="yxzt_b_desc" property="yxztBDesc"/>
  46. <result column="yxzt_c" property="yxztC"/>
  47. <result column="yxzt_c_desc" property="yxztCDesc"/>
  48. <result column="swyx_1_lcz" property="swyx1Lcz"/>
  49. <result column="swyx_1_dg" property="swyx1Dg"/>
  50. <result column="swyx_2_lcz" property="swyx2Lcz"/>
  51. <result column="swyx_2_dg" property="swyx2Dg"/>
  52. <result column="zxjl" property="zxjl"/>
  53. <result column="xjzt_a" property="xjztA"/>
  54. <result column="xjzt_a_desc" property="xjztADesc"/>
  55. <result column="xjzt_b" property="xjztB"/>
  56. <result column="xjzt_b_desc" property="xjztBDesc"/>
  57. <result column="sdfhsy_a" property="sdfhsyA"/>
  58. <result column="sdfhsy_a_desc" property="sdfhsyADesc"/>
  59. <result column="ddfhsy_a" property="ddfhsyA"/>
  60. <result column="ddfhsy_a_desc" property="ddfhsyADesc"/>
  61. <result column="ydfhsy_a" property="ydfhsyA"/>
  62. <result column="ydfhsy_a_desc" property="ydfhsyADesc"/>
  63. <result column="kgztjdzt_a" property="kgztjdztA"/>
  64. <result column="kgztjdzt_a_desc" property="kgztjdztADesc"/>
  65. <result column="kgztjdzt_dzz" property="kgztjdztDzz"/>
  66. <result column="kgjgxjdzt_a" property="kgjgxjdztA"/>
  67. <result column="kgjgxjdzt_a_desc" property="kgjgxjdztADesc"/>
  68. <result column="kgjgxjdzt_dzz" property="kgjgxjdztDzz"/>
  69. <result column="fzzt" property="fzzt"/>
  70. <result column="fzzt_desc" property="fzztDesc"/>
  71. <result column="hzzt" property="hzzt"/>
  72. <result column="hzzt_desc" property="hzztDesc"/>
  73. <result column="sbzt" property="sbzt"/>
  74. <result column="sbzt_desc" property="sbztDesc"/>
  75. <result column="check_user" property="checkUser"/>
  76. <result column="confirm_user" property="confirmUser"/>
  77. <result column="czwt" property="czwt"/>
  78. <result column="create_by" property="createBy"/>
  79. <result column="create_time" property="createTime"/>
  80. <result column="update_by" property="updateBy"/>
  81. <result column="update_time" property="updateTime"/>
  82. <result column="submit_state" property="submitState"/>
  83. <result column="del_flag" property="delFlag"/>
  84. </resultMap>
  85. <sql id="Base_Column_List">
  86. id,
  87. v.dept_id,
  88. v.dept_name,
  89. v.station_name,
  90. v.station_id,
  91. t.dept_station_id,
  92. t.xingbie,
  93. t.pillar_code,
  94. t.kgbh,
  95. t.temperature,
  96. t.check_date,
  97. t.jgx_a,
  98. t.jgx_a_desc,
  99. t.jgx_b,
  100. t.jgx_b_desc,
  101. t.jgx_c,
  102. t.jgx_c_desc,
  103. t.qdzz_a,
  104. t.qdzz_a_desc,
  105. t.cdg_a,
  106. t.cdg_a_desc,
  107. t.cdg_b,
  108. t.cdg_b_desc,
  109. t.cdg_c,
  110. t.cdg_c_desc,
  111. t.gb_a,
  112. t.gb_a_desc,
  113. t.ctzt_a,
  114. t.ctzt_a_desc,
  115. t.ctmtzt_a,
  116. t.ctmtzt_a_desc,
  117. t.hjkzt_a,
  118. t.hjkzt_a_desc,
  119. t.zcjyzzt_a,
  120. t.zcjyzzt_a_desc,
  121. t.yxzt_a,
  122. t.yxzt_a_desc,
  123. t.yxzt_b,
  124. t.yxzt_b_desc,
  125. t.yxzt_c,
  126. t.yxzt_c_desc,
  127. t.swyx_1_lcz,
  128. t.swyx_1_dg,
  129. t.swyx_2_lcz,
  130. t.swyx_2_dg,
  131. t.zxjl,
  132. t.xjzt_a,
  133. t.xjzt_a_desc,
  134. t.xjzt_b,
  135. t.xjzt_b_desc,
  136. t.sdfhsy_a,
  137. t.sdfhsy_a_desc,
  138. t.ddfhsy_a,
  139. t.ddfhsy_a_desc,
  140. t.ydfhsy_a,
  141. t.ydfhsy_a_desc,
  142. t.kgztjdzt_a,
  143. t.kgztjdzt_a_desc,
  144. t.kgztjdzt_dzz,
  145. t.kgjgxjdzt_a,
  146. t.kgjgxjdzt_a_desc,
  147. t.kgjgxjdzt_dzz,
  148. t.fzzt,
  149. t.fzzt_desc,
  150. t.hzzt,
  151. t.hzzt_desc,
  152. t.sbzt,
  153. t.sbzt_desc,
  154. t.check_user,
  155. t.confirm_user,
  156. t.czwt,
  157. t.create_by,
  158. t.create_time,
  159. t.update_by,
  160. t.update_time,
  161. t.submit_state,
  162. t.del_flag
  163. </sql>
  164. <insert id="insert" parameterType="com.railway.business.catenary.domain.BusJcbGlkg">
  165. <selectKey keyProperty="id" order="AFTER" resultType="Long">
  166. select @@IDENTITY as id
  167. </selectKey>
  168. INSERT INTO bus_jcb_glkg
  169. <trim prefix="(" suffix=")" suffixOverrides=",">
  170. <if test='null != deptStationId'>
  171. dept_station_id,
  172. </if>
  173. <if test='null != xingbie'>
  174. xingbie,
  175. </if>
  176. <if test='null != pillarCode'>
  177. pillar_code,
  178. </if>
  179. <if test='null != kgbh'>
  180. kgbh,
  181. </if>
  182. <if test='null != temperature'>
  183. temperature,
  184. </if>
  185. <if test='null != checkDate'>
  186. check_date,
  187. </if>
  188. <if test='null != jgxA'>
  189. jgx_a,
  190. </if>
  191. <if test='null != jgxADesc'>
  192. jgx_a_desc,
  193. </if>
  194. <if test='null != jgxB'>
  195. jgx_b,
  196. </if>
  197. <if test='null != jgxBDesc'>
  198. jgx_b_desc,
  199. </if>
  200. <if test='null != jgxC'>
  201. jgx_c,
  202. </if>
  203. <if test='null != jgxCDesc'>
  204. jgx_c_desc,
  205. </if>
  206. <if test='null != qdzzA'>
  207. qdzz_a,
  208. </if>
  209. <if test='null != qdzzADesc'>
  210. qdzz_a_desc,
  211. </if>
  212. <if test='null != cdgA'>
  213. cdg_a,
  214. </if>
  215. <if test='null != cdgADesc'>
  216. cdg_a_desc,
  217. </if>
  218. <if test='null != cdgB'>
  219. cdg_b,
  220. </if>
  221. <if test='null != cdgBDesc'>
  222. cdg_b_desc,
  223. </if>
  224. <if test='null != cdgC'>
  225. cdg_c,
  226. </if>
  227. <if test='null != cdgCDesc'>
  228. cdg_c_desc,
  229. </if>
  230. <if test='null != gbA'>
  231. gb_a,
  232. </if>
  233. <if test='null != gbADesc'>
  234. gb_a_desc,
  235. </if>
  236. <if test='null != ctztA'>
  237. ctzt_a,
  238. </if>
  239. <if test='null != ctztADesc'>
  240. ctzt_a_desc,
  241. </if>
  242. <if test='null != ctmtztA'>
  243. ctmtzt_a,
  244. </if>
  245. <if test='null != ctmtztADesc'>
  246. ctmtzt_a_desc,
  247. </if>
  248. <if test='null != hjkztA'>
  249. hjkzt_a,
  250. </if>
  251. <if test='null != hjkztADesc'>
  252. hjkzt_a_desc,
  253. </if>
  254. <if test='null != zcjyzztA'>
  255. zcjyzzt_a,
  256. </if>
  257. <if test='null != zcjyzztADesc'>
  258. zcjyzzt_a_desc,
  259. </if>
  260. <if test='null != yxztA'>
  261. yxzt_a,
  262. </if>
  263. <if test='null != yxztADesc'>
  264. yxzt_a_desc,
  265. </if>
  266. <if test='null != yxztB'>
  267. yxzt_b,
  268. </if>
  269. <if test='null != yxztBDesc'>
  270. yxzt_b_desc,
  271. </if>
  272. <if test='null != yxztC'>
  273. yxzt_c,
  274. </if>
  275. <if test='null != yxztCDesc'>
  276. yxzt_c_desc,
  277. </if>
  278. <if test='null != swyx1Lcz'>
  279. swyx_1_lcz,
  280. </if>
  281. <if test='null != swyx1Dg'>
  282. swyx_1_dg,
  283. </if>
  284. <if test='null != swyx2Lcz'>
  285. swyx_2_lcz,
  286. </if>
  287. <if test='null != swyx2Dg'>
  288. swyx_2_dg,
  289. </if>
  290. <if test='null != zxjl'>
  291. zxjl,
  292. </if>
  293. <if test='null != xjztA'>
  294. xjzt_a,
  295. </if>
  296. <if test='null != xjztADesc'>
  297. xjzt_a_desc,
  298. </if>
  299. <if test='null != xjztB'>
  300. xjzt_b,
  301. </if>
  302. <if test='null != xjztBDesc'>
  303. xjzt_b_desc,
  304. </if>
  305. <if test='null != sdfhsyA'>
  306. sdfhsy_a,
  307. </if>
  308. <if test='null != sdfhsyADesc'>
  309. sdfhsy_a_desc,
  310. </if>
  311. <if test='null != ddfhsyA'>
  312. ddfhsy_a,
  313. </if>
  314. <if test='null != ddfhsyADesc'>
  315. ddfhsy_a_desc,
  316. </if>
  317. <if test='null != ydfhsyA'>
  318. ydfhsy_a,
  319. </if>
  320. <if test='null != ydfhsyADesc'>
  321. ydfhsy_a_desc,
  322. </if>
  323. <if test='null != kgztjdztA'>
  324. kgztjdzt_a,
  325. </if>
  326. <if test='null != kgztjdztADesc'>
  327. kgztjdzt_a_desc,
  328. </if>
  329. <if test='null != kgztjdztDzz'>
  330. kgztjdzt_dzz,
  331. </if>
  332. <if test='null != kgjgxjdztA'>
  333. kgjgxjdzt_a,
  334. </if>
  335. <if test='null != kgjgxjdztADesc'>
  336. kgjgxjdzt_a_desc,
  337. </if>
  338. <if test='null != kgjgxjdztDzz'>
  339. kgjgxjdzt_dzz,
  340. </if>
  341. <if test ='null != fzzt'>
  342. fzzt,
  343. </if>
  344. <if test ='null != fzztDesc'>
  345. fzzt_desc,
  346. </if>
  347. <if test ='null != hzzt'>
  348. hzzt,
  349. </if>
  350. <if test ='null != hzztDesc'>
  351. hzzt_desc,
  352. </if>
  353. <if test='null != sbzt'>
  354. sbzt,
  355. </if>
  356. <if test='null != sbztDesc'>
  357. sbzt_desc,
  358. </if>
  359. <if test='null != checkUser'>
  360. check_user,
  361. </if>
  362. <if test='null != confirmUser'>
  363. confirm_user,
  364. </if>
  365. <if test='null != czwt'>
  366. czwt,
  367. </if>
  368. <if test='null != createBy'>
  369. create_by,
  370. </if>
  371. <if test='null != createTime'>
  372. create_time,
  373. </if>
  374. <if test='null != updateBy'>
  375. update_by,
  376. </if>
  377. <if test='null != updateTime'>
  378. update_time,
  379. </if>
  380. <if test='null != submitState'>
  381. submit_state,
  382. </if>
  383. <if test='null != delFlag'>
  384. del_flag
  385. </if>
  386. </trim>
  387. <trim prefix="values (" suffix=")" suffixOverrides=",">
  388. <if test='null != deptStationId'>
  389. #{deptStationId},
  390. </if>
  391. <if test='null != xingbie'>
  392. #{xingbie},
  393. </if>
  394. <if test='null != pillarCode'>
  395. #{pillarCode},
  396. </if>
  397. <if test='null != kgbh'>
  398. #{kgbh},
  399. </if>
  400. <if test='null != temperature'>
  401. #{temperature},
  402. </if>
  403. <if test='null != checkDate'>
  404. #{checkDate},
  405. </if>
  406. <if test='null != jgxA'>
  407. #{jgxA},
  408. </if>
  409. <if test='null != jgxADesc'>
  410. #{jgxADesc},
  411. </if>
  412. <if test='null != jgxB'>
  413. #{jgxB},
  414. </if>
  415. <if test='null != jgxBDesc'>
  416. #{jgxBDesc},
  417. </if>
  418. <if test='null != jgxC'>
  419. #{jgxC},
  420. </if>
  421. <if test='null != jgxCDesc'>
  422. #{jgxCDesc},
  423. </if>
  424. <if test='null != qdzzA'>
  425. #{qdzzA},
  426. </if>
  427. <if test='null != qdzzADesc'>
  428. #{qdzzADesc},
  429. </if>
  430. <if test='null != cdgA'>
  431. #{cdgA},
  432. </if>
  433. <if test='null != cdgADesc'>
  434. #{cdgADesc},
  435. </if>
  436. <if test='null != cdgB'>
  437. #{cdgB},
  438. </if>
  439. <if test='null != cdgBDesc'>
  440. #{cdgBDesc},
  441. </if>
  442. <if test='null != cdgC'>
  443. #{cdgC},
  444. </if>
  445. <if test='null != cdgCDesc'>
  446. #{cdgCDesc},
  447. </if>
  448. <if test='null != gbA'>
  449. #{gbA},
  450. </if>
  451. <if test='null != gbADesc'>
  452. #{gbADesc},
  453. </if>
  454. <if test='null != ctztA'>
  455. #{ctztA},
  456. </if>
  457. <if test='null != ctztADesc'>
  458. #{ctztADesc},
  459. </if>
  460. <if test='null != ctmtztA'>
  461. #{ctmtztA},
  462. </if>
  463. <if test='null != ctmtztADesc'>
  464. #{ctmtztADesc},
  465. </if>
  466. <if test='null != hjkztA'>
  467. #{hjkztA},
  468. </if>
  469. <if test='null != hjkztADesc'>
  470. #{hjkztADesc},
  471. </if>
  472. <if test='null != zcjyzztA'>
  473. #{zcjyzztA},
  474. </if>
  475. <if test='null != zcjyzztADesc'>
  476. #{zcjyzztADesc},
  477. </if>
  478. <if test='null != yxztA'>
  479. #{yxztA},
  480. </if>
  481. <if test='null != yxztADesc'>
  482. #{yxztADesc},
  483. </if>
  484. <if test='null != yxztB'>
  485. #{yxztB},
  486. </if>
  487. <if test='null != yxztBDesc'>
  488. #{yxztBDesc},
  489. </if>
  490. <if test='null != yxztC'>
  491. #{yxztC},
  492. </if>
  493. <if test='null != yxztCDesc'>
  494. #{yxztCDesc},
  495. </if>
  496. <if test='null != swyx1Lcz'>
  497. #{swyx1Lcz},
  498. </if>
  499. <if test='null != swyx1Dg'>
  500. #{swyx1Dg},
  501. </if>
  502. <if test='null != swyx2Lcz'>
  503. #{swyx2Lcz},
  504. </if>
  505. <if test='null != swyx2Dg'>
  506. #{swyx2Dg},
  507. </if>
  508. <if test='null != zxjl'>
  509. #{zxjl},
  510. </if>
  511. <if test='null != xjztA'>
  512. #{xjztA},
  513. </if>
  514. <if test='null != xjztADesc'>
  515. #{xjztADesc},
  516. </if>
  517. <if test='null != xjztB'>
  518. #{xjztB},
  519. </if>
  520. <if test='null != xjztBDesc'>
  521. #{xjztBDesc},
  522. </if>
  523. <if test='null != sdfhsyA'>
  524. #{sdfhsyA},
  525. </if>
  526. <if test='null != sdfhsyADesc'>
  527. #{sdfhsyADesc},
  528. </if>
  529. <if test='null != ddfhsyA'>
  530. #{ddfhsyA},
  531. </if>
  532. <if test='null != ddfhsyADesc'>
  533. #{ddfhsyADesc},
  534. </if>
  535. <if test='null != ydfhsyA'>
  536. #{ydfhsyA},
  537. </if>
  538. <if test='null != ydfhsyADesc'>
  539. #{ydfhsyADesc},
  540. </if>
  541. <if test='null != kgztjdztA'>
  542. #{kgztjdztA},
  543. </if>
  544. <if test='null != kgztjdztADesc'>
  545. #{kgztjdztADesc},
  546. </if>
  547. <if test='null != kgztjdztDzz'>
  548. #{kgztjdztDzz},
  549. </if>
  550. <if test='null != kgjgxjdztA'>
  551. #{kgjgxjdztA},
  552. </if>
  553. <if test='null != kgjgxjdztADesc'>
  554. #{kgjgxjdztADesc},
  555. </if>
  556. <if test='null != kgjgxjdztDzz'>
  557. #{kgjgxjdztDzz},
  558. </if>
  559. <if test ='null != fzzt'>
  560. #{fzzt},
  561. </if>
  562. <if test ='null != fzztDesc'>
  563. #{fzztDesc},
  564. </if>
  565. <if test ='null != hzzt'>
  566. #{hzzt},
  567. </if>
  568. <if test ='null != hzztDesc'>
  569. #{hzztDesc},
  570. </if>
  571. <if test='null != sbzt'>
  572. #{sbzt},
  573. </if>
  574. <if test='null != sbztDesc'>
  575. #{sbztDesc},
  576. </if>
  577. <if test='null != checkUser'>
  578. #{checkUser},
  579. </if>
  580. <if test='null != confirmUser'>
  581. #{confirmUser},
  582. </if>
  583. <if test='null != czwt'>
  584. #{czwt},
  585. </if>
  586. <if test='null != createBy'>
  587. #{createBy},
  588. </if>
  589. <if test='null != createTime'>
  590. #{createTime},
  591. </if>
  592. <if test='null != updateBy'>
  593. #{updateBy},
  594. </if>
  595. <if test='null != updateTime'>
  596. #{updateTime},
  597. </if>
  598. <if test='null != submitState'>
  599. #{submitState},
  600. </if>
  601. <if test='null != delFlag'>
  602. #{delFlag}
  603. </if>
  604. </trim>
  605. </insert>
  606. <delete id="delete">
  607. UPDATE bus_jcb_glkg
  608. set del_flag='1'
  609. WHERE id = #{id}
  610. </delete>
  611. <update id="update" parameterType="com.railway.business.catenary.domain.BusJcbGlkg">
  612. UPDATE bus_jcb_glkg
  613. <set>
  614. <if test='null != deptStationId'>dept_station_id = #{deptStationId},</if>
  615. <if test='null != xingbie'>xingbie = #{xingbie},</if>
  616. <if test='null != pillarCode'>pillar_code = #{pillarCode},</if>
  617. <if test='null != kgbh'>kgbh = #{kgbh},</if>
  618. <if test='null != temperature'>temperature = #{temperature},</if>
  619. <if test='null != checkDate'>check_date = #{checkDate},</if>
  620. <if test='null != jgxA'>jgx_a = #{jgxA},</if>
  621. <if test='null != jgxADesc'>jgx_a_desc = #{jgxADesc},</if>
  622. <if test='null != jgxB'>jgx_b = #{jgxB},</if>
  623. <if test='null != jgxBDesc'>jgx_b_desc = #{jgxBDesc},</if>
  624. <if test='null != jgxC'>jgx_c = #{jgxC},</if>
  625. <if test='null != jgxCDesc'>jgx_c_desc = #{jgxCDesc},</if>
  626. <if test='null != qdzzA'>qdzz_a = #{qdzzA},</if>
  627. <if test='null != qdzzADesc'>qdzz_a_desc = #{qdzzADesc},</if>
  628. <if test='null != cdgA'>cdg_a = #{cdgA},</if>
  629. <if test='null != cdgADesc'>cdg_a_desc = #{cdgADesc},</if>
  630. <if test='null != cdgB'>cdg_b = #{cdgB},</if>
  631. <if test='null != cdgBDesc'>cdg_b_desc = #{cdgBDesc},</if>
  632. <if test='null != cdgC'>cdg_c = #{cdgC},</if>
  633. <if test='null != cdgCDesc'>cdg_c_desc = #{cdgCDesc},</if>
  634. <if test='null != gbA'>gb_a = #{gbA},</if>
  635. <if test='null != gbADesc'>gb_a_desc = #{gbADesc},</if>
  636. <if test='null != ctztA'>ctzt_a = #{ctztA},</if>
  637. <if test='null != ctztADesc'>ctzt_a_desc = #{ctztADesc},</if>
  638. <if test='null != ctmtztA'>ctmtzt_a = #{ctmtztA},</if>
  639. <if test='null != ctmtztADesc'>ctmtzt_a_desc = #{ctmtztADesc},</if>
  640. <if test='null != hjkztA'>hjkzt_a = #{hjkztA},</if>
  641. <if test='null != hjkztADesc'>hjkzt_a_desc = #{hjkztADesc},</if>
  642. <if test='null != zcjyzztA'>zcjyzzt_a = #{zcjyzztA},</if>
  643. <if test='null != zcjyzztADesc'>zcjyzzt_a_desc = #{zcjyzztADesc},</if>
  644. <if test='null != yxztA'>yxzt_a = #{yxztA},</if>
  645. <if test='null != yxztADesc'>yxzt_a_desc = #{yxztADesc},</if>
  646. <if test='null != yxztB'>yxzt_b = #{yxztB},</if>
  647. <if test='null != yxztBDesc'>yxzt_b_desc = #{yxztBDesc},</if>
  648. <if test='null != yxztC'>yxzt_c = #{yxztC},</if>
  649. <if test='null != yxztCDesc'>yxzt_c_desc = #{yxztCDesc},</if>
  650. <if test='null != swyx1Lcz'>swyx_1_lcz = #{swyx1Lcz},</if>
  651. <if test='null != swyx1Dg'>swyx_1_dg = #{swyx1Dg},</if>
  652. <if test='null != swyx2Lcz'>swyx_2_lcz = #{swyx2Lcz},</if>
  653. <if test='null != swyx2Dg'>swyx_2_dg = #{swyx2Dg},</if>
  654. <if test='null != zxjl'>zxjl = #{zxjl},</if>
  655. <if test='null != xjztA'>xjzt_a = #{xjztA},</if>
  656. <if test='null != xjztADesc'>xjzt_a_desc = #{xjztADesc},</if>
  657. <if test='null != xjztB'>xjzt_b = #{xjztB},</if>
  658. <if test='null != xjztBDesc'>xjzt_b_desc = #{xjztBDesc},</if>
  659. <if test='null != sdfhsyA'>sdfhsy_a = #{sdfhsyA},</if>
  660. <if test='null != sdfhsyADesc'>sdfhsy_a_desc = #{sdfhsyADesc},</if>
  661. <if test='null != ddfhsyA'>ddfhsy_a = #{ddfhsyA},</if>
  662. <if test='null != ddfhsyADesc'>ddfhsy_a_desc = #{ddfhsyADesc},</if>
  663. <if test='null != ydfhsyA'>ydfhsy_a = #{ydfhsyA},</if>
  664. <if test='null != ydfhsyADesc'>ydfhsy_a_desc = #{ydfhsyADesc},</if>
  665. <if test='null != kgztjdztA'>kgztjdzt_a = #{kgztjdztA},</if>
  666. <if test='null != kgztjdztADesc'>kgztjdzt_a_desc = #{kgztjdztADesc},</if>
  667. <if test='null != kgztjdztDzz'>kgztjdzt_dzz = #{kgztjdztDzz},</if>
  668. <if test='null != kgjgxjdztA'>kgjgxjdzt_a = #{kgjgxjdztA},</if>
  669. <if test='null != kgjgxjdztADesc'>kgjgxjdzt_a_desc = #{kgjgxjdztADesc},</if>
  670. <if test='null != kgjgxjdztDzz'>kgjgxjdzt_dzz = #{kgjgxjdztDzz},</if>
  671. <if test='null != fzzt'>fzzt = #{fzzt},</if>
  672. <if test='null != fzztDesc'>fzzt_desc = #{fzztDesc},</if>
  673. <if test='null != hzzt'>hzzt = #{hzzt},</if>
  674. <if test='null != hzztDesc'>hzzt_desc = #{hzztDesc},</if>
  675. <if test='null != sbzt'>sbzt = #{sbzt},</if>
  676. <if test='null != sbztDesc'>sbzt_desc = #{sbztDesc},</if>
  677. <if test='null != checkUser'>check_user = #{checkUser},</if>
  678. <if test='null != confirmUser'>confirm_user = #{confirmUser},</if>
  679. <if test='null != czwt'>czwt = #{czwt},</if>
  680. <if test='null != updateBy'>update_by = #{updateBy},</if>
  681. <if test='null != updateTime'>update_time = #{updateTime},</if>
  682. <if test='null != submitState'>submit_state = #{submitState},</if>
  683. <if test='null != delFlag'>del_flag = #{delFlag}</if>
  684. </set>
  685. WHERE id = #{id}
  686. </update>
  687. <select id="getInfo" resultMap="BaseResultMap">
  688. SELECT
  689. distinct
  690. <include refid="Base_Column_List"/>
  691. FROM
  692. bus_jcb_glkg t
  693. LEFT JOIN v_station v ON t.dept_station_id = v.dept_station_id
  694. WHERE
  695. t.del_flag = '0'
  696. AND t.id = #{id}
  697. </select>
  698. <select id="getList" resultMap="BaseResultMap">
  699. SELECT
  700. <include refid="Base_Column_List"/>
  701. FROM
  702. bus_jcb_glkg t
  703. LEFT JOIN v_station v ON t.dept_station_id = v.dept_station_id
  704. <where>
  705. t.del_flag = '0'
  706. <if test="deptId!=null and deptId!=''">
  707. and v.dept_id=#{deptId}
  708. </if>
  709. <if test="stationId!=null and stationId!=''">
  710. and v.station_id=#{stationId}
  711. </if>
  712. <if test="stationIds!=null and stationIds.length > 0">
  713. and v.station_id in (#{stationIds}
  714. </if>
  715. <if test="xingbie!=null and xingbie!=''">
  716. and t.xingbie=#{xingbie}
  717. </if>
  718. <if test="pillarCode!=null and pillarCode!=''">
  719. and t.pillar_code=#{pillarCode}
  720. </if>
  721. <if test="kgbh!=null and kgbh!=''">
  722. and t.kgbh=#{kgbh}
  723. </if>
  724. <if test="temperature!=null and temperature!=''">
  725. and t.temperature=#{temperature}
  726. </if>
  727. <if test="checkDate!=null">
  728. and t.check_date=#{checkDate}
  729. </if>
  730. <if test="jgxA!=null and jgxA!=''">
  731. and t.jgx_a=#{jgxA}
  732. </if>
  733. <if test="jgxADesc!=null and jgxADesc!=''">
  734. and t.jgx_a_desc=#{jgxADesc}
  735. </if>
  736. <if test="jgxB!=null and jgxB!=''">
  737. and t.jgx_b=#{jgxB}
  738. </if>
  739. <if test="jgxBDesc!=null and jgxBDesc!=''">
  740. and t.jgx_b_desc=#{jgxBDesc}
  741. </if>
  742. <if test="jgxC!=null and jgxC!=''">
  743. and t.jgx_c=#{jgxC}
  744. </if>
  745. <if test="jgxCDesc!=null and jgxCDesc!=''">
  746. and t.jgx_c_desc=#{jgxCDesc}
  747. </if>
  748. <if test="qdzzA!=null and qdzzA!=''">
  749. and t.qdzz_a=#{qdzzA}
  750. </if>
  751. <if test="qdzzADesc!=null and qdzzADesc!=''">
  752. and t.qdzz_a_desc=#{qdzzADesc}
  753. </if>
  754. <if test="cdgA!=null and cdgA!=''">
  755. and t.cdg_a=#{cdgA}
  756. </if>
  757. <if test="cdgADesc!=null and cdgADesc!=''">
  758. and t.cdg_a_desc=#{cdgADesc}
  759. </if>
  760. <if test="cdgB!=null and cdgB!=''">
  761. and t.cdg_b=#{cdgB}
  762. </if>
  763. <if test="cdgBDesc!=null and cdgBDesc!=''">
  764. and t.cdg_b_desc=#{cdgBDesc}
  765. </if>
  766. <if test="cdgC!=null and cdgC!=''">
  767. and t.cdg_c=#{cdgC}
  768. </if>
  769. <if test="cdgCDesc!=null and cdgCDesc!=''">
  770. and t.cdg_c_desc=#{cdgCDesc}
  771. </if>
  772. <if test="gbA!=null and gbA!=''">
  773. and t.gb_a=#{gbA}
  774. </if>
  775. <if test="gbADesc!=null and gbADesc!=''">
  776. and t.gb_a_desc=#{gbADesc}
  777. </if>
  778. <if test="ctztA!=null and ctztA!=''">
  779. and t.ctzt_a=#{ctztA}
  780. </if>
  781. <if test="ctztADesc!=null and ctztADesc!=''">
  782. and t.ctzt_a_desc=#{ctztADesc}
  783. </if>
  784. <if test="ctmtztA!=null and ctmtztA!=''">
  785. and t.ctmtzt_a=#{ctmtztA}
  786. </if>
  787. <if test="ctmtztADesc!=null and ctmtztADesc!=''">
  788. and t.ctmtzt_a_desc=#{ctmtztADesc}
  789. </if>
  790. <if test="hjkztA!=null and hjkztA!=''">
  791. and t.hjkzt_a=#{hjkztA}
  792. </if>
  793. <if test="hjkztADesc!=null and hjkztADesc!=''">
  794. and t.hjkzt_a_desc=#{hjkztADesc}
  795. </if>
  796. <if test="zcjyzztA!=null and zcjyzztA!=''">
  797. and t.zcjyzzt_a=#{zcjyzztA}
  798. </if>
  799. <if test="zcjyzztADesc!=null and zcjyzztADesc!=''">
  800. and t.zcjyzzt_a_desc=#{zcjyzztADesc}
  801. </if>
  802. <if test="yxztA!=null and yxztA!=''">
  803. and t.yxzt_a=#{yxztA}
  804. </if>
  805. <if test="yxztADesc!=null and yxztADesc!=''">
  806. and t.yxzt_a_desc=#{yxztADesc}
  807. </if>
  808. <if test="yxztB!=null and yxztB!=''">
  809. and t.yxzt_b=#{yxztB}
  810. </if>
  811. <if test="yxztBDesc!=null and yxztBDesc!=''">
  812. and t.yxzt_b_desc=#{yxztBDesc}
  813. </if>
  814. <if test="yxztC!=null and yxztC!=''">
  815. and t.yxzt_c=#{yxztC}
  816. </if>
  817. <if test="yxztCDesc!=null and yxztCDesc!=''">
  818. and t.yxzt_c_desc=#{yxztCDesc}
  819. </if>
  820. <if test="swyx1Lcz!=null and swyx1Lcz!=''">
  821. and t.swyx_1_lcz=#{swyx1Lcz}
  822. </if>
  823. <if test="swyx1Dg!=null and swyx1Dg!=''">
  824. and t.swyx_1_dg=#{swyx1Dg}
  825. </if>
  826. <if test="swyx2Lcz!=null and swyx2Lcz!=''">
  827. and t.swyx_2_lcz=#{swyx2Lcz}
  828. </if>
  829. <if test="swyx2Dg!=null and swyx2Dg!=''">
  830. and t.swyx_2_dg=#{swyx2Dg}
  831. </if>
  832. <if test="zxjl!=null and zxjl!=''">
  833. and zxjl=#{zxjl}
  834. </if>
  835. <if test="xjztA!=null and xjztA!=''">
  836. and t.xjzt_a=#{xjztA}
  837. </if>
  838. <if test="xjztADesc!=null and xjztADesc!=''">
  839. and t.xjzt_a_desc=#{xjztADesc}
  840. </if>
  841. <if test="xjztB!=null and xjztB!=''">
  842. and t.xjzt_b=#{xjztB}
  843. </if>
  844. <if test="xjztBDesc!=null and xjztBDesc!=''">
  845. and t.xjzt_b_desc=#{xjztBDesc}
  846. </if>
  847. <if test="sdfhsyA!=null and sdfhsyA!=''">
  848. and t.sdfhsy_a=#{sdfhsyA}
  849. </if>
  850. <if test="sdfhsyADesc!=null and sdfhsyADesc!=''">
  851. and t.sdfhsy_a_desc=#{sdfhsyADesc}
  852. </if>
  853. <if test="ddfhsyA!=null and ddfhsyA!=''">
  854. and t.ddfhsy_a=#{ddfhsyA}
  855. </if>
  856. <if test="ddfhsyADesc!=null and ddfhsyADesc!=''">
  857. and t.ddfhsy_a_desc=#{ddfhsyADesc}
  858. </if>
  859. <if test="ydfhsyA!=null and ydfhsyA!=''">
  860. and t.ydfhsy_a=#{ydfhsyA}
  861. </if>
  862. <if test="ydfhsyADesc!=null and ydfhsyADesc!=''">
  863. and t.ydfhsy_a_desc=#{ydfhsyADesc}
  864. </if>
  865. <if test="kgztjdztA!=null and kgztjdztA!=''">
  866. and t.kgztjdzt_a=#{kgztjdztA}
  867. </if>
  868. <if test="kgztjdztADesc!=null and kgztjdztADesc!=''">
  869. and t.kgztjdzt_a_desc=#{kgztjdztADesc}
  870. </if>
  871. <if test="kgztjdztDzz!=null and kgztjdztDzz!=''">
  872. and t.kgztjdzt_dzz=#{kgztjdztDzz}
  873. </if>
  874. <if test="kgjgxjdztA!=null and kgjgxjdztA!=''">
  875. and t.kgjgxjdzt_a=#{kgjgxjdztA}
  876. </if>
  877. <if test="kgjgxjdztADesc!=null and kgjgxjdztADesc!=''">
  878. and t.kgjgxjdzt_a_desc=#{kgjgxjdztADesc}
  879. </if>
  880. <if test="kgjgxjdztDzz!=null and kgjgxjdztDzz!=''">
  881. and t.kgjgxjdzt_dzz=#{kgjgxjdztDzz}
  882. </if>
  883. <if test="fzzt!=null and fzzt!=''">
  884. and t.fzzt=#{fzzt}
  885. </if>
  886. <if test="fzztDesc!=null and fzztDesc!=''">
  887. and t.fzzt_desc=#{fzztDesc}
  888. </if>
  889. <if test="hzzt!=null and hzzt!=''">
  890. and t.hzzt=#{hzzt}
  891. </if>
  892. <if test="hzztDesc!=null and hzztDesc!=''">
  893. and t.hzzt_desc=#{hzztDesc}
  894. </if>
  895. <if test="sbzt!=null and sbzt!=''">
  896. and t.sbzt=#{sbzt}
  897. </if>
  898. <if test="sbztDesc!=null and sbztDesc!=''">
  899. and t.sbzt_desc=#{sbztDesc}
  900. </if>
  901. <if test="checkUser!=null and checkUser!=''">
  902. and t.check_user=#{checkUser}
  903. </if>
  904. <if test="confirmUser!=null and confirmUser!=''">
  905. and t.confirm_user=#{confirmUser}
  906. </if>
  907. <if test="czwt!=null and czwt!=''">
  908. and t.czwt=#{czwt}
  909. </if>
  910. <if test="createBy!=null and createBy!=''">
  911. and t.create_by=#{createBy}
  912. </if>
  913. <if test="createTime!=null">
  914. and DATE_FORMAT(t.create_time, '%Y-%m-%d') = #{createTime}
  915. </if>
  916. <if test="updateBy!=null and updateBy!=''">
  917. and t.update_by=#{updateBy}
  918. </if>
  919. <if test="updateTime!=null">
  920. and DATE_FORMAT(t.update_time, '%Y-%m-%d') = #{updateTime}
  921. </if>
  922. <if test="submitState!=null and submitState!=''">
  923. and t.submit_state <![CDATA[ >= ]]> #{submitState}
  924. </if>
  925. <if test="delFlag!=null and delFlag!=''">
  926. and t.del_flag=#{delFlag}
  927. </if>
  928. </where>
  929. <if test="orderBy!=null and orderBy!=''">
  930. order by t.${orderBy}
  931. </if>
  932. <if test="isAsc!=null and isAsc!=''">
  933. <if test="isAsc == '1'.toString()">
  934. asc
  935. </if>
  936. <if test="isAsc == '0'.toString()">
  937. desc
  938. </if>
  939. </if>
  940. </select>
  941. <select id="getLastOne" resultMap="BaseResultMap">
  942. SELECT
  943. <include refid="Base_Column_List"/>
  944. FROM
  945. bus_jcb_glkg t
  946. LEFT JOIN v_station v on t.dept_station_id = v.dept_station_id
  947. WHERE
  948. t.del_flag = '0' and t.submit_state in ('1','9')
  949. <if test="stationId!=null and stationId!=''">
  950. and v.station_id=#{stationId}
  951. </if>
  952. <if test="pillarCode!=null and pillarCode!=''">
  953. and t.pillar_code=#{pillarCode}
  954. </if>
  955. <if test="kgbh!=null and kgbh!=''">
  956. and t.kgbh=#{kgbh}
  957. </if>
  958. ORDER BY
  959. t.update_time DESC
  960. LIMIT 1
  961. </select>
  962. <select id="getJcebList" resultMap="BaseResultMap">
  963. SELECT
  964. <include refid="Base_Column_List"/>
  965. FROM bus_jcb_glkg t
  966. LEFT JOIN v_station v ON t.dept_station_id = v.dept_station_id
  967. <where>
  968. t.del_flag='0'
  969. <if test="submitState!=null and submitState!=''">
  970. and t.submit_state <![CDATA[ >= ]]> #{submitState}
  971. </if>
  972. <if test="deptId!=null and deptId!=''">
  973. and v.dept_id=#{deptId}
  974. </if>
  975. <if test="stationId!=null and stationId!=''">
  976. and v.station_id=#{stationId}
  977. </if>
  978. <if test="stationIds!=null and stationIds.length > 0">
  979. and v.station_id in (#{stationIds}
  980. </if>
  981. <if test="pillarCode!=null and pillarCode!=''">
  982. and t.pillar_code=#{pillarCode}
  983. </if>
  984. <if test="operator!=null and operator!=''">
  985. and t.check_user like concat('%', #{operator}, '%')
  986. </if>
  987. <if test="createBy!=null and createBy!=''">
  988. and t.create_by=#{createBy}
  989. </if>
  990. <if test="operationDate!=null">
  991. and t.check_date=#{operationDate}
  992. </if>
  993. </where>
  994. </select>
  995. <resultMap id="JcabResultMap" type="com.railway.business.catenary.domain.vo.JcebRecordVo">
  996. <result column="id" property="id"/>
  997. <result column="dept_name" property="deptName"/>
  998. <result column="station_name" property="stationName"/>
  999. <result column="check_date" property="operationDate"/>
  1000. <result column="check_user" property="operator"/>
  1001. <result column="jcebType" property="jcebType"/>
  1002. </resultMap>
  1003. <select id="getListByType" resultMap="JcabResultMap">
  1004. SELECT t.id, v.dept_name, v.station_name, t.check_date, t.check_user, #{jcebType} as jcebType
  1005. FROM bus_jcb_glkg t
  1006. LEFT JOIN v_station v on t.dept_station_id = v.dept_station_id
  1007. <where>
  1008. t.del_flag='0'
  1009. <if test="submitState!=null and submitState!=''">
  1010. and t.submit_state <![CDATA[ >= ]]> #{submitState}
  1011. </if>
  1012. <if test="deptId!=null and deptId!=''">
  1013. and v.dept_id=#{deptId}
  1014. </if>
  1015. <if test="stationId!=null and stationId!=''">
  1016. and v.station_id=#{stationId}
  1017. </if>
  1018. <if test="stationIds!=null and stationIds.length > 0">
  1019. and v.station_id in (#{stationIds}
  1020. </if>
  1021. <if test="pillarCode!=null and pillarCode!=''">
  1022. and t.pillar_code=#{pillarCode}
  1023. </if>
  1024. <if test="operator!=null and operator!=''">
  1025. and t.check_user like concat('%', #{operator}, '%')
  1026. </if>
  1027. <if test="createBy!=null and createBy!=''">
  1028. and t.create_by=#{createBy}
  1029. </if>
  1030. <if test="operationDate!=null">
  1031. and t.check_date=#{operationDate}
  1032. </if>
  1033. </where>
  1034. </select>
  1035. <resultMap id="JcabCountResultMap" type="com.railway.business.catenary.domain.vo.JcebRecordVo">
  1036. <result column="c" property="count"/>
  1037. <result column="check_date" property="operationDate"/>
  1038. </resultMap>
  1039. <select id="getCountByType" resultMap="JcabCountResultMap">
  1040. SELECT count(*) c, max(t.check_date) as check_date
  1041. FROM bus_jcb_glkg t
  1042. LEFT JOIN v_station v on t.dept_station_id = v.dept_station_id
  1043. <where>
  1044. t.del_flag='0'
  1045. <if test="submitState!=null and submitState!=''">
  1046. and t.submit_state <![CDATA[ >= ]]> #{submitState}
  1047. </if>
  1048. <if test="deptId!=null and deptId!=''">
  1049. and v.dept_id=#{deptId}
  1050. </if>
  1051. <if test="stationId!=null and stationId!=''">
  1052. and v.station_id=#{stationId}
  1053. </if>
  1054. <if test="pillarCode!=null and pillarCode!=''">
  1055. and t.pillar_code=#{pillarCode}
  1056. </if>
  1057. <if test="operator!=null and operator!=''">
  1058. and t.check_user like concat('%', #{operator}, '%')
  1059. </if>
  1060. <if test="createBy!=null and createBy!=''">
  1061. and t.create_by=#{createBy}
  1062. </if>
  1063. <if test="operationDate!=null">
  1064. and t.check_date=#{operationDate}
  1065. </if>
  1066. </where>
  1067. </select>
  1068. </mapper>