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