BusBlqMapper.xml 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915
  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.baseinfo.mapper.BusBlqMapper">
  5. <resultMap id="BaseResultMap" type="com.railway.business.baseinfo.domain.BusBlq">
  6. <result column="id" property="id"/>
  7. <result column="dept_id" property="deptId"/>
  8. <result column="dept_name" property="deptName"/>
  9. <result column="line_id" property="lineId"/>
  10. <result column="line_name" property="lineName"/>
  11. <result column="station_id" property="stationId"/>
  12. <result column="station_name" property="stationName"/>
  13. <result column="xingbie" property="xingbie"/>
  14. <result column="pillar_code" property="pillarCode"/>
  15. <result column="marker" property="marker"/>
  16. <result column="station_track" property="stationTrack"/>
  17. <result column="gxms" property="gxms"/>
  18. <result column="dydj" property="dydj"/>
  19. <result column="remark" property="remark"/>
  20. <result column="sccj" property="sccj"/>
  21. <result column="tyrq" property="tyrq"/>
  22. <result column="blqlx" property="blqlx"/>
  23. <result column="blqxh" property="blqxh"/>
  24. <result column="yzbh" property="yzbh"/>
  25. <result column="mdh" property="mdh"/>
  26. <result column="tlqtyrq" property="tlqtyrq"/>
  27. <result column="tlqzt" property="tlqzt"/>
  28. <result column="sbxjzt" property="sbxjzt"/>
  29. <result column="yfxsyrq" property="yfxsyrq"/>
  30. <result column="yxjjdtzxjl_t1" property="yxjjdtzxjlT1"/>
  31. <result column="yxjjdtzxjl_t2" property="yxjjdtzxjlT2"/>
  32. <result column="yxjjdtzxjl_f1" property="yxjjdtzxjlF1"/>
  33. <result column="yxjjdtzxjl_f2" property="yxjjdtzxjlF2"/>
  34. <result column="yxcd" property="yxcd"/>
  35. <result column="jyzjgtzt" property="jyzjgtzt"/>
  36. <result column="aqzzzt" property="aqzzzt"/>
  37. <result column="xldl1" property="xldl1"/>
  38. <result column="xldl2" property="xldl2"/>
  39. <result column="jsqcs_tx" property="jsqcsTx"/>
  40. <result column="jsqcs_fx" property="jsqcsFx"/>
  41. <result column="jdjjhhjx" property="jdjjhhjx"/>
  42. <result column="blqtj_ljls" property="blqtjLjls"/>
  43. <result column="blqtj_lm" property="blqtjLm"/>
  44. <result column="txblq_blqbt" property="txblqBlqbt"/>
  45. <result column="txblq_blqdbfllm" property="txblqBlqdbfllm"/>
  46. <result column="txblq_ljjsqjyrdtbt" property="txblqLjjsqjyrdtbt"/>
  47. <result column="txblq_blqjsqbt" property="txblqBlqjsqbt"/>
  48. <result column="txblq_tlqbt" property="txblqTlqbt"/>
  49. <result column="txblq_zzjyzbt" property="txblqZzjyzbt"/>
  50. <result column="txblq_falslm" property="txblqFalslm"/>
  51. <result column="txblq_gblslm" property="txblqGblslm"/>
  52. <result column="txblq_blqyx" property="txblqBlqyx"/>
  53. <result column="txblq_yxyjcwljxj" property="txblqYxyjcwljxj"/>
  54. <result column="fxblq_blqbt" property="fxblqBlqbt"/>
  55. <result column="fxblq_blqdbfllm" property="fxblqBlqdbfllm"/>
  56. <result column="fxblq_ljjsqjyrdtbt" property="fxblqLjjsqjyrdtbt"/>
  57. <result column="fxblq_blqjsqbt" property="fxblqBlqjsqbt"/>
  58. <result column="fxblq_tlqbt" property="fxblqTlqbt"/>
  59. <result column="fxblq_zzjyzbt" property="fxblqZzjyzbt"/>
  60. <result column="fxblq_falslm" property="fxblqFalslm"/>
  61. <result column="fxblq_gbls" property="fxblqGbls"/>
  62. <result column="fxblq_gblm" property="fxblqGblm"/>
  63. <result column="fxblq_blqyx" property="fxblqBlqyx"/>
  64. <result column="fxblq_yxyjcwljxj" property="fxblqYxyjcwljxj"/>
  65. <result column="fxblq_yxbx" property="fxblqYxbx"/>
  66. <result column="jsqyzhljdljbj_llxdz" property="jsqyzhljdljbjLlxdz"/>
  67. <result column="jsqyzhljdljbj_dljxbt" property="jsqyzhljdljbjDljxbt"/>
  68. <result column="jsqybhxljbj_tjxdzjlhlslm" property="jsqybhxljbjTjxdzjlhlslm"/>
  69. <result column="jsqybhxljbj_dytxdlbt" property="jsqybhxljbjDytxdlbt"/>
  70. <result column="blxjdyxx" property="blxjdyxx"/>
  71. <result column="jddzz" property="jddzz"/>
  72. <result column="qt" property="qt"/>
  73. <result column="fj" property="fj"/>
  74. <result column="sl" property="sl"/>
  75. <result column="dw" property="dw"/>
  76. <result column="sjbh" property="sjbh"/>
  77. <result column="del_flag" property="delFlag"/>
  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. </resultMap>
  83. <sql id="Base_Column_List">
  84. t.id,
  85. v.dept_id,
  86. v.dept_name,
  87. v.line_id,
  88. v.line_name,
  89. v.station_name as station_name,
  90. t.station_id,
  91. t.xingbie,
  92. t.pillar_code,
  93. t.marker,
  94. t.station_track,
  95. t.gxms,
  96. t.dydj,
  97. t.remark,
  98. t.sccj,
  99. t.tyrq,
  100. t.blqlx,
  101. t.blqxh,
  102. t.yzbh,
  103. t.mdh,
  104. t.tlqtyrq,
  105. t.tlqzt,
  106. t.sbxjzt,
  107. t.yfxsyrq,
  108. t.yxjjdtzxjl_t1,
  109. t.yxjjdtzxjl_t2,
  110. t.yxjjdtzxjl_f1,
  111. t.yxjjdtzxjl_f2,
  112. t.yxcd,
  113. t.jyzjgtzt,
  114. t.aqzzzt,
  115. t.xldl1,
  116. t.xldl2,
  117. t.jsqcs_tx,
  118. t.jsqcs_fx,
  119. t.jdjjhhjx,
  120. t.blqtj_ljls,
  121. t.blqtj_lm,
  122. t.txblq_blqbt,
  123. t.txblq_blqdbfllm,
  124. t.txblq_ljjsqjyrdtbt,
  125. t.txblq_blqjsqbt,
  126. t.txblq_tlqbt,
  127. t.txblq_zzjyzbt,
  128. t.txblq_falslm,
  129. t.txblq_gblslm,
  130. t.txblq_blqyx,
  131. t.txblq_yxyjcwljxj,
  132. t.fxblq_blqbt,
  133. t.fxblq_blqdbfllm,
  134. t.fxblq_ljjsqjyrdtbt,
  135. t.fxblq_blqjsqbt,
  136. t.fxblq_tlqbt,
  137. t.fxblq_zzjyzbt,
  138. t.fxblq_falslm,
  139. t.fxblq_gbls,
  140. t.fxblq_gblm,
  141. t.fxblq_blqyx,
  142. t.fxblq_yxyjcwljxj,
  143. t.fxblq_yxbx,
  144. t.jsqyzhljdljbj_llxdz,
  145. t.jsqyzhljdljbj_dljxbt,
  146. t.jsqybhxljbj_tjxdzjlhlslm,
  147. t.jsqybhxljbj_dytxdlbt,
  148. t.blxjdyxx,
  149. t.jddzz,
  150. t.qt,
  151. t.fj,
  152. t.sl,
  153. t.dw,
  154. t.sjbh,
  155. t.del_flag,
  156. t.create_by,
  157. t.create_time,
  158. t.update_by,
  159. t.update_time
  160. </sql>
  161. <insert id="insert" parameterType="com.railway.business.baseinfo.domain.BusBlq">
  162. <selectKey keyProperty="id" order="BEFORE" resultType="String">
  163. select replace(uuid(), '-', '') from dual
  164. </selectKey>
  165. INSERT INTO base_blq
  166. <trim prefix="(" suffix=")" suffixOverrides=",">
  167. <if test='null != stationId'>
  168. station_id,
  169. </if>
  170. <if test='null != xingbie'>
  171. xingbie,
  172. </if>
  173. <if test='null != pillarCode'>
  174. pillar_code,
  175. </if>
  176. <if test='null != marker'>
  177. marker,
  178. </if>
  179. <if test='null != stationTrack'>
  180. station_track,
  181. </if>
  182. <if test='null != gxms'>
  183. gxms,
  184. </if>
  185. <if test='null != dydj'>
  186. dydj,
  187. </if>
  188. <if test='null != remark'>
  189. remark,
  190. </if>
  191. <if test='null != sccj'>
  192. sccj,
  193. </if>
  194. <if test='null != tyrq'>
  195. tyrq,
  196. </if>
  197. <if test='null != blqlx'>
  198. blqlx,
  199. </if>
  200. <if test='null != blqxh'>
  201. blqxh,
  202. </if>
  203. <if test='null != yzbh'>
  204. yzbh,
  205. </if>
  206. <if test='null != mdh'>
  207. mdh,
  208. </if>
  209. <if test='null != tlqtyrq'>
  210. tlqtyrq,
  211. </if>
  212. <if test='null != tlqzt'>
  213. tlqzt,
  214. </if>
  215. <if test='null != sbxjzt'>
  216. sbxjzt,
  217. </if>
  218. <if test='null != yfxsyrq'>
  219. yfxsyrq,
  220. </if>
  221. <if test='null != yxjjdtzxjlT1'>
  222. yxjjdtzxjl_t1,
  223. </if>
  224. <if test='null != yxjjdtzxjlT2'>
  225. yxjjdtzxjl_t2,
  226. </if>
  227. <if test='null != yxjjdtzxjlF1'>
  228. yxjjdtzxjl_f1,
  229. </if>
  230. <if test='null != yxjjdtzxjlF2'>
  231. yxjjdtzxjl_f2,
  232. </if>
  233. <if test='null != yxcd'>
  234. yxcd,
  235. </if>
  236. <if test='null != jyzjgtzt'>
  237. jyzjgtzt,
  238. </if>
  239. <if test='null != aqzzzt'>
  240. aqzzzt,
  241. </if>
  242. <if test='null != xldl1'>
  243. xldl1,
  244. </if>
  245. <if test='null != xldl2'>
  246. xldl2,
  247. </if>
  248. <if test='null != jsqcsTx'>
  249. jsqcs_tx,
  250. </if>
  251. <if test='null != jsqcsFx'>
  252. jsqcs_fx,
  253. </if>
  254. <if test='null != jdjjhhjx'>
  255. jdjjhhjx,
  256. </if>
  257. <if test='null != blqtjLjls'>
  258. blqtj_ljls,
  259. </if>
  260. <if test='null != blqtjLm'>
  261. blqtj_lm,
  262. </if>
  263. <if test='null != txblqBlqbt'>
  264. txblq_blqbt,
  265. </if>
  266. <if test='null != txblqBlqdbfllm'>
  267. txblq_blqdbfllm,
  268. </if>
  269. <if test='null != txblqLjjsqjyrdtbt'>
  270. txblq_ljjsqjyrdtbt,
  271. </if>
  272. <if test='null != txblqBlqjsqbt'>
  273. txblq_blqjsqbt,
  274. </if>
  275. <if test='null != txblqTlqbt'>
  276. txblq_tlqbt,
  277. </if>
  278. <if test='null != txblqZzjyzbt'>
  279. txblq_zzjyzbt,
  280. </if>
  281. <if test='null != txblqFalslm'>
  282. txblq_falslm,
  283. </if>
  284. <if test='null != txblqGblslm'>
  285. txblq_gblslm,
  286. </if>
  287. <if test='null != txblqBlqyx'>
  288. txblq_blqyx,
  289. </if>
  290. <if test='null != txblqYxyjcwljxj'>
  291. txblq_yxyjcwljxj,
  292. </if>
  293. <if test='null != fxblqBlqbt'>
  294. fxblq_blqbt,
  295. </if>
  296. <if test='null != fxblqBlqdbfllm'>
  297. fxblq_blqdbfllm,
  298. </if>
  299. <if test='null != fxblqLjjsqjyrdtbt'>
  300. fxblq_ljjsqjyrdtbt,
  301. </if>
  302. <if test='null != fxblqBlqjsqbt'>
  303. fxblq_blqjsqbt,
  304. </if>
  305. <if test='null != fxblqTlqbt'>
  306. fxblq_tlqbt,
  307. </if>
  308. <if test='null != fxblqZzjyzbt'>
  309. fxblq_zzjyzbt,
  310. </if>
  311. <if test='null != fxblqFalslm'>
  312. fxblq_falslm,
  313. </if>
  314. <if test='null != fxblqGbls'>
  315. fxblq_gbls,
  316. </if>
  317. <if test='null != fxblqGblm'>
  318. fxblq_gblm,
  319. </if>
  320. <if test='null != fxblqBlqyx'>
  321. fxblq_blqyx,
  322. </if>
  323. <if test='null != fxblqYxyjcwljxj'>
  324. fxblq_yxyjcwljxj,
  325. </if>
  326. <if test='null != fxblqYxbx'>
  327. fxblq_yxbx,
  328. </if>
  329. <if test='null != jsqyzhljdljbjLlxdz'>
  330. jsqyzhljdljbj_llxdz,
  331. </if>
  332. <if test='null != jsqyzhljdljbjDljxbt'>
  333. jsqyzhljdljbj_dljxbt,
  334. </if>
  335. <if test='null != jsqybhxljbjTjxdzjlhlslm'>
  336. jsqybhxljbj_tjxdzjlhlslm,
  337. </if>
  338. <if test='null != jsqybhxljbjDytxdlbt'>
  339. jsqybhxljbj_dytxdlbt,
  340. </if>
  341. <if test='null != blxjdyxx'>
  342. blxjdyxx,
  343. </if>
  344. <if test='null != jddzz'>
  345. jddzz,
  346. </if>
  347. <if test='null != qt'>
  348. qt,
  349. </if>
  350. <if test='null != fj'>
  351. fj,
  352. </if>
  353. <if test='null != sl'>
  354. sl,
  355. </if>
  356. <if test='null != dw'>
  357. dw,
  358. </if>
  359. <if test='null != sjbh'>
  360. sjbh,
  361. </if>
  362. <if test='null != delFlag'>
  363. del_flag,
  364. </if>
  365. <if test='null != createBy'>
  366. create_by,
  367. </if>
  368. <if test='null != createTime'>
  369. create_time,
  370. </if>
  371. <if test='null != updateBy'>
  372. update_by,
  373. </if>
  374. <if test='null != updateTime'>
  375. update_time
  376. </if>
  377. </trim>
  378. <trim prefix="values (" suffix=")" suffixOverrides=",">
  379. <if test='null != stationId'>
  380. #{stationId},
  381. </if>
  382. <if test='null != xingbie'>
  383. #{xingbie},
  384. </if>
  385. <if test='null != pillarCode'>
  386. #{pillarCode},
  387. </if>
  388. <if test='null != marker'>
  389. #{marker},
  390. </if>
  391. <if test='null != stationTrack'>
  392. #{stationTrack},
  393. </if>
  394. <if test='null != gxms'>
  395. #{gxms},
  396. </if>
  397. <if test='null != dydj'>
  398. #{dydj},
  399. </if>
  400. <if test='null != remark'>
  401. #{remark},
  402. </if>
  403. <if test='null != sccj'>
  404. #{sccj},
  405. </if>
  406. <if test='null != tyrq'>
  407. #{tyrq},
  408. </if>
  409. <if test='null != blqlx'>
  410. #{blqlx},
  411. </if>
  412. <if test='null != blqxh'>
  413. #{blqxh},
  414. </if>
  415. <if test='null != yzbh'>
  416. #{yzbh},
  417. </if>
  418. <if test='null != mdh'>
  419. #{mdh},
  420. </if>
  421. <if test='null != tlqtyrq'>
  422. #{tlqtyrq},
  423. </if>
  424. <if test='null != tlqzt'>
  425. #{tlqzt},
  426. </if>
  427. <if test='null != sbxjzt'>
  428. #{sbxjzt},
  429. </if>
  430. <if test='null != yfxsyrq'>
  431. #{yfxsyrq},
  432. </if>
  433. <if test='null != yxjjdtzxjlT1'>
  434. #{yxjjdtzxjlT1},
  435. </if>
  436. <if test='null != yxjjdtzxjlT2'>
  437. #{yxjjdtzxjlT2},
  438. </if>
  439. <if test='null != yxjjdtzxjlF1'>
  440. #{yxjjdtzxjlF1},
  441. </if>
  442. <if test='null != yxjjdtzxjlF2'>
  443. #{yxjjdtzxjlF2},
  444. </if>
  445. <if test='null != yxcd'>
  446. #{yxcd},
  447. </if>
  448. <if test='null != jyzjgtzt'>
  449. #{jyzjgtzt},
  450. </if>
  451. <if test='null != aqzzzt'>
  452. #{aqzzzt},
  453. </if>
  454. <if test='null != xldl1'>
  455. #{xldl1},
  456. </if>
  457. <if test='null != xldl2'>
  458. #{xldl2},
  459. </if>
  460. <if test='null != jsqcsTx'>
  461. #{jsqcsTx},
  462. </if>
  463. <if test='null != jsqcsFx'>
  464. #{jsqcsFx},
  465. </if>
  466. <if test='null != jdjjhhjx'>
  467. #{jdjjhhjx},
  468. </if>
  469. <if test='null != blqtjLjls'>
  470. #{blqtjLjls},
  471. </if>
  472. <if test='null != blqtjLm'>
  473. #{blqtjLm},
  474. </if>
  475. <if test='null != txblqBlqbt'>
  476. #{txblqBlqbt},
  477. </if>
  478. <if test='null != txblqBlqdbfllm'>
  479. #{txblqBlqdbfllm},
  480. </if>
  481. <if test='null != txblqLjjsqjyrdtbt'>
  482. #{txblqLjjsqjyrdtbt},
  483. </if>
  484. <if test='null != txblqBlqjsqbt'>
  485. #{txblqBlqjsqbt},
  486. </if>
  487. <if test='null != txblqTlqbt'>
  488. #{txblqTlqbt},
  489. </if>
  490. <if test='null != txblqZzjyzbt'>
  491. #{txblqZzjyzbt},
  492. </if>
  493. <if test='null != txblqFalslm'>
  494. #{txblqFalslm},
  495. </if>
  496. <if test='null != txblqGblslm'>
  497. #{txblqGblslm},
  498. </if>
  499. <if test='null != txblqBlqyx'>
  500. #{txblqBlqyx},
  501. </if>
  502. <if test='null != txblqYxyjcwljxj'>
  503. #{txblqYxyjcwljxj},
  504. </if>
  505. <if test='null != fxblqBlqbt'>
  506. #{fxblqBlqbt},
  507. </if>
  508. <if test='null != fxblqBlqdbfllm'>
  509. #{fxblqBlqdbfllm},
  510. </if>
  511. <if test='null != fxblqLjjsqjyrdtbt'>
  512. #{fxblqLjjsqjyrdtbt},
  513. </if>
  514. <if test='null != fxblqBlqjsqbt'>
  515. #{fxblqBlqjsqbt},
  516. </if>
  517. <if test='null != fxblqTlqbt'>
  518. #{fxblqTlqbt},
  519. </if>
  520. <if test='null != fxblqZzjyzbt'>
  521. #{fxblqZzjyzbt},
  522. </if>
  523. <if test='null != fxblqFalslm'>
  524. #{fxblqFalslm},
  525. </if>
  526. <if test='null != fxblqGbls'>
  527. #{fxblqGbls},
  528. </if>
  529. <if test='null != fxblqGblm'>
  530. #{fxblqGblm},
  531. </if>
  532. <if test='null != fxblqBlqyx'>
  533. #{fxblqBlqyx},
  534. </if>
  535. <if test='null != fxblqYxyjcwljxj'>
  536. #{fxblqYxyjcwljxj},
  537. </if>
  538. <if test='null != fxblqYxbx'>
  539. #{fxblqYxbx},
  540. </if>
  541. <if test='null != jsqyzhljdljbjLlxdz'>
  542. #{jsqyzhljdljbjLlxdz},
  543. </if>
  544. <if test='null != jsqyzhljdljbjDljxbt'>
  545. #{jsqyzhljdljbjDljxbt},
  546. </if>
  547. <if test='null != jsqybhxljbjTjxdzjlhlslm'>
  548. #{jsqybhxljbjTjxdzjlhlslm},
  549. </if>
  550. <if test='null != jsqybhxljbjDytxdlbt'>
  551. #{jsqybhxljbjDytxdlbt},
  552. </if>
  553. <if test='null != blxjdyxx'>
  554. #{blxjdyxx},
  555. </if>
  556. <if test='null != jddzz'>
  557. #{jddzz},
  558. </if>
  559. <if test='null != qt'>
  560. #{qt},
  561. </if>
  562. <if test='null != fj'>
  563. #{fj},
  564. </if>
  565. <if test='null != sl'>
  566. #{sl},
  567. </if>
  568. <if test='null != dw'>
  569. #{dw},
  570. </if>
  571. <if test='null != sjbh'>
  572. #{sjbh},
  573. </if>
  574. <if test='null != delFlag'>
  575. #{delFlag},
  576. </if>
  577. <if test='null != createBy'>
  578. #{createBy},
  579. </if>
  580. <if test='null != createTime'>
  581. #{createTime},
  582. </if>
  583. <if test='null != updateBy'>
  584. #{updateBy},
  585. </if>
  586. <if test='null != updateTime'>
  587. #{updateTime}
  588. </if>
  589. </trim>
  590. </insert>
  591. <delete id="delete">
  592. UPDATE base_blq
  593. set del_flag='1'
  594. WHERE id = #{id}
  595. </delete>
  596. <update id="update" parameterType="com.railway.business.baseinfo.domain.BusBlq">
  597. UPDATE base_blq
  598. <set>
  599. <if test='null != stationId'>station_id = #{stationId},</if>
  600. <if test='null != xingbie'>xingbie = #{xingbie},</if>
  601. <if test='null != pillarCode'>pillar_code = #{pillarCode},</if>
  602. <if test='null != marker'>marker = #{marker},</if>
  603. <if test='null != stationTrack'>station_track = #{stationTrack},</if>
  604. <if test='null != gxms'>gxms = #{gxms},</if>
  605. <if test='null != dydj'>dydj = #{dydj},</if>
  606. <if test='null != remark'>remark = #{remark},</if>
  607. <if test='null != sccj'>sccj = #{sccj},</if>
  608. <if test='null != tyrq'>tyrq = #{tyrq},</if>
  609. <if test='null != blqlx'>blqlx = #{blqlx},</if>
  610. <if test='null != blqxh'>blqxh = #{blqxh},</if>
  611. <if test='null != yzbh'>yzbh = #{yzbh},</if>
  612. <if test='null != mdh'>mdh = #{mdh},</if>
  613. <if test='null != tlqtyrq'>tlqtyrq = #{tlqtyrq},</if>
  614. <if test='null != tlqzt'>tlqzt = #{tlqzt},</if>
  615. <if test='null != sbxjzt'>sbxjzt = #{sbxjzt},</if>
  616. <if test='null != yfxsyrq'>yfxsyrq = #{yfxsyrq},</if>
  617. <if test='null != yxjjdtzxjlT1'>yxjjdtzxjl_t1 = #{yxjjdtzxjlT1},</if>
  618. <if test='null != yxjjdtzxjlT2'>yxjjdtzxjl_t2 = #{yxjjdtzxjlT2},</if>
  619. <if test='null != yxjjdtzxjlF1'>yxjjdtzxjl_f1 = #{yxjjdtzxjlF1},</if>
  620. <if test='null != yxjjdtzxjlF2'>yxjjdtzxjl_f2 = #{yxjjdtzxjlF2},</if>
  621. <if test='null != yxcd'>yxcd = #{yxcd},</if>
  622. <if test='null != jyzjgtzt'>jyzjgtzt = #{jyzjgtzt},</if>
  623. <if test='null != aqzzzt'>aqzzzt = #{aqzzzt},</if>
  624. <if test='null != xldl1'>xldl1 = #{xldl1},</if>
  625. <if test='null != xldl2'>xldl2 = #{xldl2},</if>
  626. <if test='null != jsqcsTx'>jsqcs_tx = #{jsqcsTx},</if>
  627. <if test='null != jsqcsFx'>jsqcs_fx = #{jsqcsFx},</if>
  628. <if test='null != jdjjhhjx'>jdjjhhjx = #{jdjjhhjx},</if>
  629. <if test='null != blqtjLjls'>blqtj_ljls = #{blqtjLjls},</if>
  630. <if test='null != blqtjLm'>blqtj_lm = #{blqtjLm},</if>
  631. <if test='null != txblqBlqbt'>txblq_blqbt = #{txblqBlqbt},</if>
  632. <if test='null != txblqBlqdbfllm'>txblq_blqdbfllm = #{txblqBlqdbfllm},</if>
  633. <if test='null != txblqLjjsqjyrdtbt'>txblq_ljjsqjyrdtbt = #{txblqLjjsqjyrdtbt},</if>
  634. <if test='null != txblqBlqjsqbt'>txblq_blqjsqbt = #{txblqBlqjsqbt},</if>
  635. <if test='null != txblqTlqbt'>txblq_tlqbt = #{txblqTlqbt},</if>
  636. <if test='null != txblqZzjyzbt'>txblq_zzjyzbt = #{txblqZzjyzbt},</if>
  637. <if test='null != txblqFalslm'>txblq_falslm = #{txblqFalslm},</if>
  638. <if test='null != txblqGblslm'>txblq_gblslm = #{txblqGblslm},</if>
  639. <if test='null != txblqBlqyx'>txblq_blqyx = #{txblqBlqyx},</if>
  640. <if test='null != txblqYxyjcwljxj'>txblq_yxyjcwljxj = #{txblqYxyjcwljxj},</if>
  641. <if test='null != fxblqBlqbt'>fxblq_blqbt = #{fxblqBlqbt},</if>
  642. <if test='null != fxblqBlqdbfllm'>fxblq_blqdbfllm = #{fxblqBlqdbfllm},</if>
  643. <if test='null != fxblqLjjsqjyrdtbt'>fxblq_ljjsqjyrdtbt = #{fxblqLjjsqjyrdtbt},</if>
  644. <if test='null != fxblqBlqjsqbt'>fxblq_blqjsqbt = #{fxblqBlqjsqbt},</if>
  645. <if test='null != fxblqTlqbt'>fxblq_tlqbt = #{fxblqTlqbt},</if>
  646. <if test='null != fxblqZzjyzbt'>fxblq_zzjyzbt = #{fxblqZzjyzbt},</if>
  647. <if test='null != fxblqFalslm'>fxblq_falslm = #{fxblqFalslm},</if>
  648. <if test='null != fxblqGbls'>fxblq_gbls = #{fxblqGbls},</if>
  649. <if test='null != fxblqGblm'>fxblq_gblm = #{fxblqGblm},</if>
  650. <if test='null != fxblqBlqyx'>fxblq_blqyx = #{fxblqBlqyx},</if>
  651. <if test='null != fxblqYxyjcwljxj'>fxblq_yxyjcwljxj = #{fxblqYxyjcwljxj},</if>
  652. <if test='null != fxblqYxbx'>fxblq_yxbx = #{fxblqYxbx},</if>
  653. <if test='null != jsqyzhljdljbjLlxdz'>jsqyzhljdljbj_llxdz = #{jsqyzhljdljbjLlxdz},</if>
  654. <if test='null != jsqyzhljdljbjDljxbt'>jsqyzhljdljbj_dljxbt = #{jsqyzhljdljbjDljxbt},</if>
  655. <if test='null != jsqybhxljbjTjxdzjlhlslm'>jsqybhxljbj_tjxdzjlhlslm =
  656. #{jsqybhxljbjTjxdzjlhlslm},
  657. </if>
  658. <if test='null != jsqybhxljbjDytxdlbt'>jsqybhxljbj_dytxdlbt = #{jsqybhxljbjDytxdlbt},</if>
  659. <if test='null != blxjdyxx'>blxjdyxx = #{blxjdyxx},</if>
  660. <if test='null != jddzz'>jddzz = #{jddzz},</if>
  661. <if test='null != qt'>qt = #{qt},</if>
  662. <if test='null != fj'>fj = #{fj},</if>
  663. <if test='null != sl'>sl = #{sl},</if>
  664. <if test='null != dw'>dw = #{dw},</if>
  665. <if test='null != sjbh'>sjbh = #{sjbh},</if>
  666. <if test='null != delFlag'>del_flag = #{delFlag},</if>
  667. <if test='null != createBy'>create_by = #{createBy},</if>
  668. <if test='null != createTime'>create_time = #{createTime},</if>
  669. <if test='null != updateBy'>update_by = #{updateBy},</if>
  670. <if test='null != updateTime'>update_time = #{updateTime},</if>
  671. </set>
  672. WHERE id = #{id}
  673. </update>
  674. <select id="getInfo" resultMap="BaseResultMap">
  675. SELECT
  676. <include refid="Base_Column_List"/>
  677. FROM base_blq t
  678. LEFT JOIN v_station v on t.station_id = v.station_id
  679. WHERE t.del_flag='0' and t.id = #{id}
  680. </select>
  681. <select id="getList" resultMap="BaseResultMap">
  682. SELECT
  683. <include refid="Base_Column_List"/>
  684. FROM base_blq t
  685. LEFT JOIN v_station v on t.station_id = v.station_id
  686. <where>
  687. t.del_flag='0'
  688. <if test="deptId!=null and deptId!=''">
  689. and v.dept_id=#{deptId}
  690. </if>
  691. <if test="lineId!=null and lineId!=''">
  692. and v.line_id=#{lineId}
  693. </if>
  694. <if test="stationId!=null and stationId!=''">
  695. and t.station_id=#{stationId}
  696. </if>
  697. <if test="xingbie!=null and xingbie!=''">
  698. and t.xingbie=#{xingbie}
  699. </if>
  700. <if test="pillarCode!=null and pillarCode!=''">
  701. and t.pillar_code=#{pillarCode}
  702. </if>
  703. <if test="marker!=null and marker!=''">
  704. and t.marker=#{marker}
  705. </if>
  706. <if test="stationTrack!=null and stationTrack!=''">
  707. and t.station_track=#{stationTrack}
  708. </if>
  709. <if test="gxms!=null and gxms!=''">
  710. and t.gxms=#{gxms}
  711. </if>
  712. <if test="dydj!=null and dydj!=''">
  713. and t.dydj=#{dydj}
  714. </if>
  715. <if test="remark!=null and remark!=''">
  716. and t.remark=#{remark}
  717. </if>
  718. <if test="sccj!=null and sccj!=''">
  719. and t.sccj=#{sccj}
  720. </if>
  721. <if test="tyrq!=null and tyrq!=''">
  722. and t.tyrq=#{tyrq}
  723. </if>
  724. <if test="blqlx!=null and blqlx!=''">
  725. and t.blqlx=#{blqlx}
  726. </if>
  727. <if test="blqxh!=null and blqxh!=''">
  728. and t.blqxh=#{blqxh}
  729. </if>
  730. <if test="yzbh!=null and yzbh!=''">
  731. and t.yzbh=#{yzbh}
  732. </if>
  733. <if test="mdh!=null and mdh!=''">
  734. and t.mdh=#{mdh}
  735. </if>
  736. <if test="tlqtyrq!=null and tlqtyrq!=''">
  737. and t.tlqtyrq=#{tlqtyrq}
  738. </if>
  739. <if test="tlqzt!=null and tlqzt!=''">
  740. and t.tlqzt=#{tlqzt}
  741. </if>
  742. <if test="sbxjzt!=null and sbxjzt!=''">
  743. and t.sbxjzt=#{sbxjzt}
  744. </if>
  745. <if test="yfxsyrq!=null and yfxsyrq!=''">
  746. and t.yfxsyrq=#{yfxsyrq}
  747. </if>
  748. <if test="yxjjdtzxjlT1!=null and yxjjdtzxjlT1!=''">
  749. and t.yxjjdtzxjl_t1=#{yxjjdtzxjlT1}
  750. </if>
  751. <if test="yxjjdtzxjlT2!=null and yxjjdtzxjlT2!=''">
  752. and t.yxjjdtzxjl_t2=#{yxjjdtzxjlT2}
  753. </if>
  754. <if test="yxjjdtzxjlF1!=null and yxjjdtzxjlF1!=''">
  755. and t.yxjjdtzxjl_f1=#{yxjjdtzxjlF1}
  756. </if>
  757. <if test="yxjjdtzxjlF2!=null and yxjjdtzxjlF2!=''">
  758. and t.yxjjdtzxjl_f2=#{yxjjdtzxjlF2}
  759. </if>
  760. <if test="yxcd!=null and yxcd!=''">
  761. and t.yxcd=#{yxcd}
  762. </if>
  763. <if test="jyzjgtzt!=null and jyzjgtzt!=''">
  764. and t.jyzjgtzt=#{jyzjgtzt}
  765. </if>
  766. <if test="aqzzzt!=null and aqzzzt!=''">
  767. and t.aqzzzt=#{aqzzzt}
  768. </if>
  769. <if test="xldl1!=null and xldl1!=''">
  770. and t.xldl1=#{xldl1}
  771. </if>
  772. <if test="xldl2!=null and xldl2!=''">
  773. and t.xldl2=#{xldl2}
  774. </if>
  775. <if test="jsqcsTx!=null and jsqcsTx!=''">
  776. and t.jsqcs_tx=#{jsqcsTx}
  777. </if>
  778. <if test="jsqcsFx!=null and jsqcsFx!=''">
  779. and t.jsqcs_fx=#{jsqcsFx}
  780. </if>
  781. <if test="jdjjhhjx!=null and jdjjhhjx!=''">
  782. and t.jdjjhhjx=#{jdjjhhjx}
  783. </if>
  784. <if test="blqtjLjls!=null and blqtjLjls!=''">
  785. and t.blqtj_ljls=#{blqtjLjls}
  786. </if>
  787. <if test="blqtjLm!=null and blqtjLm!=''">
  788. and t.blqtj_lm=#{blqtjLm}
  789. </if>
  790. <if test="txblqBlqbt!=null and txblqBlqbt!=''">
  791. and t.txblq_blqbt=#{txblqBlqbt}
  792. </if>
  793. <if test="txblqBlqdbfllm!=null and txblqBlqdbfllm!=''">
  794. and t.txblq_blqdbfllm=#{txblqBlqdbfllm}
  795. </if>
  796. <if test="txblqLjjsqjyrdtbt!=null and txblqLjjsqjyrdtbt!=''">
  797. and t.txblq_ljjsqjyrdtbt=#{txblqLjjsqjyrdtbt}
  798. </if>
  799. <if test="txblqBlqjsqbt!=null and txblqBlqjsqbt!=''">
  800. and t.txblq_blqjsqbt=#{txblqBlqjsqbt}
  801. </if>
  802. <if test="txblqTlqbt!=null and txblqTlqbt!=''">
  803. and t.txblq_tlqbt=#{txblqTlqbt}
  804. </if>
  805. <if test="txblqZzjyzbt!=null and txblqZzjyzbt!=''">
  806. and t.txblq_zzjyzbt=#{txblqZzjyzbt}
  807. </if>
  808. <if test="txblqFalslm!=null and txblqFalslm!=''">
  809. and t.txblq_falslm=#{txblqFalslm}
  810. </if>
  811. <if test="txblqGblslm!=null and txblqGblslm!=''">
  812. and t.txblq_gblslm=#{txblqGblslm}
  813. </if>
  814. <if test="txblqBlqyx!=null and txblqBlqyx!=''">
  815. and t.txblq_blqyx=#{txblqBlqyx}
  816. </if>
  817. <if test="txblqYxyjcwljxj!=null and txblqYxyjcwljxj!=''">
  818. and t.txblq_yxyjcwljxj=#{txblqYxyjcwljxj}
  819. </if>
  820. <if test="fxblqBlqbt!=null and fxblqBlqbt!=''">
  821. and t.fxblq_blqbt=#{fxblqBlqbt}
  822. </if>
  823. <if test="fxblqBlqdbfllm!=null and fxblqBlqdbfllm!=''">
  824. and t.fxblq_blqdbfllm=#{fxblqBlqdbfllm}
  825. </if>
  826. <if test="fxblqLjjsqjyrdtbt!=null and fxblqLjjsqjyrdtbt!=''">
  827. and t.fxblq_ljjsqjyrdtbt=#{fxblqLjjsqjyrdtbt}
  828. </if>
  829. <if test="fxblqBlqjsqbt!=null and fxblqBlqjsqbt!=''">
  830. and t.fxblq_blqjsqbt=#{fxblqBlqjsqbt}
  831. </if>
  832. <if test="fxblqTlqbt!=null and fxblqTlqbt!=''">
  833. and t.fxblq_tlqbt=#{fxblqTlqbt}
  834. </if>
  835. <if test="fxblqZzjyzbt!=null and fxblqZzjyzbt!=''">
  836. and t.fxblq_zzjyzbt=#{fxblqZzjyzbt}
  837. </if>
  838. <if test="fxblqFalslm!=null and fxblqFalslm!=''">
  839. and t.fxblq_falslm=#{fxblqFalslm}
  840. </if>
  841. <if test="fxblqGbls!=null and fxblqGbls!=''">
  842. and t.fxblq_gbls=#{fxblqGbls}
  843. </if>
  844. <if test="fxblqGblm!=null and fxblqGblm!=''">
  845. and t.fxblq_gblm=#{fxblqGblm}
  846. </if>
  847. <if test="fxblqBlqyx!=null and fxblqBlqyx!=''">
  848. and t.fxblq_blqyx=#{fxblqBlqyx}
  849. </if>
  850. <if test="fxblqYxyjcwljxj!=null and fxblqYxyjcwljxj!=''">
  851. and t.fxblq_yxyjcwljxj=#{fxblqYxyjcwljxj}
  852. </if>
  853. <if test="fxblqYxbx!=null and fxblqYxbx!=''">
  854. and t.fxblq_yxbx=#{fxblqYxbx}
  855. </if>
  856. <if test="jsqyzhljdljbjLlxdz!=null and jsqyzhljdljbjLlxdz!=''">
  857. and t.jsqyzhljdljbj_llxdz=#{jsqyzhljdljbjLlxdz}
  858. </if>
  859. <if test="jsqyzhljdljbjDljxbt!=null and jsqyzhljdljbjDljxbt!=''">
  860. and t.jsqyzhljdljbj_dljxbt=#{jsqyzhljdljbjDljxbt}
  861. </if>
  862. <if test="jsqybhxljbjTjxdzjlhlslm!=null and jsqybhxljbjTjxdzjlhlslm!=''">
  863. and t.jsqybhxljbj_tjxdzjlhlslm=#{jsqybhxljbjTjxdzjlhlslm}
  864. </if>
  865. <if test="jsqybhxljbjDytxdlbt!=null and jsqybhxljbjDytxdlbt!=''">
  866. and t.jsqybhxljbj_dytxdlbt=#{jsqybhxljbjDytxdlbt}
  867. </if>
  868. <if test="blxjdyxx!=null and blxjdyxx!=''">
  869. and t.blxjdyxx=#{blxjdyxx}
  870. </if>
  871. <if test="jddzz!=null and jddzz!=''">
  872. and t.jddzz=#{jddzz}
  873. </if>
  874. <if test="qt!=null and qt!=''">
  875. and t.qt=#{qt}
  876. </if>
  877. <if test="fj!=null and fj!=''">
  878. and t.fj=#{fj}
  879. </if>
  880. <if test="sl!=null and sl!=''">
  881. and t.sl=#{sl}
  882. </if>
  883. <if test="dw!=null and dw!=''">
  884. and t.dw=#{dw}
  885. </if>
  886. <if test="sjbh!=null and sjbh!=''">
  887. and t.sjbh=#{sjbh}
  888. </if>
  889. <if test="delFlag!=null and delFlag!=''">
  890. and t.del_flag=#{delFlag}
  891. </if>
  892. <if test="createBy!=null and createBy!=''">
  893. and t.create_by=#{createBy}
  894. </if>
  895. <if test="createTime!=null and createTime!=''">
  896. and t.create_time=#{createTime}
  897. </if>
  898. <if test="updateBy!=null and updateBy!=''">
  899. and t.update_by=#{updateBy}
  900. </if>
  901. <if test="updateTime!=null and updateTime!=''">
  902. and t.update_time=#{updateTime}
  903. </if>
  904. </where>
  905. </select>
  906. </mapper>