BusJcbJcxcMapper.xml 18 KB

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