PurchaseApplyServiceDaoImplMapper.xml 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550
  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="purchaseApplyServiceDaoImpl">
  5. <resultMap type="com.java110.dto.purchase.PurchaseApplyDto" id="applyMap">
  6. <id column="applyOrderId" property="applyOrderId"/>
  7. <result column="description" property="description"/>
  8. <result column="resOrderType" property="resOrderType"/>
  9. <result column="statusCd" property="statusCd"/>
  10. <result column="state" property="state"/>
  11. <result column="storeId" property="storeId"/>
  12. <result column="userName" property="userName"/>
  13. <result column="bId" property="bId"/>
  14. <result column="userId" property="userId"/>
  15. <result column="createTime" property="createTime"/>
  16. <result column="stateName" property="stateName"/>
  17. <result column="endUserName" property="endUserName"/>
  18. <result column="endUserTel" property="endUserTel"/>
  19. <result column="communityId" property="communityId"/>
  20. <!-- 一对多关系 -->
  21. <collection property="purchaseApplyDetailVo" ofType="com.java110.vo.api.purchaseApply.PurchaseApplyDetailVo"
  22. javaType="java.util.ArrayList">
  23. <id property="id" column="id"/>
  24. <result property="applyOrderId" column="applyOrderId"/>
  25. <result property="resId" column="resId"/>
  26. <result column="rsId" property="rsId"/>
  27. <result property="quantity" column="quantity"/>
  28. <result property="resName" column="resName"/>
  29. <result property="remark" column="remark"/>
  30. <result property="resCode" column="resCode"/>
  31. <result property="price" column="price"/>
  32. <result property="stock" column="stock"/>
  33. <result property="description" column="description"/>
  34. </collection>
  35. </resultMap>
  36. <!-- 保存采购申请信息 add by wuxw 2018-07-03 -->
  37. <insert id="saveBusinessPurchaseApplyInfo" parameterType="Map">
  38. insert into business_purchase_apply
  39. (operate, res_order_type, description, apply_order_id, state, store_id, user_id, user_name, b_id, end_user_name,
  40. end_user_tel, community_id)
  41. values (#{operate}, #{resOrderType}, #{description}, #{applyOrderId}, #{state}, #{storeId}, #{userId},
  42. #{userName}, #{bId}, #{endUserName}, #{endUserTel}, #{communityId})
  43. </insert>
  44. <!-- 保存采购明细表备份表 -->
  45. <insert id="saveBusinessPurchaseApplyDetailInfo" parameterType="List">
  46. insert into business_purchase_apply_detail (apply_order_id,res_id,quantity,remark,b_id,operate,status_cd)
  47. values
  48. <foreach collection="list" item="item" index="index" separator=",">
  49. (
  50. #{item.applyOrderId},
  51. #{item.resId},
  52. #{item.quantity},
  53. #{item.remark},
  54. #{item.bId},
  55. #{item.operate},
  56. #{item.statusCd}
  57. )
  58. </foreach>
  59. </insert>
  60. <!-- 保存采购明细表-->
  61. <insert id="savePurchaseApplyDetailInfo" parameterType="List">
  62. insert into purchase_apply_detail
  63. (id,rs_id,apply_order_id,res_id,quantity,remark,b_id,operate,status_cd,price,purchase_quantity,purchase_remark,original_stock,times_id,consult_price)
  64. values
  65. <foreach collection="list" item="item" index="index" separator=",">
  66. (
  67. #{item.id},
  68. #{item.rsId},
  69. #{item.applyOrderId},
  70. #{item.resId},
  71. #{item.quantity},
  72. #{item.remark},
  73. '-1',
  74. 'ADD',
  75. '0',
  76. #{item.price},
  77. #{item.purchaseQuantity},
  78. #{item.purchaseRemark},
  79. #{item.originalStock},
  80. #{item.timesId},
  81. #{item.consultPrice}
  82. )
  83. </foreach>
  84. </insert>
  85. <!-- 查询采购申请信息(Business) add by wuxw 2018-07-03 -->
  86. <select id="getBusinessPurchaseApplyInfo" parameterType="Map" resultType="Map">
  87. select
  88. t.operate,
  89. t.res_order_type,
  90. t.res_order_type resOrderType,
  91. t.description,
  92. t.apply_order_id,
  93. t.apply_order_id applyOrderId,
  94. t.state,
  95. t.store_id,
  96. t.store_id storeId,
  97. t.user_name userName,
  98. t.b_id bId,
  99. t.b_id,
  100. t.user_id,
  101. t.user_id userId,
  102. t.status_cd statusCd,
  103. t.end_user_name,
  104. t.end_user_tel,
  105. t.end_user_name endUserName,
  106. t.end_user_tel endUserTel,
  107. t.community_id communityId
  108. from business_purchase_apply t
  109. where 1 =1
  110. <if test="operate !=null and operate != ''">
  111. and t.operate= #{operate}
  112. </if>
  113. <if test="resOrderType !=null and resOrderType != ''">
  114. and t.res_order_type= #{resOrderType}
  115. </if>
  116. <if test="description !=null and description != ''">
  117. and t.description= #{description}
  118. </if>
  119. <if test="applyOrderId !=null and applyOrderId != ''">
  120. and t.apply_order_id= #{applyOrderId}
  121. </if>
  122. <if test="state !=null and state != ''">
  123. and t.state= #{state}
  124. </if>
  125. <if test="storeId !=null and storeId != ''">
  126. and t.store_id= #{storeId}
  127. </if>
  128. <if test="bId !=null and bId != ''">
  129. and t.b_id= #{bId}
  130. </if>
  131. <if test="userId !=null and userId != ''">
  132. and t.user_id= #{userId}
  133. </if>
  134. <if test="endUserName !=null and endUserName != ''">
  135. and t.end_user_name= #{endUserName}
  136. </if>
  137. <if test="endUserTel !=null and endUserTel != ''">
  138. and t.end_user_tel= #{endUserTel}
  139. </if>
  140. <if test="communityId !=null and communityId != ''">
  141. and t.community_id= #{communityId}
  142. </if>
  143. </select>
  144. <select id="getBusinessPurchaseApplyDetailInfo" parameterType="Map" resultType="Map">
  145. select
  146. t.apply_order_id applyOrderId,t.b_id bId,t.res_id resId,t.quantity,t.remark,t.operate,t.status_cd statusCd
  147. from business_purchase_apply_detail t
  148. where 1 =1
  149. <if test="operate !=null and operate != ''">
  150. and t.operate= #{operate}
  151. </if>
  152. <if test="description !=null and description != ''">
  153. and t.description= #{description}
  154. </if>
  155. <if test="applyOrderId !=null and applyOrderId != ''">
  156. and t.apply_order_id= #{applyOrderId}
  157. </if>
  158. <if test="bId !=null and bId != ''">
  159. and t.b_id= #{bId}
  160. </if>
  161. </select>
  162. <!-- 保存采购申请信息至 instance表中 add by wuxw 2018-07-03 -->
  163. <insert id="savePurchaseApplyInfoInstance" parameterType="Map">
  164. insert into purchase_apply
  165. (res_order_type,description,apply_order_id,status_cd,state,store_id,user_name,b_id,user_id,end_user_name,end_user_tel,community_id)
  166. select
  167. t.res_order_type,t.description,t.apply_order_id,'0',t.state,t.store_id,t.user_name,t.b_id,t.user_id,t.end_user_name,t.end_user_tel,
  168. t.community_id
  169. from business_purchase_apply t where 1=1
  170. and t.operate= 'ADD'
  171. <if test="resOrderType !=null and resOrderType != ''">
  172. and t.res_order_type= #{resOrderType}
  173. </if>
  174. <if test="description !=null and description != ''">
  175. and t.description= #{description}
  176. </if>
  177. <if test="applyOrderId !=null and applyOrderId != ''">
  178. and t.apply_order_id= #{applyOrderId}
  179. </if>
  180. <if test="state !=null and state != ''">
  181. and t.state= #{state}
  182. </if>
  183. <if test="storeId !=null and storeId != ''">
  184. and t.store_id= #{storeId}
  185. </if>
  186. <if test="bId !=null and bId != ''">
  187. and t.b_id= #{bId}
  188. </if>
  189. <if test="userId !=null and userId != ''">
  190. and t.user_id= #{userId}
  191. </if>
  192. <if test="communityId !=null and communityId != ''">
  193. and t.community_id= #{communityId}
  194. </if>
  195. </insert>
  196. <!-- 查询采购申请信息 add by wuxw 2018-07-03 -->
  197. <select id="getPurchaseApplyInfo" parameterType="Map" resultType="Map">
  198. select
  199. t.res_order_type resOrderType,t.description,
  200. t.apply_order_id applyOrderId,t.status_cd statusCd,t.state,
  201. t.store_id storeId,t.user_name userName,
  202. t.b_id bId,t.user_id userId,t.create_time createTime,d.name stateName,
  203. t.end_user_name,
  204. t.end_user_tel,
  205. t.end_user_name endUserName,
  206. t.end_user_tel endUserTel,
  207. t.description,
  208. t.create_user_id createUserId,
  209. t.create_user_name createUserName,
  210. t.warehousing_way warehousingWay,
  211. t.community_id communityId
  212. from purchase_apply t
  213. <if test="resName != null and resName != ''">
  214. left join purchase_apply_detail pad on t.apply_order_id = pad.apply_order_id and pad.status_cd = '0'
  215. left join resource_store rs on pad.res_id = rs.res_id and rs.status_cd = '0'
  216. </if>
  217. inner join t_dict d on t.state = d.status_cd and d.table_name = 'purchase_apply' and d.table_columns = 'state'
  218. where 1 = 1
  219. <if test="resName != null and resName != ''">
  220. and rs.res_name like concat('%',#{resName},'%')
  221. </if>
  222. <if test="resOrderType !=null and resOrderType != ''">
  223. and t.res_order_type= #{resOrderType}
  224. </if>
  225. <if test="description !=null and description != ''">
  226. and t.description= #{description}
  227. </if>
  228. <if test="applyOrderId !=null and applyOrderId != ''">
  229. and t.apply_order_id like concat('%',#{applyOrderId},'%')
  230. </if>
  231. <if test="applyOrderIds !=null ">
  232. and t.apply_order_id in
  233. <foreach open="(" close=")"
  234. separator="," collection="applyOrderIds" item="item">
  235. #{item}
  236. </foreach>
  237. </if>
  238. <if test="userName !=null and userName != ''">
  239. and t.user_name like concat('%',#{userName},'%')
  240. </if>
  241. <if test="statusCd !=null and statusCd != ''">
  242. and t.status_cd= #{statusCd}
  243. </if>
  244. <if test="state !=null and state != ''">
  245. and t.state= #{state}
  246. </if>
  247. <if test="storeId !=null and storeId != ''">
  248. and t.store_id= #{storeId}
  249. </if>
  250. <if test="bId !=null and bId != ''">
  251. and t.b_id= #{bId}
  252. </if>
  253. <if test="endUserName !=null and endUserName != ''">
  254. and t.end_user_name= #{endUserName}
  255. </if>
  256. <if test="endUserTel !=null and endUserTel != ''">
  257. and t.end_user_tel= #{endUserTel}
  258. </if>
  259. <if test="userId !=null and userId != ''">
  260. and t.user_id= #{userId}
  261. </if>
  262. <if test="createUserId !=null and createUserId != ''">
  263. and t.create_user_id= #{createUserId}
  264. </if>
  265. <if test="communityId !=null and communityId != ''">
  266. and t.community_id= #{communityId}
  267. </if>
  268. <if test="startTime !=null and startTime != ''">
  269. and t.create_time &gt;= #{startTime}
  270. </if>
  271. <if test="endTime !=null and endTime != ''">
  272. and t.create_time &lt;= #{endTime}
  273. </if>
  274. order by t.create_time desc
  275. <if test="page != -1 and page != null ">
  276. limit #{page}, #{row}
  277. </if>
  278. </select>
  279. <select id="getPurchaseApplyInfo2" parameterType="Map" resultMap="applyMap">
  280. select
  281. t.res_order_type resOrderType,t.description,
  282. t.apply_order_id applyOrderId,t.status_cd statusCd,t.state,
  283. t.store_id storeId,t.user_name userName,
  284. t.b_id bId,t.user_id userId,t.create_time createTime,d.name stateName,
  285. de.apply_order_id applyOrderId,de.res_id resId,de.quantity,de.remark,rs.res_name
  286. resName,rs.price,rs.stock,rs.res_code resCode,rs.description,
  287. t.end_user_name,
  288. t.end_user_tel,
  289. t.end_user_name endUserName,
  290. t.end_user_tel endUserTel,
  291. t.community_id communityId
  292. from purchase_apply t
  293. inner join t_dict d on t.state = d.status_cd and d.table_name = 'purchase_apply' and d.table_columns = 'state'
  294. inner join purchase_apply_detail de on de.apply_order_id = t.apply_order_id
  295. inner join resource_store rs on de.res_id = rs.res_id
  296. where 1 =1
  297. <if test="resOrderType !=null and resOrderType != ''">
  298. and t.res_order_type= #{resOrderType}
  299. </if>
  300. <if test="applyOrderId !=null and applyOrderId != ''">
  301. and t.apply_order_id= #{applyOrderId}
  302. </if>
  303. <if test="statusCd !=null and statusCd != ''">
  304. and t.status_cd= #{statusCd}
  305. </if>
  306. <if test="state !=null and state != ''">
  307. and t.state= #{state}
  308. </if>
  309. <if test="storeId !=null and storeId != ''">
  310. and t.store_id= #{storeId}
  311. </if>
  312. <if test="bId !=null and bId != ''">
  313. and t.b_id= #{bId}
  314. </if>
  315. <if test="endUserName !=null and endUserName != ''">
  316. and t.end_user_name= #{endUserName}
  317. </if>
  318. <if test="endUserTel !=null and endUserTel != ''">
  319. and t.end_user_tel= #{endUserTel}
  320. </if>
  321. <if test="createUserId !=null and createUserId != ''">
  322. and t.create_user_id= #{createUserId}
  323. </if>
  324. <if test="communityId !=null and communityId != ''">
  325. and t.community_id= #{communityId}
  326. </if>
  327. order by t.create_time desc
  328. <if test="page != -1 and page != null ">
  329. limit #{page}, #{row}
  330. </if>
  331. </select>
  332. <!-- 查询采购明细 -->
  333. <select id="getPurchaseApplyDetailInfo" parameterType="Map" resultType="Map">
  334. select
  335. p.id,
  336. p.apply_order_id applyOrderId,
  337. p.res_id resId,p.quantity,p.remark,p.purchase_quantity purchaseQuantity,p.purchase_remark purchaseRemark,p.price
  338. purchasePrice,p.original_stock originalStock,p.consult_price consultPrice,p.times_id timesId,
  339. r.res_name resName,r.res_code resCode,
  340. r.price,r.price standardPrice,rstime.stock,rst.name rstName,rst1.name parentRstName,rss.spec_name
  341. specName,rs.supplier_name supplierName,
  342. td1.name unitCodeName,
  343. td2.name miniUnitCodeName
  344. from
  345. purchase_apply_detail p
  346. inner join resource_store r on p.res_id = r.res_id and r.status_cd = '0'
  347. left join t_dict td1 on r.unit_code = td1.status_cd and td1.table_name = 'resource_store' and td1.table_columns
  348. = 'unit_code'
  349. left join t_dict td2 on r.mini_unit_code = td2.status_cd and td2.table_name = 'resource_store' and
  350. td2.table_columns = 'unit_code'
  351. LEFT JOIN resource_supplier rs on p.rs_id=rs.rs_id
  352. LEFT JOIN resource_store_type rst on r.rst_id=rst.rst_id
  353. LEFT JOIN resource_store_type rst1 on r.parent_rst_id=rst1.rst_id
  354. LEFT JOIN resource_store_specification rss on r.rss_id=rss.rss_id
  355. left join resource_store_times rstime on p.times_id = rstime.times_id and rstime.status_cd = '0'
  356. where 1=1
  357. and p.status_cd = '0'
  358. <if test="applyOrderIds !=null">
  359. and p.apply_order_id in
  360. <foreach collection="applyOrderIds" item="item" open="(" close=")" separator=",">
  361. #{item}
  362. </foreach>
  363. </if>
  364. <if test="resOrderType !=null and resOrderType != ''">
  365. and t.res_order_type= #{resOrderType}
  366. </if>
  367. <if test="bId !=null and bId != ''">
  368. and p.b_id= #{bId}
  369. </if>
  370. <if test="operate !=null and operate != ''">
  371. and p.operate= #{operate}
  372. </if>
  373. </select>
  374. <!-- 修改采购申请信息 add by wuxw 2018-07-03 -->
  375. <update id="updatePurchaseApplyInfoInstance" parameterType="Map">
  376. update purchase_apply t set t.status_cd = #{statusCd}
  377. <if test="newBId != null and newBId != ''">
  378. ,t.b_id = #{newBId}
  379. </if>
  380. <if test="applyDetailId !=null and applyDetailId != ''">
  381. , t.apply_detail_id= #{applyDetailId}
  382. </if>
  383. <if test="resOrderType !=null and resOrderType != ''">
  384. , t.res_order_type= #{resOrderType}
  385. </if>
  386. <if test="description !=null and description != ''">
  387. , t.description= #{description}
  388. </if>
  389. <if test="state !=null and state != ''">
  390. , t.state= #{state}
  391. </if>
  392. <if test="storeId !=null and storeId != ''">
  393. , t.store_id= #{storeId}
  394. </if>
  395. <if test="userId !=null and userId != ''">
  396. , t.user_id= #{userId}
  397. </if>
  398. <if test="endUserName !=null and endUserName != ''">
  399. , t.end_user_name= #{endUserName}
  400. </if>
  401. <if test="endUserTel !=null and endUserTel != ''">
  402. , t.end_user_tel= #{endUserTel}
  403. </if>
  404. <if test="communityId !=null and communityId != ''">
  405. , t.community_id= #{communityId}
  406. </if>
  407. where 1=1
  408. <if test="applyOrderId !=null and applyOrderId != ''">
  409. and t.apply_order_id= #{applyOrderId}
  410. </if>
  411. <if test="bId !=null and bId != ''">
  412. and t.b_id= #{bId}
  413. </if>
  414. </update>
  415. <!-- 查询采购申请数量 add by wuxw 2018-07-03 -->
  416. <select id="queryPurchaseApplysCount" parameterType="Map" resultType="Map">
  417. select count(1) count
  418. from purchase_apply t
  419. <if test="resName != null and resName != ''">
  420. left join purchase_apply_detail pad on t.apply_order_id = pad.apply_order_id and pad.status_cd = '0'
  421. left join resource_store rs on pad.res_id = rs.res_id and rs.status_cd = '0'
  422. </if>
  423. where 1 = 1
  424. <if test="resName != null and resName != ''">
  425. and rs.res_name like concat('%',#{resName},'%')
  426. </if>
  427. <if test="resOrderType !=null and resOrderType != ''">
  428. and t.res_order_type= #{resOrderType}
  429. </if>
  430. <if test="description !=null and description != ''">
  431. and t.description= #{description}
  432. </if>
  433. <if test="applyOrderId !=null and applyOrderId != ''">
  434. and t.apply_order_id like concat('%',#{applyOrderId},'%')
  435. </if>
  436. <if test="applyOrderIds !=null ">
  437. and t.apply_order_id in
  438. <foreach open="(" close=")"
  439. separator="," collection="applyOrderIds" item="item">
  440. #{item}
  441. </foreach>
  442. </if>
  443. <if test="userName !=null and userName != ''">
  444. and t.user_name like concat('%',#{userName},'%')
  445. </if>
  446. <if test="statusCd !=null and statusCd != ''">
  447. and t.status_cd= #{statusCd}
  448. </if>
  449. <if test="warehousingWay !=null and warehousingWay != ''">
  450. and t.warehousing_way= #{warehousingWay}
  451. </if>
  452. <if test="state !=null and state != ''">
  453. and t.state= #{state}
  454. </if>
  455. <if test="storeId !=null and storeId != ''">
  456. and t.store_id= #{storeId}
  457. </if>
  458. <if test="bId !=null and bId != ''">
  459. and t.b_id= #{bId}
  460. </if>
  461. <if test="endUserName !=null and endUserName != ''">
  462. and t.end_user_name= #{endUserName}
  463. </if>
  464. <if test="endUserTel !=null and endUserTel != ''">
  465. and t.end_user_tel= #{endUserTel}
  466. </if>
  467. <if test="createUserId !=null and createUserId != ''">
  468. and t.create_user_id= #{createUserId}
  469. </if>
  470. <if test="userId !=null and userId != ''">
  471. and t.user_id= #{userId}
  472. </if>
  473. <if test="communityId !=null and communityId != ''">
  474. and t.community_id = #{communityId}
  475. </if>
  476. <if test="startTime !=null and startTime != ''">
  477. and t.create_time &gt;= #{startTime}
  478. </if>
  479. <if test="endTime !=null and endTime != ''">
  480. and t.create_time &lt;= #{endTime}
  481. </if>
  482. <if test='urgentFlag !=null and urgentFlag == "1"'>
  483. and date_format(t.create_time,'%Y-%m') = date_format(now(),'%Y-%m')
  484. </if>
  485. </select>
  486. <!-- 保存采购申请信息 add by wuxw 2018-07-03 -->
  487. <insert id="savePurchaseApply" parameterType="Map">
  488. insert into purchase_apply
  489. (status_cd, res_order_type, description, apply_order_id, state, store_id, user_id, user_name, b_id,
  490. end_user_name, end_user_tel,
  491. create_time, create_user_id, create_user_name, warehousing_way, community_id)
  492. values ('0', #{resOrderType}, #{description}, #{applyOrderId}, #{state}, #{storeId}, #{userId}, #{userName},
  493. '-1', #{endUserName}, #{endUserTel},
  494. #{createTime}, #{createUserId}, #{createUserName}, #{warehousingWay}, #{communityId})
  495. </insert>
  496. <!--查询下级用户id-->
  497. <select id="getActRuTaskUserId" parameterType="Map" resultType="Map">
  498. SELECT ASSIGNEE_ taskUserId FROM ACT_RU_TASK t
  499. LEFT JOIN ACT_HI_PROCINST ahp on t.PROC_INST_ID_=ahp.ID_
  500. LEFT JOIN ACT_RU_EXECUTION are on t.EXECUTION_ID_=are.ID_
  501. where 1 = 1
  502. <if test="actRuTaskId !=null and actRuTaskId != ''">
  503. and ahp.ID_ = #{actRuTaskId}
  504. </if>
  505. <if test="procDefId !=null and procDefId != ''">
  506. and t.PROC_DEF_ID_ = #{procDefId}
  507. </if>
  508. <if test="businessKey !=null and businessKey != ''">
  509. and ahp.BUSINESS_KEY_ = #{businessKey}
  510. </if>
  511. </select>
  512. <!--获得获取流程任务id-->
  513. <select id="getActRuTaskId" parameterType="Map" resultType="Map">
  514. SELECT art.ID_ actRuTaskId FROM ACT_RU_EXECUTION are
  515. LEFT JOIN ACT_RU_TASK art ON are.PROC_INST_ID_=art.PROC_INST_ID_
  516. where 1 = 1
  517. <if test="businessKey !=null and businessKey != ''">
  518. and are.BUSINESS_KEY_ = #{businessKey}
  519. </if>
  520. </select>
  521. <!-- 修改流程任务信息 -->
  522. <update id="updateActRuTaskById" parameterType="Map">
  523. update ACT_RU_TASK t set SUSPENSION_STATE_=1
  524. <if test="assigneeUser != null and assigneeUser != ''">
  525. ,t.ASSIGNEE_ = #{assigneeUser}
  526. </if>
  527. where 1=1
  528. <if test="actRuTaskId !=null and actRuTaskId != ''">
  529. and t.ID_= #{actRuTaskId}
  530. </if>
  531. </update>
  532. </mapper>