SbInfoMapper.xml 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.platform.dao.mapper.sb.SbInfoMapper">
  4. <sql id="Base_Column_List">
  5. id, no,
  6. financing_no,
  7. sb.financing_no_two,
  8. sb.financing_no_third,
  9. sb.financing_no_four,
  10. sb.financing_no_five,
  11. name, model_id,
  12. is_child,
  13. is_show,
  14. is_financing,
  15. type_id, level, initial_value, current_value, cut_value,
  16. producer_id, source_type, source_sb_id, parent_id, unit, position_id,
  17. use_area,
  18. check_id,
  19. rate,
  20. month,
  21. used_month,
  22. card_no,
  23. use_company,
  24. use_project,
  25. use_dept,
  26. use_group,
  27. use_user,
  28. save_dept,
  29. save_user,
  30. repair_user,
  31. buy_date, start_date, next_check_date, guarantee_date, work_year, retirement_date,
  32. depreciation_type, wb_file, use_file, check_file, sb_image, qr_code, status, remark,
  33. created_user_id, update_user_id, created_time, update_time,
  34. zzh,
  35. fdjxh,
  36. fdjh,
  37. cph,
  38. dph,
  39. zz,
  40. zaiz,
  41. last_repaire_time,
  42. repaire_times,
  43. last_baoyang_time,
  44. last_baoyang_hours,
  45. last_baoyang_miles,
  46. baoyang_times,
  47. rl_type,
  48. color,
  49. use_type,
  50. seat_number,
  51. zjm,
  52. sp_date,
  53. jbdh,
  54. sbdh,
  55. jbd_date,
  56. sbd_date,
  57. bxgs,
  58. sb_date,
  59. check_date,
  60. check_period,
  61. register_no,
  62. character_type,
  63. used_no,
  64. supplier,
  65. repair_user_second,
  66. batch_no,
  67. register_date,
  68. zbh,
  69. refuse_reason,
  70. apply_time,
  71. audit_time,
  72. submit_time,
  73. process_instance_id,
  74. audit_node,
  75. remark,
  76. apply_comment,
  77. scrap_user_id,
  78. scrap_user_name
  79. </sql>
  80. <sql id="Left_Column">
  81. sb.id, sb.no,
  82. sb.financing_no_two,
  83. sb.financing_no_third,
  84. sb.financing_no_four,
  85. sb.financing_no_five,
  86. sb.financing_no,
  87. sb.name, sb.initial_value,
  88. sb.current_value, sb.cut_value,
  89. sb.is_child,
  90. sb.is_financing,
  91. sb.parent_id,
  92. sb.is_show,
  93. sb.unit, sb.position_id,
  94. sb.use_area,
  95. sb.rate,
  96. sb.month,
  97. sb.used_month,
  98. sb.card_no,
  99. sb.check_id,
  100. sb.use_company,
  101. sb.use_project,
  102. sb.use_dept,
  103. sb.use_group,
  104. sb.use_user,
  105. sb.save_dept,
  106. sb.save_user,
  107. sb.repair_user,
  108. sb.buy_date, sb.start_date, sb.next_check_date, sb.guarantee_date, sb.work_year,
  109. sb.retirement_date,
  110. sb.depreciation_type, sb.wb_file, sb.use_file, sb.check_file, sb.sb_image, sb.qr_code, sb.status, sb.remark,
  111. sb.created_user_id, sb.update_user_id, sb.created_time, sb.update_time,
  112. sb.model_id,
  113. sb.zzh,
  114. sb.fdjxh,
  115. sb.fdjh,
  116. sb.cph,
  117. sb.dph,
  118. sb.zz,
  119. sb.zaiz,
  120. sb.last_repaire_time,
  121. sb.repaire_times,
  122. sb.last_baoyang_time,
  123. sb.last_baoyang_hours,
  124. sb.last_baoyang_miles,
  125. sb.use_type,
  126. sb.baoyang_times,
  127. sb.rl_type,
  128. sb.color,
  129. sb.seat_number,
  130. sb.zjm,
  131. sb.sp_date,
  132. sb.jbdh,
  133. sb.sbdh,
  134. sb.total_hours,
  135. sb.total_miles,
  136. sb.jbd_date,
  137. sb.sbd_date,
  138. sb.bxgs,
  139. sb.sb_date,
  140. sb.type_id as typeId,
  141. sb.name_model as nameModel,
  142. sb.model,
  143. sb.producer_id as producerId,
  144. sb.level,
  145. sb.unit,
  146. sb.use_type as useType,
  147. sbType.name as typeName,producer.name as producerName,
  148. position.name as positionName,
  149. sb.check_date,
  150. sb.check_period,
  151. sb.register_no,
  152. sb.character_type,
  153. sb.used_no,
  154. sb.zbh,
  155. sb.supplier,
  156. sb.repair_user_second,
  157. sb.batch_no,
  158. sb.register_date,
  159. sb.refuse_reason,
  160. sb.apply_time,
  161. sb.audit_time,
  162. sb.submit_time,
  163. sb.process_instance_id,
  164. sb.audit_node,
  165. sb.remark,
  166. sb.apply_comment,
  167. sb.scrap_user_id,
  168. sb.scrap_user_name,
  169. user.real_name as saveUserName
  170. </sql>
  171. <sql id="deptSql">
  172. <if test="saveDept != null and saveDept != ''">
  173. and sb.save_dept = #{saveDept}
  174. </if>
  175. </sql>
  176. <select id="selectVOList" parameterType="com.platform.dao.dto.sb.SbInfoDTO"
  177. resultType="com.platform.dao.vo.sb.SbInfoVO">
  178. select
  179. <include refid="Left_Column"/>
  180. from t_sb_info sb
  181. left join t_sb_type sbType on sb.type_id = sbType.id
  182. left join t_firm_producer producer on sb.producer_id = producer.id
  183. left join t_sb_position position on sb.position_id = position.id
  184. left join t_sys_user user on sb.save_user = user.user_id
  185. left join t_sys_dept sdDept on sb.save_dept = sdDept.dept_id
  186. where
  187. 1 = 1
  188. <if test="keyword != null and keyword != ''">
  189. and (
  190. sb.name like concat('%',#{keyword},'%')
  191. or
  192. sb.no like concat('%',#{keyword},'%')
  193. )
  194. </if>
  195. <if test="zbh != null and zbh!=''">
  196. and sb.zbh like concat('%',#{zbh},'%')
  197. </if>
  198. <if test="likeDeptCode != null and likeDeptCode!=''">
  199. and sdDept.dept_code like concat(#{likeDeptCode},'%')
  200. </if>
  201. <if test="financingNo != null and financingNo!=''">
  202. and sb.financing_no like concat(#{financingNo},'%')
  203. </if>
  204. <if test="positionIds != null">
  205. AND sb.position_id in
  206. <foreach item="item" index="index" collection="positionIds" open="(" close=")" separator=",">
  207. #{item}
  208. </foreach>
  209. </if>
  210. <if test="useType != null">
  211. and sb.use_type = #{useType}
  212. </if>
  213. <if test="id != null">
  214. and sb.id = #{id}
  215. </if>
  216. <if test="checkId != null">
  217. and sb.check_id = #{checkId}
  218. </if>
  219. <if test="isChild != null">
  220. and sb.is_child = #{isChild}
  221. </if>
  222. <if test="isShow != null">
  223. and sb.is_show = #{isShow}
  224. </if>
  225. <if test="isFinancing != null">
  226. and sb.is_financing = #{isFinancing}
  227. </if>
  228. <if test="useArea != null">
  229. and sb.use_area = #{useArea}
  230. </if>
  231. <if test="useCompany != null">
  232. and sb.use_company = #{useCompany}
  233. </if>
  234. <if test="useProject != null">
  235. and sb.use_project = #{useProject}
  236. </if>
  237. <if test="typeId != null">
  238. and sb.type_id = #{typeId}
  239. </if>
  240. <if test="parentId != null">
  241. and sb.parent_id = #{parentId}
  242. </if>
  243. <if test="model != null">
  244. and sb.model like concat('%',#{model},'%')
  245. </if>
  246. <if test="useDept != null">
  247. and sb.use_dept = #{useDept}
  248. </if>
  249. <if test="useGroup != null">
  250. and sb.use_group = #{useGroup}
  251. </if>
  252. <if test="saveDept != null">
  253. and sb.save_dept = #{saveDept}
  254. </if>
  255. <if test="saveUser != null">
  256. and sb.save_user = #{saveUser}
  257. </if>
  258. <if test="nextCheckDateStart != null">
  259. and sb.next_check_date <![CDATA[ >= ]]> #{nextCheckDateStart}
  260. </if>
  261. <if test="nextCheckDateEnd != null">
  262. and sb.next_check_date <![CDATA[ <= ]]> #{nextCheckDateEnd}
  263. </if>
  264. <if test="status != null">
  265. and sb.status = #{status}
  266. </if>
  267. <if test="modelId != null">
  268. and sb.model_id = #{modelId}
  269. </if>
  270. <if test="notStatusList != null and notStatusList.size > 0">
  271. AND sb.status not in
  272. <foreach item="item" index="index" collection="notStatusList" open="(" close=")" separator=",">
  273. #{item}
  274. </foreach>
  275. </if>
  276. <if test="statusList != null and statusList.size > 0">
  277. AND sb.status in
  278. <foreach item="item" index="index" collection="statusList" open="(" close=")" separator=",">
  279. #{item}
  280. </foreach>
  281. </if>
  282. <if test="sbIds != null and sbIds.size > 0">
  283. AND sb.id in
  284. <foreach item="item" index="index" collection="sbIds" open="(" close=")" separator=",">
  285. #{item}
  286. </foreach>
  287. </if>
  288. <if test="ascriptionDept != null and ascriptionDept">
  289. <include refid="deptSql"/>
  290. </if>
  291. </select>
  292. <select id="selectVOListStandard" parameterType="com.platform.dao.dto.sb.SbInfoDTO"
  293. resultType="com.platform.dao.vo.sb.SbInfoVO">
  294. SELECT
  295. sb.id,
  296. sb.no,
  297. sbType.name as typeName,
  298. sb.NAME,
  299. sb.zbh,
  300. sb.status,
  301. sb.use_type,
  302. sb.type_id,
  303. count( standard.id ) as standardNum
  304. FROM
  305. t_sb_info sb
  306. LEFT JOIN t_check_standard standard ON sb.id = standard.sb_id
  307. left join t_sb_type sbType on sb.type_id = sbType.id
  308. where
  309. 1 = 1
  310. <if test="keyword != null and keyword != ''">
  311. and (
  312. sb.name like concat('%',#{keyword},'%')
  313. or
  314. sb.no like concat('%',#{keyword},'%')
  315. )
  316. </if>
  317. <if test="zbh != null and zbh!=''">
  318. and sb.zbh like concat('%',#{zbh},'%')
  319. </if>
  320. <if test="useType != null">
  321. and sb.use_type = #{useType}
  322. </if>
  323. <if test="id != null">
  324. and sb.id = #{id}
  325. </if>
  326. <if test="checkId != null">
  327. and sb.check_id = #{checkId}
  328. </if>
  329. <if test="isChild != null">
  330. and sb.is_child = #{isChild}
  331. </if>
  332. <if test="isFinancing != null">
  333. and sb.is_financing = #{isFinancing}
  334. </if>
  335. <if test="isShow != null">
  336. and sb.is_show = #{isShow}
  337. </if>
  338. <if test="useArea != null">
  339. and sb.use_area = #{useArea}
  340. </if>
  341. <if test="useCompany != null">
  342. and sb.use_company = #{useCompany}
  343. </if>
  344. <if test="useProject != null">
  345. and sb.use_project = #{useProject}
  346. </if>
  347. <if test="typeId != null">
  348. and sb.type_id = #{typeId}
  349. </if>
  350. <if test="parentId != null">
  351. and sb.parent_id = #{parentId}
  352. </if>
  353. <if test="model != null">
  354. and sb.model like concat('%',#{model},'%')
  355. </if>
  356. <if test="useDept != null">
  357. and sb.use_dept = #{useDept}
  358. </if>
  359. <if test="useGroup != null">
  360. and sb.use_group = #{useGroup}
  361. </if>
  362. <if test="saveDept != null">
  363. and sb.save_dept = #{saveDept}
  364. </if>
  365. <if test="saveUser != null">
  366. and sb.save_user = #{saveUser}
  367. </if>
  368. <if test="nextCheckDateStart != null">
  369. and sb.next_check_date <![CDATA[ >= ]]> #{nextCheckDateStart}
  370. </if>
  371. <if test="nextCheckDateEnd != null">
  372. and sb.next_check_date <![CDATA[ <= ]]> #{nextCheckDateEnd}
  373. </if>
  374. <if test="status != null">
  375. and sb.status = #{status}
  376. </if>
  377. <if test="modelId != null">
  378. and sb.model_id = #{modelId}
  379. </if>
  380. group by sb.id
  381. </select>
  382. <select id="selectScreenDetailVOList"
  383. parameterType="com.platform.dao.dto.sb.SbInfoDTO"
  384. resultType="com.platform.dao.vo.sb.SbInfoScreenDetailVO">
  385. select
  386. sb.id, sb.no, sb.zjm, sb.jbdh, sb.level
  387. from t_sb_info sb
  388. <where>
  389. sb.zjm is not null
  390. and sb.jbdh is not null
  391. </where>
  392. </select>
  393. <select id="selectPageInfoForWarn" parameterType="com.platform.dao.dto.sb.SbInfoDTO"
  394. resultType="com.platform.dao.vo.sb.SbInfoVO">
  395. select
  396. <include refid="Left_Column"/>
  397. from t_sb_info sb
  398. left join t_sb_type sbType on sb.type_id = sbType.id
  399. left join t_firm_producer producer on sb.producer_id = producer.id
  400. left join t_sb_position position on sb.position_id = position.id
  401. left join t_sys_user user on sb.save_user = user.user_id
  402. left join t_sys_dept sdDept on sb.save_dept = sdDept.dept_id
  403. where
  404. TIMESTAMPDIFF( DAY, CURDATE( ), sb.next_check_date ) <![CDATA[ <= ]]> sb.seat_number
  405. <if test="keyword != null and keyword != ''">
  406. and (
  407. sb.name like concat('%',#{keyword},'%')
  408. or
  409. sb.no like concat('%',#{keyword},'%')
  410. )
  411. </if>
  412. <if test="likeDeptCode != null and likeDeptCode!=''">
  413. and sdDept.dept_code like concat(#{likeDeptCode},'%')
  414. </if>
  415. <if test="financingNo != null and financingNo!=''">
  416. and sb.financing_no like concat(#{financingNo},'%')
  417. </if>
  418. <if test="positionIds != null">
  419. AND sb.position_id in
  420. <foreach item="item" index="index" collection="positionIds" open="(" close=")" separator=",">
  421. #{item}
  422. </foreach>
  423. </if>
  424. <if test="useType != null">
  425. and sb.use_type = #{useType}
  426. </if>
  427. <if test="id != null">
  428. and sb.id = #{id}
  429. </if>
  430. <if test="checkId != null">
  431. and sb.check_id = #{checkId}
  432. </if>
  433. <if test="isChild != null">
  434. and sb.is_child = #{isChild}
  435. </if>
  436. <if test="isFinancing != null">
  437. and sb.is_financing = #{isFinancing}
  438. </if>
  439. <if test="isShow != null">
  440. and sb.is_show = #{isShow}
  441. </if>
  442. <if test="useArea != null">
  443. and sb.use_area = #{useArea}
  444. </if>
  445. <if test="useCompany != null">
  446. and sb.use_company = #{useCompany}
  447. </if>
  448. <if test="useProject != null">
  449. and sb.use_project = #{useProject}
  450. </if>
  451. <if test="typeId != null">
  452. and sb.type_id = #{typeId}
  453. </if>
  454. <if test="model != null">
  455. and sb.model like concat('%',#{model},'%')
  456. </if>
  457. <if test="useDept != null">
  458. and sb.use_dept = #{useDept}
  459. </if>
  460. <if test="useGroup != null">
  461. and sb.use_group = #{useGroup}
  462. </if>
  463. <if test="nextCheckDateStart != null">
  464. and sb.next_check_date <![CDATA[ >= ]]> #{nextCheckDateStart}
  465. </if>
  466. <if test="nextCheckDateEnd != null">
  467. and sb.next_check_date <![CDATA[ <= ]]> #{nextCheckDateEnd}
  468. </if>
  469. <if test="saveDept != null">
  470. and sb.save_dept = #{saveDept}
  471. </if>
  472. <if test="saveUser != null">
  473. and sb.save_user = #{saveUser}
  474. </if>
  475. <if test="status != null">
  476. and sb.status = #{status}
  477. </if>
  478. <if test="modelId != null">
  479. and sb.model_id = #{modelId}
  480. </if>
  481. <if test="notStatusList != null and notStatusList.size > 0">
  482. AND sb.status not in
  483. <foreach item="item" index="index" collection="notStatusList" open="(" close=")" separator=",">
  484. #{item}
  485. </foreach>
  486. </if>
  487. <if test="statusList != null and statusList.size > 0">
  488. AND sb.status in
  489. <foreach item="item" index="index" collection="statusList" open="(" close=")" separator=",">
  490. #{item}
  491. </foreach>
  492. </if>
  493. <if test="sbIds != null and sbIds.size > 0">
  494. AND sb.id in
  495. <foreach item="item" index="index" collection="sbIds" open="(" close=")" separator=",">
  496. #{item}
  497. </foreach>
  498. </if>
  499. <if test="ascriptionDept != null and ascriptionDept">
  500. <include refid="deptSql"/>
  501. </if>
  502. </select>
  503. <select id="getById" parameterType="java.lang.Object" resultType="com.platform.dao.vo.sb.SbInfoVO">
  504. select
  505. <include refid="Left_Column"/>
  506. from t_sb_info sb
  507. left join t_sb_type sbType on sb.type_id = sbType.id
  508. left join t_firm_producer producer on sb.producer_id = producer.id
  509. left join t_sb_position position on sb.position_id = position.id
  510. left join t_sys_user user on sb.save_user = user.user_id
  511. where sb.id = #{value}
  512. </select>
  513. <select id="getByNo" parameterType="java.lang.Object" resultType="com.platform.dao.vo.sb.SbInfoVO">
  514. select
  515. <include refid="Left_Column"/>
  516. from t_sb_info sb
  517. left join t_sb_type sbType on sb.type_id = sbType.id
  518. left join t_firm_producer producer on sb.producer_id = producer.id
  519. left join t_sb_position position on sb.position_id = position.id
  520. left join t_sys_user user on sb.save_user = user.user_id
  521. where sb.no = #{value}
  522. </select>
  523. <select id="getByIds" parameterType="java.util.List" resultType="com.platform.dao.vo.sb.SbInfoVO">
  524. select
  525. <include refid="Left_Column"/>
  526. from t_sb_info sb
  527. where sb.id in
  528. <foreach item="item" index="index" collection="ids" open="(" close=")" separator=",">
  529. #{item}
  530. </foreach>
  531. </select>
  532. <select id="selectNameById" parameterType="Object" resultType="java.lang.String">
  533. select name
  534. from t_sb_info
  535. where id = #{value}
  536. </select>
  537. <update id="updateBatch" parameterType="java.util.List">
  538. <foreach collection="list" item="item" index="index" open="" close="" separator=";">
  539. update t_sb_info
  540. <set>
  541. last_baoyang_time=#{item.lastBaoyangTimes},
  542. last_baoyang_hours=#{item.lastBaoyangHours},
  543. last_baoyang_miles=#{item.lastBaoyangMiles}
  544. </set>
  545. where id = #{item.id}
  546. </foreach>
  547. </update>
  548. <update id="updateBatchQrCode" parameterType="java.util.List">
  549. <foreach collection="list" item="item" index="index" open="" close="" separator=";">
  550. update t_sb_info
  551. <set>
  552. qr_code=#{item.qrCode}
  553. </set>
  554. where id = #{item.id}
  555. </foreach>
  556. </update>
  557. <update id="updateBatchChild" parameterType="java.util.List">
  558. <foreach collection="list" item="item" index="index" open="" close="" separator=";">
  559. update t_sb_info
  560. <set>
  561. parent_id = #{item.parentId}
  562. </set>
  563. where id = #{item.id}
  564. </foreach>
  565. </update>
  566. <update id="updateBatchValue" parameterType="java.util.List">
  567. <foreach collection="list" item="item" index="index" open="" close="" separator=";">
  568. update t_sb_info
  569. <set>
  570. initial_value=#{item.initialValue},
  571. current_value=#{item.currentValue},
  572. cut_value=#{item.cutValue},
  573. month=#{item.month},
  574. rate=#{item.rate},
  575. used_month=#{item.usedMonth}
  576. </set>
  577. where id = #{item.id}
  578. </foreach>
  579. </update>
  580. <update id="updateStatusByIds" parameterType="com.platform.dao.dto.sb.SbInfoDTO">
  581. update t_sb_info
  582. <set>
  583. status=${status}, update_time=#{updateTime,jdbcType=TIMESTAMP}
  584. </set>
  585. where
  586. id in
  587. <foreach item="item" index="index" collection="sbIds" open="(" close=")" separator=",">
  588. #{item}
  589. </foreach>
  590. </update>
  591. <update id="updateTotalById" parameterType="java.util.List">
  592. <foreach collection="sbInfos" item="item" index="index" open="" close="" separator=";">
  593. update t_sb_info
  594. <set>
  595. <if test="item.totalHours != null">
  596. total_hours= total_hours+#{item.totalHours},
  597. </if>
  598. <if test="item.totalMiles != null">
  599. total_miles=total_miles+#{item.totalMiles},
  600. </if>
  601. </set>
  602. where id = #{item.id}
  603. </foreach>
  604. </update>
  605. <update id="updateBySbIds" parameterType="com.platform.dao.dto.sb.SbInfoDTO">
  606. update t_sb_info
  607. <set>
  608. <if test="useArea != null">
  609. use_area = #{useArea},
  610. </if>
  611. <if test="useCompany != null">
  612. use_company = #{useCompany},
  613. </if>
  614. <if test="useCompanyName != null">
  615. use_company_name = #{useCompanyName},
  616. </if>
  617. <if test="useProject != null">
  618. use_project = #{useProject},
  619. </if>
  620. <if test="useProjectName != null">
  621. use_project_name = #{useProjectName},
  622. </if>
  623. <if test="useDept != null">
  624. use_dept = #{useDept},
  625. </if>
  626. <if test="useDeptName != null">
  627. use_dept_name = #{useDeptName},
  628. </if>
  629. <if test="useGroup != null">
  630. use_group = #{useGroup},
  631. </if>
  632. <if test="useGroupName != null">
  633. use_group_name = #{useGroupName},
  634. </if>
  635. <if test="saveDept != null">
  636. save_dept = #{saveDept},
  637. </if>
  638. <if test="saveDeptName != null">
  639. save_dept_name = #{saveDeptName},
  640. </if>
  641. <if test="saveUser != null">
  642. save_user = #{saveUser},
  643. </if>
  644. <if test="status != null">
  645. status = #{status},
  646. </if>
  647. <if test="updateTime != null">
  648. update_time=#{updateTime,jdbcType=TIMESTAMP},
  649. </if>
  650. <if test="updateUserId != null">
  651. update_user_id = #{updateUserId},
  652. </if>
  653. <if test="updateUserName != null">
  654. update_user_name = #{updateUserName},
  655. </if>
  656. <if test="saveUserNull != null and saveUserNull">
  657. save_user = null,
  658. </if>
  659. </set>
  660. where
  661. id in
  662. <foreach item="item" index="index" collection="sbIds" open="(" close=")" separator=",">
  663. #{item}
  664. </foreach>
  665. </update>
  666. </mapper>