BusJcbGlkgMapper.xml 35 KB

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