BusJcbBlqMapper.xml 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516
  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.BusJcbBlqMapper">
  5. <resultMap id="BaseResultMap" type="com.railway.business.catenary.domain.BusJcbBlq">
  6. <result column="id" property="id"/>
  7. <result column="blq_id" property="blqId"/>
  8. <result column="qj" property="qj"/>
  9. <result column="dept_id" property="deptId"/>
  10. <result column="zzh" property="zzh"/>
  11. <result column="wd" property="wd"/>
  12. <result column="jcrq" property="jcrq"/>
  13. <result column="pic_url" property="picUrl"/>
  14. <result column="tjwz_blqtjazsp" property="tjwzBlqtjazsp"/>
  15. <result column="tjwz_blqtjazsp_desc" property="tjwzBlqtjazspDesc"/>
  16. <result column="tjwz_wxs" property="tjwzWxs"/>
  17. <result column="tjwz_wxs_desc" property="tjwzWxsDesc"/>
  18. <result column="tjwz_gblsljjg" property="tjwzGblsljjg"/>
  19. <result column="tjwz_gblsljjg_desc" property="tjwzGblsljjgDesc"/>
  20. <result column="blqjyz_blqjzcjyzcszzt" property="blqjyzBlqjzcjyzcszzt"/>
  21. <result column="blqjyz_blqjzcjyzcszzt_desc" property="blqjyzBlqjzcjyzcszztDesc"/>
  22. <result column="blqjyz_bmqjazlg" property="blqjyzBmqjazlg"/>
  23. <result column="blqjyz_bmqjazlg_desc" property="blqjyzBmqjazlgDesc"/>
  24. <result column="blqjyz_wlhpsjfdhj" property="blqjyzWlhpsjfdhj"/>
  25. <result column="blqjyz_wlhpsjfdhj_desc" property="blqjyzWlhpsjfdhjDesc"/>
  26. <result column="blqyx_blqyxwssdg" property="blqyxBlqyxwssdg"/>
  27. <result column="blqyx_blqyxwssdg_desc" property="blqyxBlqyxwssdgDesc"/>
  28. <result column="blqyx_gycyxdjdtdtzxjl" property="blqyxGycyxdjdtdtzxjl"/>
  29. <result column="tlq_ztlhwpslh" property="tlqZtlhwpslh"/>
  30. <result column="tlq_ztlhwpslh_desc" property="tlqZtlhwpslhDesc"/>
  31. <result column="jsq_dzjs" property="jsqDzjs"/>
  32. <result column="blqjdzt_jddz" property="blqjdztJddz"/>
  33. <result column="sbzt" property="sbzt"/>
  34. <result column="sbzt_desc" property="sbztDesc"/>
  35. <result column="jcr" property="jcr"/>
  36. <result column="czwt" property="czwt"/>
  37. <result column="create_by" property="createBy"/>
  38. <result column="create_time" property="createTime"/>
  39. <result column="update_by" property="updateBy"/>
  40. <result column="update_time" property="updateTime"/>
  41. <result column="submit_state" property="submitState"/>
  42. <result column="del_flag" property="delFlag"/>
  43. </resultMap>
  44. <sql id="Base_Column_List">
  45. id,
  46. blq_id,
  47. qj,
  48. dept_id,
  49. zzh,
  50. wd,
  51. jcrq,
  52. pic_url,
  53. tjwz_blqtjazsp,
  54. tjwz_blqtjazsp_desc,
  55. tjwz_wxs,
  56. tjwz_wxs_desc,
  57. tjwz_gblsljjg,
  58. tjwz_gblsljjg_desc,
  59. blqjyz_blqjzcjyzcszzt,
  60. blqjyz_blqjzcjyzcszzt_desc,
  61. blqjyz_bmqjazlg,
  62. blqjyz_bmqjazlg_desc,
  63. blqjyz_wlhpsjfdhj,
  64. blqjyz_wlhpsjfdhj_desc,
  65. blqyx_blqyxwssdg,
  66. blqyx_blqyxwssdg_desc,
  67. blqyx_gycyxdjdtdtzxjl,
  68. tlq_ztlhwpslh,
  69. tlq_ztlhwpslh_desc,
  70. jsq_dzjs,
  71. blqjdzt_jddz,
  72. sbzt,
  73. sbzt_desc,
  74. jcr,
  75. czwt,
  76. create_by,
  77. create_time,
  78. update_by,
  79. update_time,
  80. submit_state,
  81. del_flag
  82. </sql>
  83. <insert id="insert" parameterType="com.railway.business.catenary.domain.BusJcbBlq">
  84. <selectKey keyProperty="id" order="BEFORE" resultType="String">
  85. select replace(uuid(), '-', '') from dual
  86. </selectKey>
  87. INSERT INTO bus_jcb_blq
  88. <trim prefix="(" suffix=")" suffixOverrides=",">
  89. <if test ='null != blqId'>
  90. blq_id,
  91. </if>
  92. <if test ='null != qj'>
  93. qj,
  94. </if>
  95. <if test ='null != deptId'>
  96. dept_id,
  97. </if>
  98. <if test ='null != zzh'>
  99. zzh,
  100. </if>
  101. <if test ='null != wd'>
  102. wd,
  103. </if>
  104. <if test ='null != jcrq'>
  105. jcrq,
  106. </if>
  107. <if test ='null != picUrl'>
  108. pic_url,
  109. </if>
  110. <if test ='null != tjwzBlqtjazsp'>
  111. tjwz_blqtjazsp,
  112. </if>
  113. <if test ='null != tjwzBlqtjazspDesc'>
  114. tjwz_blqtjazsp_desc,
  115. </if>
  116. <if test ='null != tjwzWxs'>
  117. tjwz_wxs,
  118. </if>
  119. <if test ='null != tjwzWxsDesc'>
  120. tjwz_wxs_desc,
  121. </if>
  122. <if test ='null != tjwzGblsljjg'>
  123. tjwz_gblsljjg,
  124. </if>
  125. <if test ='null != tjwzGblsljjgDesc'>
  126. tjwz_gblsljjg_desc,
  127. </if>
  128. <if test ='null != blqjyzBlqjzcjyzcszzt'>
  129. blqjyz_blqjzcjyzcszzt,
  130. </if>
  131. <if test ='null != blqjyzBlqjzcjyzcszztDesc'>
  132. blqjyz_blqjzcjyzcszzt_desc,
  133. </if>
  134. <if test ='null != blqjyzBmqjazlg'>
  135. blqjyz_bmqjazlg,
  136. </if>
  137. <if test ='null != blqjyzBmqjazlgDesc'>
  138. blqjyz_bmqjazlg_desc,
  139. </if>
  140. <if test ='null != blqjyzWlhpsjfdhj'>
  141. blqjyz_wlhpsjfdhj,
  142. </if>
  143. <if test ='null != blqjyzWlhpsjfdhjDesc'>
  144. blqjyz_wlhpsjfdhj_desc,
  145. </if>
  146. <if test ='null != blqyxBlqyxwssdg'>
  147. blqyx_blqyxwssdg,
  148. </if>
  149. <if test ='null != blqyxBlqyxwssdgDesc'>
  150. blqyx_blqyxwssdg_desc,
  151. </if>
  152. <if test ='null != blqyxGycyxdjdtdtzxjl'>
  153. blqyx_gycyxdjdtdtzxjl,
  154. </if>
  155. <if test ='null != tlqZtlhwpslh'>
  156. tlq_ztlhwpslh,
  157. </if>
  158. <if test ='null != tlqZtlhwpslhDesc'>
  159. tlq_ztlhwpslh_desc,
  160. </if>
  161. <if test ='null != jsqDzjs'>
  162. jsq_dzjs,
  163. </if>
  164. <if test ='null != blqjdztJddz'>
  165. blqjdzt_jddz,
  166. </if>
  167. <if test ='null != sbzt'>
  168. sbzt,
  169. </if>
  170. <if test ='null != sbztDesc'>
  171. sbzt_desc,
  172. </if>
  173. <if test ='null != jcr'>
  174. jcr,
  175. </if>
  176. <if test ='null != czwt'>
  177. czwt,
  178. </if>
  179. <if test ='null != createBy'>
  180. create_by,
  181. </if>
  182. <if test ='null != createTime'>
  183. create_time,
  184. </if>
  185. <if test ='null != updateBy'>
  186. update_by,
  187. </if>
  188. <if test ='null != updateTime'>
  189. update_time,
  190. </if>
  191. <if test ='null != submitState'>
  192. submit_state,
  193. </if>
  194. <if test ='null != delFlag'>
  195. del_flag
  196. </if>
  197. </trim>
  198. <trim prefix="values (" suffix=")" suffixOverrides=",">
  199. <if test ='null != blqId'>
  200. #{blqId},
  201. </if>
  202. <if test ='null != qj'>
  203. #{qj},
  204. </if>
  205. <if test ='null != deptId'>
  206. #{deptId},
  207. </if>
  208. <if test ='null != zzh'>
  209. #{zzh},
  210. </if>
  211. <if test ='null != wd'>
  212. #{wd},
  213. </if>
  214. <if test ='null != jcrq'>
  215. #{jcrq},
  216. </if>
  217. <if test ='null != picUrl'>
  218. #{picUrl},
  219. </if>
  220. <if test ='null != tjwzBlqtjazsp'>
  221. #{tjwzBlqtjazsp},
  222. </if>
  223. <if test ='null != tjwzBlqtjazspDesc'>
  224. #{tjwzBlqtjazspDesc},
  225. </if>
  226. <if test ='null != tjwzWxs'>
  227. #{tjwzWxs},
  228. </if>
  229. <if test ='null != tjwzWxsDesc'>
  230. #{tjwzWxsDesc},
  231. </if>
  232. <if test ='null != tjwzGblsljjg'>
  233. #{tjwzGblsljjg},
  234. </if>
  235. <if test ='null != tjwzGblsljjgDesc'>
  236. #{tjwzGblsljjgDesc},
  237. </if>
  238. <if test ='null != blqjyzBlqjzcjyzcszzt'>
  239. #{blqjyzBlqjzcjyzcszzt},
  240. </if>
  241. <if test ='null != blqjyzBlqjzcjyzcszztDesc'>
  242. #{blqjyzBlqjzcjyzcszztDesc},
  243. </if>
  244. <if test ='null != blqjyzBmqjazlg'>
  245. #{blqjyzBmqjazlg},
  246. </if>
  247. <if test ='null != blqjyzBmqjazlgDesc'>
  248. #{blqjyzBmqjazlgDesc},
  249. </if>
  250. <if test ='null != blqjyzWlhpsjfdhj'>
  251. #{blqjyzWlhpsjfdhj},
  252. </if>
  253. <if test ='null != blqjyzWlhpsjfdhjDesc'>
  254. #{blqjyzWlhpsjfdhjDesc},
  255. </if>
  256. <if test ='null != blqyxBlqyxwssdg'>
  257. #{blqyxBlqyxwssdg},
  258. </if>
  259. <if test ='null != blqyxBlqyxwssdgDesc'>
  260. #{blqyxBlqyxwssdgDesc},
  261. </if>
  262. <if test ='null != blqyxGycyxdjdtdtzxjl'>
  263. #{blqyxGycyxdjdtdtzxjl},
  264. </if>
  265. <if test ='null != tlqZtlhwpslh'>
  266. #{tlqZtlhwpslh},
  267. </if>
  268. <if test ='null != tlqZtlhwpslhDesc'>
  269. #{tlqZtlhwpslhDesc},
  270. </if>
  271. <if test ='null != jsqDzjs'>
  272. #{jsqDzjs},
  273. </if>
  274. <if test ='null != blqjdztJddz'>
  275. #{blqjdztJddz},
  276. </if>
  277. <if test ='null != sbzt'>
  278. #{sbzt},
  279. </if>
  280. <if test ='null != sbztDesc'>
  281. #{sbztDesc},
  282. </if>
  283. <if test ='null != jcr'>
  284. #{jcr},
  285. </if>
  286. <if test ='null != czwt'>
  287. #{czwt},
  288. </if>
  289. <if test ='null != createBy'>
  290. #{createBy},
  291. </if>
  292. <if test ='null != createTime'>
  293. #{createTime},
  294. </if>
  295. <if test ='null != updateBy'>
  296. #{updateBy},
  297. </if>
  298. <if test ='null != updateTime'>
  299. #{updateTime},
  300. </if>
  301. <if test ='null != submitState'>
  302. #{submitState},
  303. </if>
  304. <if test ='null != delFlag'>
  305. #{delFlag}
  306. </if>
  307. </trim>
  308. </insert>
  309. <delete id="delete">
  310. UPDATE bus_jcb_blq
  311. set del_flag='1'
  312. WHERE id = #{id}
  313. </delete>
  314. <update id="update" parameterType="com.railway.business.catenary.domain.BusJcbBlq">
  315. UPDATE bus_jcb_blq
  316. <set>
  317. <if test ='null != blqId'>blq_id = #{blqId},</if>
  318. <if test ='null != qj'>qj = #{qj},</if>
  319. <if test ='null != deptId'>dept_id = #{deptId},</if>
  320. <if test ='null != zzh'>zzh = #{zzh},</if>
  321. <if test ='null != wd'>wd = #{wd},</if>
  322. <if test ='null != jcrq'>jcrq = #{jcrq},</if>
  323. <if test ='null != picUrl'>pic_url = #{picUrl},</if>
  324. <if test ='null != tjwzBlqtjazsp'>tjwz_blqtjazsp = #{tjwzBlqtjazsp},</if>
  325. <if test ='null != tjwzBlqtjazspDesc'>tjwz_blqtjazsp_desc = #{tjwzBlqtjazspDesc},</if>
  326. <if test ='null != tjwzWxs'>tjwz_wxs = #{tjwzWxs},</if>
  327. <if test ='null != tjwzWxsDesc'>tjwz_wxs_desc = #{tjwzWxsDesc},</if>
  328. <if test ='null != tjwzGblsljjg'>tjwz_gblsljjg = #{tjwzGblsljjg},</if>
  329. <if test ='null != tjwzGblsljjgDesc'>tjwz_gblsljjg_desc = #{tjwzGblsljjgDesc},</if>
  330. <if test ='null != blqjyzBlqjzcjyzcszzt'>blqjyz_blqjzcjyzcszzt = #{blqjyzBlqjzcjyzcszzt},</if>
  331. <if test ='null != blqjyzBlqjzcjyzcszztDesc'>blqjyz_blqjzcjyzcszzt_desc = #{blqjyzBlqjzcjyzcszztDesc},</if>
  332. <if test ='null != blqjyzBmqjazlg'>blqjyz_bmqjazlg = #{blqjyzBmqjazlg},</if>
  333. <if test ='null != blqjyzBmqjazlgDesc'>blqjyz_bmqjazlg_desc = #{blqjyzBmqjazlgDesc},</if>
  334. <if test ='null != blqjyzWlhpsjfdhj'>blqjyz_wlhpsjfdhj = #{blqjyzWlhpsjfdhj},</if>
  335. <if test ='null != blqjyzWlhpsjfdhjDesc'>blqjyz_wlhpsjfdhj_desc = #{blqjyzWlhpsjfdhjDesc},</if>
  336. <if test ='null != blqyxBlqyxwssdg'>blqyx_blqyxwssdg = #{blqyxBlqyxwssdg},</if>
  337. <if test ='null != blqyxBlqyxwssdgDesc'>blqyx_blqyxwssdg_desc = #{blqyxBlqyxwssdgDesc},</if>
  338. <if test ='null != blqyxGycyxdjdtdtzxjl'>blqyx_gycyxdjdtdtzxjl = #{blqyxGycyxdjdtdtzxjl},</if>
  339. <if test ='null != tlqZtlhwpslh'>tlq_ztlhwpslh = #{tlqZtlhwpslh},</if>
  340. <if test ='null != tlqZtlhwpslhDesc'>tlq_ztlhwpslh_desc = #{tlqZtlhwpslhDesc},</if>
  341. <if test ='null != jsqDzjs'>jsq_dzjs = #{jsqDzjs},</if>
  342. <if test ='null != blqjdztJddz'>blqjdzt_jddz = #{blqjdztJddz},</if>
  343. <if test ='null != sbzt'>sbzt = #{sbzt},</if>
  344. <if test ='null != sbztDesc'>sbzt_desc = #{sbztDesc},</if>
  345. <if test ='null != jcr'>jcr = #{jcr},</if>
  346. <if test ='null != czwt'>czwt = #{czwt},</if>
  347. <if test ='null != createBy'>create_by = #{createBy},</if>
  348. <if test ='null != createTime'>create_time = #{createTime},</if>
  349. <if test ='null != updateBy'>update_by = #{updateBy},</if>
  350. <if test ='null != updateTime'>update_time = #{updateTime},</if>
  351. <if test ='null != submitState'>submit_state = #{submitState},</if>
  352. <if test ='null != delFlag'>del_flag = #{delFlag}</if>
  353. </set>
  354. WHERE id = #{id}
  355. </update>
  356. <select id="getInfo" resultMap="BaseResultMap">
  357. SELECT
  358. <include refid="Base_Column_List"/>
  359. FROM bus_jcb_blq
  360. WHERE del_flag='0' and id = #{id}
  361. </select>
  362. <select id="getList" resultMap="BaseResultMap">
  363. SELECT
  364. <include refid="Base_Column_List"/>
  365. FROM bus_jcb_blq
  366. <where>
  367. del_flag='0'
  368. <if test="blqId!=null and blqId!=''">
  369. and blq_id=#{blqId}
  370. </if>
  371. <if test="qj!=null and qj!=''">
  372. and qj=#{qj}
  373. </if>
  374. <if test="deptId!=null and deptId!=''">
  375. and dept_id=#{deptId}
  376. </if>
  377. <if test="zzh!=null and zzh!=''">
  378. and zzh=#{zzh}
  379. </if>
  380. <if test="wd!=null and wd!=''">
  381. and wd=#{wd}
  382. </if>
  383. <if test="jcrq!=null and jcrq!=''">
  384. and jcrq=#{jcrq}
  385. </if>
  386. <if test="picUrl!=null and picUrl!=''">
  387. and pic_url=#{picUrl}
  388. </if>
  389. <if test="tjwzBlqtjazsp!=null and tjwzBlqtjazsp!=''">
  390. and tjwz_blqtjazsp=#{tjwzBlqtjazsp}
  391. </if>
  392. <if test="tjwzBlqtjazspDesc!=null and tjwzBlqtjazspDesc!=''">
  393. and tjwz_blqtjazsp_desc=#{tjwzBlqtjazspDesc}
  394. </if>
  395. <if test="tjwzWxs!=null and tjwzWxs!=''">
  396. and tjwz_wxs=#{tjwzWxs}
  397. </if>
  398. <if test="tjwzWxsDesc!=null and tjwzWxsDesc!=''">
  399. and tjwz_wxs_desc=#{tjwzWxsDesc}
  400. </if>
  401. <if test="tjwzGblsljjg!=null and tjwzGblsljjg!=''">
  402. and tjwz_gblsljjg=#{tjwzGblsljjg}
  403. </if>
  404. <if test="tjwzGblsljjgDesc!=null and tjwzGblsljjgDesc!=''">
  405. and tjwz_gblsljjg_desc=#{tjwzGblsljjgDesc}
  406. </if>
  407. <if test="blqjyzBlqjzcjyzcszzt!=null and blqjyzBlqjzcjyzcszzt!=''">
  408. and blqjyz_blqjzcjyzcszzt=#{blqjyzBlqjzcjyzcszzt}
  409. </if>
  410. <if test="blqjyzBlqjzcjyzcszztDesc!=null and blqjyzBlqjzcjyzcszztDesc!=''">
  411. and blqjyz_blqjzcjyzcszzt_desc=#{blqjyzBlqjzcjyzcszztDesc}
  412. </if>
  413. <if test="blqjyzBmqjazlg!=null and blqjyzBmqjazlg!=''">
  414. and blqjyz_bmqjazlg=#{blqjyzBmqjazlg}
  415. </if>
  416. <if test="blqjyzBmqjazlgDesc!=null and blqjyzBmqjazlgDesc!=''">
  417. and blqjyz_bmqjazlg_desc=#{blqjyzBmqjazlgDesc}
  418. </if>
  419. <if test="blqjyzWlhpsjfdhj!=null and blqjyzWlhpsjfdhj!=''">
  420. and blqjyz_wlhpsjfdhj=#{blqjyzWlhpsjfdhj}
  421. </if>
  422. <if test="blqjyzWlhpsjfdhjDesc!=null and blqjyzWlhpsjfdhjDesc!=''">
  423. and blqjyz_wlhpsjfdhj_desc=#{blqjyzWlhpsjfdhjDesc}
  424. </if>
  425. <if test="blqyxBlqyxwssdg!=null and blqyxBlqyxwssdg!=''">
  426. and blqyx_blqyxwssdg=#{blqyxBlqyxwssdg}
  427. </if>
  428. <if test="blqyxBlqyxwssdgDesc!=null and blqyxBlqyxwssdgDesc!=''">
  429. and blqyx_blqyxwssdg_desc=#{blqyxBlqyxwssdgDesc}
  430. </if>
  431. <if test="blqyxGycyxdjdtdtzxjl!=null and blqyxGycyxdjdtdtzxjl!=''">
  432. and blqyx_gycyxdjdtdtzxjl=#{blqyxGycyxdjdtdtzxjl}
  433. </if>
  434. <if test="tlqZtlhwpslh!=null and tlqZtlhwpslh!=''">
  435. and tlq_ztlhwpslh=#{tlqZtlhwpslh}
  436. </if>
  437. <if test="tlqZtlhwpslhDesc!=null and tlqZtlhwpslhDesc!=''">
  438. and tlq_ztlhwpslh_desc=#{tlqZtlhwpslhDesc}
  439. </if>
  440. <if test="jsqDzjs!=null and jsqDzjs!=''">
  441. and jsq_dzjs=#{jsqDzjs}
  442. </if>
  443. <if test="blqjdztJddz!=null and blqjdztJddz!=''">
  444. and blqjdzt_jddz=#{blqjdztJddz}
  445. </if>
  446. <if test="sbzt!=null and sbzt!=''">
  447. and sbzt=#{sbzt}
  448. </if>
  449. <if test="sbztDesc!=null and sbztDesc!=''">
  450. and sbzt_desc=#{sbztDesc}
  451. </if>
  452. <if test="jcr!=null and jcr!=''">
  453. and jcr=#{jcr}
  454. </if>
  455. <if test="czwt!=null and czwt!=''">
  456. and czwt=#{czwt}
  457. </if>
  458. <if test="createBy!=null and createBy!=''">
  459. and create_by=#{createBy}
  460. </if>
  461. <if test="createTime!=null and createTime!=''">
  462. and create_time=#{createTime}
  463. </if>
  464. <if test="updateBy!=null and updateBy!=''">
  465. and update_by=#{updateBy}
  466. </if>
  467. <if test="updateTime!=null and updateTime!=''">
  468. and update_time=#{updateTime}
  469. </if>
  470. <if test="submitState!=null and submitState!=''">
  471. and submit_state=#{submitState}
  472. </if>
  473. <if test="delFlag!=null and delFlag!=''">
  474. and del_flag=#{delFlag}
  475. </if>
  476. </where>
  477. </select>
  478. <select id="getLastOne" resultMap="BaseResultMap">
  479. SELECT
  480. <include refid="Base_Column_List"/>
  481. FROM
  482. bus_jcb_blq
  483. WHERE
  484. submit_state = '1'and del_flag = '0'
  485. <if test="qj!=null and qj!=''">
  486. and qj=#{qj}
  487. </if>
  488. <if test="deptId!=null and deptId!=''">
  489. and dept_id=#{deptId}
  490. </if>
  491. <if test="zzh!=null and zzh!=''">
  492. and zzh=#{zzh}
  493. </if>
  494. <if test="fdh!=null and fdh!=''">
  495. and fdh=#{fdh}
  496. </if>
  497. <if test="blqId!=null and blqId!=''">
  498. and blq_id=#{blqId}
  499. </if>
  500. ORDER BY
  501. update_time DESC
  502. LIMIT 1
  503. </select>
  504. </mapper>