SbInfoMapper.xml 22 KB

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