BusJcbJcxcMapper.xml 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626
  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.BusJcbJcxcMapper">
  5. <resultMap id="BaseResultMap" type="com.railway.business.catenary.domain.BusJcbJcxc">
  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="pillar_code" property="pillarCode"/>
  12. <result column="xianchahao" property="xianchahao"/>
  13. <result column="temperature" property="temperature"/>
  14. <result column="check_date" property="checkDate"/>
  15. <result column="gz1lcz" property="gz1lcz"/>
  16. <result column="gz2lcz" property="gz2lcz"/>
  17. <result column="zglcz" property="zglcz"/>
  18. <result column="qglcz" property="qglcz"/>
  19. <result column="ngj" property="ngj"/>
  20. <result column="plz" property="plz"/>
  21. <result column="xcxzgazlg" property="xcxzgazlg"/>
  22. <result column="xcxzgazlg_gzms" property="xcxzgazlgGzms"/>
  23. <result column="hdjx" property="hdjx"/>
  24. <result column="hdjx_gzms" property="hdjxGzms"/>
  25. <result column="fhzzsq" property="fhzzsq"/>
  26. <result column="fhzzsq_gzms" property="fhzzsqGzms"/>
  27. <result column="dqssxx" property="dqssxx"/>
  28. <result column="dqssxx_gzms" property="dqssxxGzms"/>
  29. <result column="lswst" property="lswst"/>
  30. <result column="lswst_gzms" property="lswstGzms"/>
  31. <result column="xzgldydx" property="xzgldydx"/>
  32. <result column="xzgldydx_gzms" property="xzgldydxGzms"/>
  33. <result column="dxztlh" property="dxztlh"/>
  34. <result column="dxztlh_gzms" property="dxztlhGzms"/>
  35. <result column="czjj" property="czjj"/>
  36. <result column="lgzzgc" property="lgzzgc"/>
  37. <result column="gzyfzgc" property="gzyfzgc"/>
  38. <result column="wxj" property="wxj"/>
  39. <result column="wxj_gzms" property="wxjGzms"/>
  40. <result column="hddxxjzt" property="hddxxjzt"/>
  41. <result column="hddxxjzt_gzms" property="hddxxjztGzms"/>
  42. <result column="jcdxzt" property="jcdxzt"/>
  43. <result column="jcdxzt_gzms" property="jcdxztGzms"/>
  44. <result column="dljxzt" property="dljxzt"/>
  45. <result column="dljxzt_gzms" property="dljxztGzms"/>
  46. <result column="sbzt" property="sbzt"/>
  47. <result column="check_user" property="checkUser"/>
  48. <result column="confirm_user" property="confirmUser"/>
  49. <result column="czwt" property="czwt"/>
  50. <result column="submit_state" property="submitState"/>
  51. <result column="create_by" property="createBy"/>
  52. <result column="create_time" property="createTime"/>
  53. <result column="update_by" property="updateBy"/>
  54. <result column="update_time" property="updateTime"/>
  55. <result column="user_id" property="userId"/>
  56. </resultMap>
  57. <sql id="Base_Column_List">
  58. id,
  59. v.dept_id,
  60. v.dept_name,
  61. v.station_name as station_name,
  62. t.station_id,
  63. t.pillar_code,
  64. t.xianchahao,
  65. t.temperature,
  66. t.check_date,
  67. t.gz1lcz,
  68. t.gz2lcz,
  69. t.zglcz,
  70. t.qglcz,
  71. t.ngj,
  72. t.plz,
  73. t.xcxzgazlg,
  74. t.xcxzgazlg_gzms,
  75. t.hdjx,
  76. t.hdjx_gzms,
  77. t.fhzzsq,
  78. t.fhzzsq_gzms,
  79. t.dqssxx,
  80. t.dqssxx_gzms,
  81. t.lswst,
  82. t.lswst_gzms,
  83. t.xzgldydx,
  84. t.xzgldydx_gzms,
  85. t.dxztlh,
  86. t.dxztlh_gzms,
  87. t.czjj,
  88. t.lgzzgc,
  89. t.gzyfzgc,
  90. t.wxj,
  91. t.wxj_gzms,
  92. t.hddxxjzt,
  93. t.hddxxjzt_gzms,
  94. t.jcdxzt,
  95. t.jcdxzt_gzms,
  96. t.dljxzt,
  97. t.dljxzt_gzms,
  98. t.sbzt,
  99. t.check_user,
  100. t.confirm_user,
  101. t.czwt,
  102. t.submit_state,
  103. t.create_by,
  104. t.create_time,
  105. t.update_by,
  106. t.update_time,
  107. t.user_id
  108. </sql>
  109. <insert id="insert" parameterType="com.railway.business.catenary.domain.BusJcbJcxc">
  110. INSERT INTO bus_jcb_jcxc
  111. <trim prefix="(" suffix=")" suffixOverrides=",">
  112. <if test='null != stationId'>
  113. station_id,
  114. </if>
  115. <if test='null != pillarCode'>
  116. pillar_code,
  117. </if>
  118. <if test='null != xianchahao'>
  119. xianchahao,
  120. </if>
  121. <if test='null != temperature'>
  122. temperature,
  123. </if>
  124. <if test='null != checkDate'>
  125. check_date,
  126. </if>
  127. <if test='null != gz1lcz'>
  128. gz1lcz,
  129. </if>
  130. <if test='null != gz2lcz'>
  131. gz2lcz,
  132. </if>
  133. <if test='null != zglcz'>
  134. zglcz,
  135. </if>
  136. <if test='null != qglcz'>
  137. qglcz,
  138. </if>
  139. <if test='null != ngj'>
  140. ngj,
  141. </if>
  142. <if test='null != plz'>
  143. plz,
  144. </if>
  145. <if test='null != xcxzgazlg'>
  146. xcxzgazlg,
  147. </if>
  148. <if test='null != xcxzgazlgGzms'>
  149. xcxzgazlg_gzms,
  150. </if>
  151. <if test='null != hdjx'>
  152. hdjx,
  153. </if>
  154. <if test='null != hdjxGzms'>
  155. hdjx_gzms,
  156. </if>
  157. <if test='null != fhzzsq'>
  158. fhzzsq,
  159. </if>
  160. <if test='null != fhzzsqGzms'>
  161. fhzzsq_gzms,
  162. </if>
  163. <if test='null != dqssxx'>
  164. dqssxx,
  165. </if>
  166. <if test='null != dqssxxGzms'>
  167. dqssxx_gzms,
  168. </if>
  169. <if test='null != lswst'>
  170. lswst,
  171. </if>
  172. <if test='null != lswstGzms'>
  173. lswst_gzms,
  174. </if>
  175. <if test='null != xzgldydx'>
  176. xzgldydx,
  177. </if>
  178. <if test='null != xzgldydxGzms'>
  179. xzgldydx_gzms,
  180. </if>
  181. <if test='null != dxztlh'>
  182. dxztlh,
  183. </if>
  184. <if test='null != dxztlhGzms'>
  185. dxztlh_gzms,
  186. </if>
  187. <if test='null != czjj'>
  188. czjj,
  189. </if>
  190. <if test='null != lgzzgc'>
  191. lgzzgc,
  192. </if>
  193. <if test='null != gzyfzgc'>
  194. gzyfzgc,
  195. </if>
  196. <if test='null != wxj'>
  197. wxj,
  198. </if>
  199. <if test='null != wxjGzms'>
  200. wxj_gzms,
  201. </if>
  202. <if test='null != hddxxjzt'>
  203. hddxxjzt,
  204. </if>
  205. <if test='null != hddxxjztGzms'>
  206. hddxxjzt_gzms,
  207. </if>
  208. <if test='null != jcdxzt'>
  209. jcdxzt,
  210. </if>
  211. <if test='null != jcdxztGzms'>
  212. jcdxzt_gzms,
  213. </if>
  214. <if test='null != dljxzt'>
  215. dljxzt,
  216. </if>
  217. <if test='null != dljxztGzms'>
  218. dljxzt_gzms,
  219. </if>
  220. <if test='null != sbzt'>
  221. sbzt,
  222. </if>
  223. <if test='null != checkUser'>
  224. check_user,
  225. </if>
  226. <if test='null != czwt'>
  227. czwt,
  228. </if>
  229. <if test='null != submitState'>
  230. submit_state,
  231. </if>
  232. <if test='null != createBy'>
  233. create_by,
  234. </if>
  235. <if test='null != createTime'>
  236. create_time,
  237. </if>
  238. <if test='null != updateBy'>
  239. update_by,
  240. </if>
  241. <if test='null != updateTime'>
  242. update_time,
  243. </if>
  244. <if test='null != userId'>
  245. user_id
  246. </if>
  247. </trim>
  248. <trim prefix="values (" suffix=")" suffixOverrides=",">
  249. <if test='null != stationId'>
  250. #{stationId},
  251. </if>
  252. <if test='null != pillarCode'>
  253. #{pillarCode},
  254. </if>
  255. <if test='null != xianchahao'>
  256. #{xianchahao},
  257. </if>
  258. <if test='null != temperature'>
  259. #{temperature},
  260. </if>
  261. <if test='null != checkDate'>
  262. #{checkDate},
  263. </if>
  264. <if test='null != gz1lcz'>
  265. #{gz1lcz},
  266. </if>
  267. <if test='null != gz2lcz'>
  268. #{gz2lcz},
  269. </if>
  270. <if test='null != zglcz'>
  271. #{zglcz},
  272. </if>
  273. <if test='null != qglcz'>
  274. #{qglcz},
  275. </if>
  276. <if test='null != ngj'>
  277. #{ngj},
  278. </if>
  279. <if test='null != plz'>
  280. #{plz},
  281. </if>
  282. <if test='null != xcxzgazlg'>
  283. #{xcxzgazlg},
  284. </if>
  285. <if test='null != xcxzgazlgGzms'>
  286. #{xcxzgazlgGzms},
  287. </if>
  288. <if test='null != hdjx'>
  289. #{hdjx},
  290. </if>
  291. <if test='null != hdjxGzms'>
  292. #{hdjxGzms},
  293. </if>
  294. <if test='null != fhzzsq'>
  295. #{fhzzsq},
  296. </if>
  297. <if test='null != fhzzsqGzms'>
  298. #{fhzzsqGzms},
  299. </if>
  300. <if test='null != dqssxx'>
  301. #{dqssxx},
  302. </if>
  303. <if test='null != dqssxxGzms'>
  304. #{dqssxxGzms},
  305. </if>
  306. <if test='null != lswst'>
  307. #{lswst},
  308. </if>
  309. <if test='null != lswstGzms'>
  310. #{lswstGzms},
  311. </if>
  312. <if test='null != xzgldydx'>
  313. #{xzgldydx},
  314. </if>
  315. <if test='null != xzgldydxGzms'>
  316. #{xzgldydxGzms},
  317. </if>
  318. <if test='null != dxztlh'>
  319. #{dxztlh},
  320. </if>
  321. <if test='null != dxztlhGzms'>
  322. #{dxztlhGzms},
  323. </if>
  324. <if test='null != czjj'>
  325. #{czjj},
  326. </if>
  327. <if test='null != lgzzgc'>
  328. #{lgzzgc},
  329. </if>
  330. <if test='null != gzyfzgc'>
  331. #{gzyfzgc},
  332. </if>
  333. <if test='null != wxj'>
  334. #{wxj},
  335. </if>
  336. <if test='null != wxjGzms'>
  337. #{wxjGzms},
  338. </if>
  339. <if test='null != hddxxjzt'>
  340. #{hddxxjzt},
  341. </if>
  342. <if test='null != hddxxjztGzms'>
  343. #{hddxxjztGzms},
  344. </if>
  345. <if test='null != jcdxzt'>
  346. #{jcdxzt},
  347. </if>
  348. <if test='null != jcdxztGzms'>
  349. #{jcdxztGzms},
  350. </if>
  351. <if test='null != dljxzt'>
  352. #{dljxzt},
  353. </if>
  354. <if test='null != dljxztGzms'>
  355. #{dljxztGzms},
  356. </if>
  357. <if test='null != sbzt'>
  358. #{sbzt},
  359. </if>
  360. <if test='null != checkUser'>
  361. #{checkUser},
  362. </if>
  363. <if test='null != czwt'>
  364. #{czwt},
  365. </if>
  366. <if test='null != submitState'>
  367. #{submitState},
  368. </if>
  369. <if test='null != createBy'>
  370. #{createBy},
  371. </if>
  372. <if test='null != createTime'>
  373. #{createTime},
  374. </if>
  375. <if test='null != updateBy'>
  376. #{updateBy},
  377. </if>
  378. <if test='null != updateTime'>
  379. #{updateTime},
  380. </if>
  381. <if test='null != userId'>
  382. #{userId}
  383. </if>
  384. </trim>
  385. </insert>
  386. <delete id="delete">
  387. UPDATE bus_jcb_jcxc
  388. set del_flag='1'
  389. WHERE id = #{id}
  390. </delete>
  391. <update id="update" parameterType="com.railway.business.catenary.domain.BusJcbJcxc">
  392. UPDATE bus_jcb_jcxc
  393. <set>
  394. <if test='null != stationId'>station_id = #{stationId},</if>
  395. <if test='null != pillarCode'>pillar_code = #{pillarCode},</if>
  396. <if test='null != xianchahao'>xianchahao = #{xianchahao},</if>
  397. <if test='null != temperature'>temperature = #{temperature},</if>
  398. <if test='null != checkDate'>check_date = #{checkDate},</if>
  399. <if test='null != gz1lcz'>gz1lcz = #{gz1lcz},</if>
  400. <if test='null != gz2lcz'>gz2lcz = #{gz2lcz},</if>
  401. <if test='null != zglcz'>zglcz = #{zglcz},</if>
  402. <if test='null != qglcz'>qglcz = #{qglcz},</if>
  403. <if test='null != ngj'>ngj = #{ngj},</if>
  404. <if test='null != plz'>plz = #{plz},</if>
  405. <if test='null != xcxzgazlg'>xcxzgazlg = #{xcxzgazlg},</if>
  406. <if test='null != xcxzgazlgGzms'>xcxzgazlg_gzms = #{xcxzgazlgGzms},</if>
  407. <if test='null != hdjx'>hdjx = #{hdjx},</if>
  408. <if test='null != hdjxGzms'>hdjx_gzms = #{hdjxGzms},</if>
  409. <if test='null != fhzzsq'>fhzzsq = #{fhzzsq},</if>
  410. <if test='null != fhzzsqGzms'>fhzzsq_gzms = #{fhzzsqGzms},</if>
  411. <if test='null != dqssxx'>dqssxx = #{dqssxx},</if>
  412. <if test='null != dqssxxGzms'>dqssxx_gzms = #{dqssxxGzms},</if>
  413. <if test='null != lswst'>lswst = #{lswst},</if>
  414. <if test='null != lswstGzms'>lswst_gzms = #{lswstGzms},</if>
  415. <if test='null != xzgldydx'>xzgldydx = #{xzgldydx},</if>
  416. <if test='null != xzgldydxGzms'>xzgldydx_gzms = #{xzgldydxGzms},</if>
  417. <if test='null != dxztlh'>dxztlh = #{dxztlh},</if>
  418. <if test='null != dxztlhGzms'>dxztlh_gzms = #{dxztlhGzms},</if>
  419. <if test='null != czjj'>czjj = #{czjj},</if>
  420. <if test='null != lgzzgc'>lgzzgc = #{lgzzgc},</if>
  421. <if test='null != gzyfzgc'>gzyfzgc = #{gzyfzgc},</if>
  422. <if test='null != wxj'>wxj = #{wxj},</if>
  423. <if test='null != wxjGzms'>wxj_gzms = #{wxjGzms},</if>
  424. <if test='null != hddxxjzt'>hddxxjzt = #{hddxxjzt},</if>
  425. <if test='null != hddxxjztGzms'>hddxxjzt_gzms = #{hddxxjztGzms},</if>
  426. <if test='null != jcdxzt'>jcdxzt = #{jcdxzt},</if>
  427. <if test='null != jcdxztGzms'>jcdxzt_gzms = #{jcdxztGzms},</if>
  428. <if test='null != dljxzt'>dljxzt = #{dljxzt},</if>
  429. <if test='null != dljxztGzms'>dljxzt_gzms = #{dljxztGzms},</if>
  430. <if test='null != sbzt'>sbzt = #{sbzt},</if>
  431. <if test='null != checkUser'>check_user = #{checkUser},</if>
  432. <if test='null != czwt'>czwt = #{czwt},</if>
  433. <if test='null != submitState'>submit_state = #{submitState},</if>
  434. <if test='null != updateBy'>update_by = #{updateBy},</if>
  435. <if test='null != updateTime'>update_time = #{updateTime},</if>
  436. <if test='null != userId'>user_id = #{userId}</if>
  437. </set>
  438. WHERE id = #{id}
  439. </update>
  440. <select id="getInfo" resultMap="BaseResultMap">
  441. SELECT
  442. <include refid="Base_Column_List"/>
  443. FROM bus_jcb_jcxc t
  444. LEFT JOIN v_station v on t.station_id = v.dept_station_id
  445. WHERE t.del_flag='0' and t.id = #{id}
  446. </select>
  447. <select id="getLastRecord" resultMap="BaseResultMap">
  448. SELECT
  449. a.GZ1LCZ, a.GZ2LCZ, a.ZGLCZ, a.QGLCZ, a.NGJ, a.PLZ, a.CZJJ, a.LGZZGC, a.GZYFZGC
  450. FROM bus_jcb_jcxc a,
  451. (
  452. select max(update_time) as lastTime
  453. from bus_jcb_jcxc
  454. WHERE user_id = #{user_id}
  455. and submit_state != '0'
  456. ) b
  457. WHERE a.update_time = b.lastTime
  458. </select>
  459. <select id="getList" resultMap="BaseResultMap">
  460. SELECT
  461. <include refid="Base_Column_List"/>
  462. FROM bus_jcb_jcxc t
  463. LEFT JOIN v_station v on t.station_id = v.dept_station_id
  464. <where>
  465. t.del_flag='0'
  466. <if test="stationId!=null and stationId!=''">
  467. and t.station_id=#{stationId}
  468. </if>
  469. <if test="pillarCode!=null and pillarCode!=''">
  470. and t.pillar_code=#{pillarCode}
  471. </if>
  472. <if test="xianchahao!=null and xianchahao!=''">
  473. and t.xianchahao=#{xianchahao}
  474. </if>
  475. <if test="temperature!=null and temperature!=''">
  476. and t.temperature=#{temperature}
  477. </if>
  478. <if test="checkDate!=null and checkDate!=''">
  479. and t.check_date=#{checkDate}
  480. </if>
  481. <if test="gz1lcz!=null and gz1lcz!=''">
  482. and t.gz1lcz=#{gz1lcz}
  483. </if>
  484. <if test="gz2lcz!=null and gz2lcz!=''">
  485. and t.gz2lcz=#{gz2lcz}
  486. </if>
  487. <if test="zglcz!=null and zglcz!=''">
  488. and t.zglcz=#{zglcz}
  489. </if>
  490. <if test="qglcz!=null and qglcz!=''">
  491. and t.qglcz=#{qglcz}
  492. </if>
  493. <if test="ngj!=null and ngj!=''">
  494. and t.ngj=#{ngj}
  495. </if>
  496. <if test="plz!=null and plz!=''">
  497. and t.plz=#{plz}
  498. </if>
  499. <if test="xcxzgazlg!=null and xcxzgazlg!=''">
  500. and t.xcxzgazlg=#{xcxzgazlg}
  501. </if>
  502. <if test="xcxzgazlgGzms!=null and xcxzgazlgGzms!=''">
  503. and t.xcxzgazlg_gzms=#{xcxzgazlgGzms}
  504. </if>
  505. <if test="hdjx!=null and hdjx!=''">
  506. and t.hdjx=#{hdjx}
  507. </if>
  508. <if test="hdjxGzms!=null and hdjxGzms!=''">
  509. and t.hdjx_gzms=#{hdjxGzms}
  510. </if>
  511. <if test="fhzzsq!=null and fhzzsq!=''">
  512. and t.fhzzsq=#{fhzzsq}
  513. </if>
  514. <if test="fhzzsqGzms!=null and fhzzsqGzms!=''">
  515. and t.fhzzsq_gzms=#{fhzzsqGzms}
  516. </if>
  517. <if test="dqssxx!=null and dqssxx!=''">
  518. and t.dqssxx=#{dqssxx}
  519. </if>
  520. <if test="dqssxxGzms!=null and dqssxxGzms!=''">
  521. and t.dqssxx_gzms=#{dqssxxGzms}
  522. </if>
  523. <if test="lswst!=null and lswst!=''">
  524. and t.lswst=#{lswst}
  525. </if>
  526. <if test="lswstGzms!=null and lswstGzms!=''">
  527. and t.lswst_gzms=#{lswstGzms}
  528. </if>
  529. <if test="xzgldydx!=null and xzgldydx!=''">
  530. and t.xzgldydx=#{xzgldydx}
  531. </if>
  532. <if test="xzgldydxGzms!=null and xzgldydxGzms!=''">
  533. and t.xzgldydx_gzms=#{xzgldydxGzms}
  534. </if>
  535. <if test="dxztlh!=null and dxztlh!=''">
  536. and t.dxztlh=#{dxztlh}
  537. </if>
  538. <if test="dxztlhGzms!=null and dxztlhGzms!=''">
  539. and t.dxztlh_gzms=#{dxztlhGzms}
  540. </if>
  541. <if test="czjj!=null and czjj!=''">
  542. and t.czjj=#{czjj}
  543. </if>
  544. <if test="lgzzgc!=null and lgzzgc!=''">
  545. and t.lgzzgc=#{lgzzgc}
  546. </if>
  547. <if test="gzyfzgc!=null and gzyfzgc!=''">
  548. and t.gzyfzgc=#{gzyfzgc}
  549. </if>
  550. <if test="wxj!=null and wxj!=''">
  551. and t.wxj=#{wxj}
  552. </if>
  553. <if test="wxjGzms!=null and wxjGzms!=''">
  554. and t.wxj_gzms=#{wxjGzms}
  555. </if>
  556. <if test="hddxxjzt!=null and hddxxjzt!=''">
  557. and t.hddxxjzt=#{hddxxjzt}
  558. </if>
  559. <if test="hddxxjztGzms!=null and hddxxjztGzms!=''">
  560. and t.hddxxjzt_gzms=#{hddxxjztGzms}
  561. </if>
  562. <if test="jcdxzt!=null and jcdxzt!=''">
  563. and t.jcdxzt=#{jcdxzt}
  564. </if>
  565. <if test="jcdxztGzms!=null and jcdxztGzms!=''">
  566. and t.jcdxzt_gzms=#{jcdxztGzms}
  567. </if>
  568. <if test="dljxzt!=null and dljxzt!=''">
  569. and t.dljxzt=#{dljxzt}
  570. </if>
  571. <if test="dljxztGzms!=null and dljxztGzms!=''">
  572. and t.dljxzt_gzms=#{dljxztGzms}
  573. </if>
  574. <if test="sbzt!=null and sbzt!=''">
  575. and t.sbzt=#{sbzt}
  576. </if>
  577. <if test="checkUser!=null and checkUser!=''">
  578. and t.check_user=#{checkUser}
  579. </if>
  580. <if test="czwt!=null and czwt!=''">
  581. and t.czwt=#{czwt}
  582. </if>
  583. <if test="submitState!=null and submitState!=''">
  584. and t.submit_state=#{submitState}
  585. </if>
  586. <if test="createBy!=null and createBy!=''">
  587. and t.create_by=#{createBy}
  588. </if>
  589. <if test="createTime!=null and createTime!=''">
  590. and t.create_time=#{createTime}
  591. </if>
  592. <if test="updateBy!=null and updateBy!=''">
  593. and t.update_by=#{updateBy}
  594. </if>
  595. <if test="updateTime!=null and updateTime!=''">
  596. and t.update_time=#{updateTime}
  597. </if>
  598. <if test="userId!=null and userId!=''">
  599. and t.user_id=#{userId}
  600. </if>
  601. </where>
  602. <if test="orderBy!=null and orderBy!=''">
  603. order by t.${orderBy}
  604. </if>
  605. <if test="isAsc!=null and isAsc!=''">
  606. <if test="isAsc == '1'.toString()">
  607. asc
  608. </if>
  609. <if test="isAsc == '0'.toString()">
  610. desc
  611. </if>
  612. </if>
  613. </select>
  614. </mapper>