综合办公系统
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

CmcContractMapper.xml 24KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper
  3. PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5. <mapper namespace="com.ruoyi.oa.mapper.CmcContractMapper">
  6. <resultMap type="CmcContract" id="CmcContractResult">
  7. <result property="contractId" column="contract_id" />
  8. <result property="contractName" column="contract_name" />
  9. <result property="contractCode" column="contract_code" />
  10. <result property="contractNumber" column="contract_number" />
  11. <result property="tenderId" column="tender_id" />
  12. <result property="partyAId" column="party_a_id" />
  13. <result property="amount" column="amount" />
  14. <result property="subAmount" column="sub_amount" />
  15. <result property="budgetAmount" column="budget_amount" />
  16. <result property="borrowAmount" column="borrow_amount" />
  17. <result property="settleAmount" column="settle_amount" />
  18. <result property="paidAmount" column="paid_amount" />
  19. <result property="deposit" column="deposit" />
  20. <result property="contractDocument" column="contract_document" />
  21. <result property="drafter" column="drafter" />
  22. <result property="draftTime" column="draft_time" />
  23. <result property="remark" column="remark" />
  24. <result property="signDate" column="sign_date" />
  25. <result property="signRemark" column="sign_remark" />
  26. <result property="signScan" column="sign_scan" />
  27. <result property="commentType" column="comment_type" />
  28. <result property="managerComment" column="manager_comment" />
  29. <result property="managerUserId" column="manager_user_id" />
  30. <result property="managerTime" column="manager_time" />
  31. <result property="gmUserId" column="gm_user_id" />
  32. <result property="gmTime" column="gm_time" />
  33. <result property="gmComment" column="gm_comment" />
  34. <result property="projectSource" column="project_source" />
  35. <association property="draftUser" javaType="SysUser" resultMap="DraftUserResult" />
  36. <association property="managerUser" javaType="SysUser" resultMap="ManagerUserResult" />
  37. <association property="gmUser" javaType="SysUser" resultMap="GmUserResult" />
  38. <association property="tender" javaType="CmcTender" resultMap="CmcTenderResult" />
  39. <association property="partyA" javaType="CmcPartyA" resultMap="CmcPartyAResult" />
  40. <association property="project" javaType="CmcProject" resultMap="CmcProjectResult" />
  41. </resultMap>
  42. <resultMap type="CmcTender" id="CmcTenderResult">
  43. <result property="tenderId" column="tender_id" />
  44. <result property="projectName" column="t_project_name" />
  45. </resultMap>
  46. <resultMap type="SysUser" id="DraftUserResult">
  47. <result property="userId" column="user_id" />
  48. <result property="nickName" column="draft_nick_name" />
  49. </resultMap>
  50. <resultMap type="SysUser" id="ManagerUserResult">
  51. <result property="userId" column="user_id" />
  52. <result property="nickName" column="manager_nick_name" />
  53. </resultMap>
  54. <resultMap type="SysUser" id="GmUserResult">
  55. <result property="userId" column="user_id" />
  56. <result property="nickName" column="gm_nick_name" />
  57. </resultMap>
  58. <resultMap type="CmcPartyA" id="CmcPartyAResult">
  59. <result property="partyAId" column="party_a_id" />
  60. <result property="partyAName" column="party_a_name" />
  61. </resultMap>
  62. <resultMap type="CmcProject" id="CmcProjectResult">
  63. <result property="projectId" column="project_id" />
  64. <result property="projectNumber" column="project_number" />
  65. <result property="projectName" column="project_name" />
  66. <result property="projectType" column="project_type" />
  67. </resultMap>
  68. <sql id="selectCmcContractVo">
  69. select distinct c.contract_id, c.contract_code, c.contract_name, c.contract_number, c.tender_id, t.project_name as t_project_name, p.project_number, p.project_name,
  70. p.project_source, c.party_a_id, pa.party_a_name, t.a_person as a_person, t.a_phone as a_phone, t.agent as agent, t.agent_person as agent_person, sum(cp.paid_amount) as paid_amount,
  71. t.agent_phone as agent_phone, c.amount, c.deposit, c.contract_document, c.drafter, u.nick_name as draft_nick_name, c.draft_time, c.remark, c.sign_date, c.sign_remark, c.sign_scan,
  72. c.comment_type, c.manager_comment, c.manager_user_id, u1.nick_name as manager_nick_name, c.manager_time, c.gm_user_id, u2.nick_name as gm_nick_name, c.gm_time, c.gm_comment from cmc_contract as c
  73. left join sys_user as u on u.user_id = c.drafter
  74. left join sys_user as u1 on u1.user_id = c.manager_user_id
  75. left join sys_user as u2 on u2.user_id = c.gm_user_id
  76. left join cmc_tender as t on t.tender_id = c.tender_id
  77. left join cmc_party_a as pa on pa.party_a_id = c.party_a_id
  78. left join cmc_project_contract as pc on pc.contract_id = c.contract_id
  79. left join cmc_project as p on pc.project_id = p.project_id
  80. left join cmc_contract_paid as cp on cp.contract_id = c.contract_id
  81. </sql>
  82. <select id="selectCmcContractList" parameterType="CmcContract" resultMap="CmcContractResult">
  83. <include refid="selectCmcContractVo"/>
  84. <where>
  85. <if test="contractId != null and contractId != ''"> and c.contract_id like concat('%', #{contractId}, '%')</if>
  86. <if test="contractName!= null and contractName != ''"> and c.contract_name like concat('%', #{contractName}, '%')</if>
  87. <if test="contractCode!= null and contractCode != ''"> and c.contract_code like concat('%', #{contractCode}, '%')</if>
  88. <if test="tenderId != null and tenderId != ''"> and c.tender_id = #{tenderId}</if>
  89. <if test="contractNumber != null and contractNumber != ''"> and c.contract_number = #{contractNumber}</if>
  90. <if test="partyAId != null and partyAId != ''"> and c.party_a_id = #{partyAId}</if>
  91. <if test="amount != null "> and c.amount = #{amount}</if>
  92. <if test="deposit != null "> and c.deposit = #{deposit}</if>
  93. <if test="contractDocument != null and contractDocument != ''"> and c.contract_document = #{contractDocument}</if>
  94. <if test="drafter != null "> and c.drafter = #{drafter}</if>
  95. <if test="draftTime != null "> and c.draft_time = #{draftTime}</if>
  96. <if test="signDate != null "> and YEAR(c.sign_date) = YEAR(#{signDate})</if>
  97. <if test="signRemark != null and signRemark != ''"> and c.sign_remark = #{signRemark}</if>
  98. <if test="signScan != null and signScan != ''"> and c.sign_scan = #{signScan}</if>
  99. <if test="commentType != null and commentType != ''"> and c.comment_type = #{commentType}</if>
  100. <if test="projectSource != null and projectSource != ''"> and p.project_source = #{projectSource}</if>
  101. <if test="projectName != null and projectName != ''"> and p.project_name like concat('%', #{projectName}, '%')</if>
  102. <if test="partyAName != null and partyAName != ''"> and pa.party_a_name like concat('%', #{partyAName}, '%')</if>
  103. </where>
  104. group by c.contract_id
  105. order by c.draft_time desc
  106. </select>
  107. <select id="selectCmcContractListFuzzy" parameterType="CmcContract" resultMap="CmcContractResult">
  108. select distinct c.contract_id, c.contract_code, c.contract_name, c.contract_number, c.tender_id, t.project_name as t_project_name, p.project_number, p.project_name,
  109. p.project_source, c.party_a_id, pa.party_a_name, t.a_person as a_person, t.a_phone as a_phone, t.agent as agent, t.agent_person as agent_person, sum(cp.paid_amount) as paid_amount,
  110. t.agent_phone as agent_phone, c.amount, c.deposit, c.contract_document, c.drafter, u.nick_name as draft_nick_name, c.draft_time, c.remark, c.sign_date, c.sign_remark, c.sign_scan,
  111. c.comment_type, c.manager_comment, c.manager_user_id, u1.nick_name as manager_nick_name, c.manager_time, c.gm_user_id, u2.nick_name as gm_nick_name, c.gm_time, c.gm_comment from cmc_contract as c
  112. left join sys_user as u on u.user_id = c.drafter
  113. left join sys_user as u1 on u1.user_id = c.manager_user_id
  114. left join sys_user as u2 on u2.user_id = c.gm_user_id
  115. left join cmc_tender as t on t.tender_id = c.tender_id
  116. left join cmc_party_a as pa on pa.party_a_id = c.party_a_id
  117. left join cmc_project_contract as pc on pc.contract_id = c.contract_id
  118. left join cmc_project as p on pc.project_id = p.project_id
  119. left join cmc_contract_paid as cp on cp.contract_id = c.contract_id
  120. left join cmc_contract_work as cw on cw.contract_id = c.contract_id
  121. <where>
  122. cw.content like concat('%', #{queryString}, '%')
  123. <if test="contractId != null and contractId != ''"> and c.contract_id like concat('%', #{contractId}, '%')</if>
  124. <if test="contractName!= null and contractName != ''"> and c.contract_name like concat('%', #{contractName}, '%')</if>
  125. <if test="contractCode!= null and contractCode != ''"> and c.contract_code like concat('%', #{contractCode}, '%')</if>
  126. <if test="tenderId != null and tenderId != ''"> and c.tender_id = #{tenderId}</if>
  127. <if test="contractNumber != null and contractNumber != ''"> and c.contract_number = #{contractNumber}</if>
  128. <if test="partyAId != null and partyAId != ''"> and c.party_a_id = #{partyAId}</if>
  129. <if test="amount != null "> and c.amount = #{amount}</if>
  130. <if test="deposit != null "> and c.deposit = #{deposit}</if>
  131. <if test="contractDocument != null and contractDocument != ''"> and c.contract_document = #{contractDocument}</if>
  132. <if test="drafter != null "> and c.drafter = #{drafter}</if>
  133. <if test="draftTime != null "> and c.draft_time = #{draftTime}</if>
  134. <if test="signDate != null "> and YEAR(c.sign_date) = YEAR(#{signDate})</if>
  135. <if test="signRemark != null and signRemark != ''"> and c.sign_remark = #{signRemark}</if>
  136. <if test="signScan != null and signScan != ''"> and c.sign_scan = #{signScan}</if>
  137. <if test="commentType != null and commentType != ''"> and c.comment_type = #{commentType}</if>
  138. <if test="projectSource != null and projectSource != ''"> and p.project_source = #{projectSource}</if>
  139. <if test="projectName != null and projectName != ''"> and p.project_name like concat('%', #{projectName}, '%')</if>
  140. <if test="partyAName != null and partyAName != ''"> and pa.party_a_name like concat('%', #{partyAName}, '%')</if>
  141. </where>
  142. group by c.contract_id
  143. order by c.draft_time desc
  144. </select>
  145. <select id="selectCmcContractListByRange" parameterType="CmcContract" resultMap="CmcContractResult">
  146. <include refid="selectCmcContractVo"/>
  147. <where>
  148. <if test="contractId != null and contractId != ''"> and c.contract_id like concat('%', #{contractId}, '%')</if>
  149. <if test="contractName!= null and contractName != ''"> and c.contract_name like concat('%', #{contractName}, '%')</if>
  150. <if test="contractCode!= null and contractCode != ''"> and c.contract_code like concat('%', #{contractCode}, '%')</if>
  151. <if test="tenderId != null and tenderId != ''"> and c.tender_id = #{tenderId}</if>
  152. <if test="contractNumber != null and contractNumber != ''"> and c.contract_number = #{contractNumber}</if>
  153. <if test="partyAId != null and partyAId != ''"> and c.party_a_id = #{partyAId}</if>
  154. <if test="amount != null "> and c.amount = #{amount}</if>
  155. <if test="deposit != null "> and c.deposit = #{deposit}</if>
  156. <if test="contractDocument != null and contractDocument != ''"> and c.contract_document = #{contractDocument}</if>
  157. <if test="drafter != null "> and c.drafter = #{drafter}</if>
  158. <if test="draftTime != null "> and c.draft_time = #{draftTime}</if>
  159. <if test="signDate != null"> and YEAR(c.sign_date) = YEAR(#{signDate})</if>
  160. <if test="signRemark != null and signRemark != ''"> and c.sign_remark = #{signRemark}</if>
  161. <if test="signScan != null and signScan != ''"> and c.sign_scan = #{signScan}</if>
  162. <if test="commentType != null and commentType != ''"> and c.comment_type = #{commentType}</if>
  163. <if test="projectSource != null and projectSource != ''"> and p.project_source = #{projectSource}</if>
  164. <if test="projectName != null and projectName != ''"> and p.project_name like concat('%', #{projectName}, '%')</if>
  165. <if test="partyAName != null and partyAName != ''"> and pa.party_a_name like concat('%', #{partyAName}, '%')</if>
  166. <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
  167. and date_format(c.sign_date,'%y%m%d') &gt;= date_format(#{params.beginTime},'%y%m%d')
  168. </if>
  169. <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
  170. and date_format(c.sign_date,'%y%m%d') &lt;= date_format(#{params.endTime},'%y%m%d')
  171. </if>
  172. </where>
  173. group by c.contract_id
  174. order by c.draft_time desc
  175. </select>
  176. <select id="selectCmcContractStatistic" resultMap="CmcContractResult" >
  177. select t1.contract_id, t1.contract_name, t1.project_type, t1.project_number, IFNULL(t1.amount, 0) as amount, IFNULL(t2.sub_amount, 0) as sub_amount, IFNULL(t3.budget_amount, 0) as budget_amount, IFNULL(t4.borrow_amount, 0) as borrow_amount, IFNULL(t5.settle_amount, 0) as settle_amount from
  178. (select distinct c.contract_id, c.contract_name, p.project_type, p.project_number, c.amount from cmc_contract as c
  179. left join cmc_contract_sub_contract as csc on csc.contract_id = c.contract_id
  180. left join cmc_project_contract as pc on pc.contract_id = c.contract_id
  181. left join cmc_project as p on p.project_id = pc.project_id
  182. group by c.contract_id
  183. order by c.draft_time desc) as t1
  184. left join
  185. (select distinct c.contract_id, sum(sc.sub_amount) as sub_amount from cmc_contract as c
  186. left join cmc_contract_sub_contract as csc on csc.contract_id = c.contract_id
  187. left join cmc_sub_contract as sc on sc.sub_contract_id = csc.sub_contract_id
  188. group by c.contract_id) as t2
  189. on t1.contract_id = t2.contract_id
  190. left join
  191. (select distinct c.contract_id, sum(b.total_budget) as budget_amount from cmc_contract as c
  192. left join cmc_project_contract as pc on pc.contract_id = c.contract_id
  193. left join cmc_project as p on p.project_id = pc.project_id
  194. left join cmc_budget as b on b.project_id = p.project_id
  195. group by c.contract_id) as t3
  196. on t1.contract_id = t3.contract_id
  197. left join
  198. (select distinct c.contract_id, sum(b.manager_amount) as borrow_amount from cmc_contract as c
  199. left join cmc_project_contract as pc on pc.contract_id = c.contract_id
  200. left join cmc_project as p on p.project_id = pc.project_id
  201. left join cmc_borrow as b on b.project_id = p.project_id
  202. group by c.contract_id) as t4
  203. on t1.contract_id = t4.contract_id
  204. left join
  205. (select distinct c.contract_id, sum(ss.amount) as settle_amount from cmc_contract as c
  206. left join cmc_project_contract as pc on pc.contract_id = c.contract_id
  207. left join cmc_project as p on p.project_id = pc.project_id
  208. left join cmc_settle as s on s.project_id = p.project_id
  209. left join cmc_settle_summary as ss on ss.settle_id = s.settle_id
  210. where ss.content = '实际结算总金额'
  211. group by c.contract_id) as t5
  212. on t1.contract_id = t5.contract_id
  213. </select>
  214. <select id="selectCmcContractStatisticByContractId" parameterType="String" resultMap="CmcContractResult" >
  215. select t1.contract_id, t1.contract_name, t1.project_type, t1.project_number, IFNULL(t1.amount, 0) as amount, IFNULL(t2.sub_amount, 0) as sub_amount, IFNULL(t3.budget_amount, 0) as budget_amount, IFNULL(t4.borrow_amount, 0) as borrow_amount, IFNULL(t5.settle_amount, 0) as settle_amount from
  216. (select distinct c.contract_id, c.contract_name, p.project_type, p.project_number, c.amount from cmc_contract as c
  217. left join cmc_contract_sub_contract as csc on csc.contract_id = c.contract_id
  218. left join cmc_project_contract as pc on pc.contract_id = c.contract_id
  219. left join cmc_project as p on p.project_id = pc.project_id
  220. group by c.contract_id
  221. order by c.draft_time desc) as t1
  222. left join
  223. (select distinct c.contract_id, sum(sc.sub_amount) as sub_amount from cmc_contract as c
  224. left join cmc_contract_sub_contract as csc on csc.contract_id = c.contract_id
  225. left join cmc_sub_contract as sc on sc.sub_contract_id = csc.sub_contract_id
  226. group by c.contract_id) as t2
  227. on t1.contract_id = t2.contract_id
  228. left join
  229. (select distinct c.contract_id, sum(b.total_budget) as budget_amount from cmc_contract as c
  230. left join cmc_project_contract as pc on pc.contract_id = c.contract_id
  231. left join cmc_project as p on p.project_id = pc.project_id
  232. left join cmc_budget as b on b.project_id = p.project_id
  233. group by c.contract_id) as t3
  234. on t1.contract_id = t3.contract_id
  235. left join
  236. (select distinct c.contract_id, sum(b.manager_amount) as borrow_amount from cmc_contract as c
  237. left join cmc_project_contract as pc on pc.contract_id = c.contract_id
  238. left join cmc_project as p on p.project_id = pc.project_id
  239. left join cmc_borrow as b on b.project_id = p.project_id
  240. group by c.contract_id) as t4
  241. on t1.contract_id = t4.contract_id
  242. left join
  243. (select distinct c.contract_id, sum(ss.amount) as settle_amount from cmc_contract as c
  244. left join cmc_project_contract as pc on pc.contract_id = c.contract_id
  245. left join cmc_project as p on p.project_id = pc.project_id
  246. left join cmc_settle as s on s.project_id = p.project_id
  247. left join cmc_settle_summary as ss on ss.settle_id = s.settle_id
  248. where ss.content = '实际结算总金额'
  249. group by c.contract_id) as t5
  250. on t1.contract_id = t5.contract_id
  251. where t1.contract_id = #{param}
  252. </select>
  253. <select id="selectCmcContractByContractId" parameterType="String" resultMap="CmcContractResult">
  254. <include refid="selectCmcContractVo"/>
  255. where c.contract_id = #{contractId}
  256. group by c.contract_id
  257. </select>
  258. <insert id="insertCmcContract" parameterType="CmcContract">
  259. insert into cmc_contract
  260. <trim prefix="(" suffix=")" suffixOverrides=",">
  261. <if test="contractId != null">contract_id,</if>
  262. <if test="contractName != null">contract_name,</if>
  263. <if test="contractCode != null">contract_code,</if>
  264. <if test="tenderId != null">tender_id,</if>
  265. <if test="partyAId != null">party_a_id,</if>
  266. <if test="contractNumber != null">contract_number,</if>
  267. <if test="amount != null">amount,</if>
  268. <if test="deposit != null">deposit,</if>
  269. <if test="contractDocument != null">contract_document,</if>
  270. <if test="drafter != null">drafter,</if>
  271. <if test="draftTime != null">draft_time,</if>
  272. <if test="remark != null">remark,</if>
  273. <if test="signDate != null">sign_date,</if>
  274. <if test="signRemark != null">sign_remark,</if>
  275. <if test="signScan != null">sign_scan,</if>
  276. <if test="commentType != null">comment_type,</if>
  277. <if test="managerComment != null">manager_comment,</if>
  278. <if test="managerUserId != null">manager_user_id,</if>
  279. <if test="managerTime != null">manager_time,</if>
  280. <if test="gmUserId != null">gm_user_id,</if>
  281. <if test="gmTime != null">gm_time,</if>
  282. <if test="gmComment != null">gm_comment,</if>
  283. </trim>
  284. <trim prefix="values (" suffix=")" suffixOverrides=",">
  285. <if test="contractId != null">#{contractId},</if>
  286. <if test="contractName != null">#{contractName},</if>
  287. <if test="contractCode != null">#{contractCode},</if>
  288. <if test="tenderId != null">#{tenderId},</if>
  289. <if test="partyAId != null">#{partyAId},</if>
  290. <if test="contractNumber != null">#{contractNumber},</if>
  291. <if test="amount != null">#{amount},</if>
  292. <if test="deposit != null">#{deposit},</if>
  293. <if test="contractDocument != null">#{contractDocument},</if>
  294. <if test="drafter != null">#{drafter},</if>
  295. <if test="draftTime != null">#{draftTime},</if>
  296. <if test="remark != null">#{remark},</if>
  297. <if test="signDate != null">#{signDate},</if>
  298. <if test="signRemark != null">#{signRemark},</if>
  299. <if test="signScan != null">#{signScan},</if>
  300. <if test="commentType != null">#{commentType},</if>
  301. <if test="managerComment != null">#{managerComment},</if>
  302. <if test="managerUserId != null">#{managerUserId},</if>
  303. <if test="managerTime != null">#{managerTime},</if>
  304. <if test="gmUserId != null">#{gmUserId},</if>
  305. <if test="gmTime != null">#{gmTime},</if>
  306. <if test="gmComment != null">#{gmComment},</if>
  307. </trim>
  308. </insert>
  309. <update id="updateCmcContract" parameterType="CmcContract">
  310. update cmc_contract
  311. <trim prefix="SET" suffixOverrides=",">
  312. <if test="contractCode != null">contract_code = #{contractCode},</if>
  313. <if test="contractName != null">contract_name = #{contractName},</if>
  314. <if test="tenderId != null">tender_id = #{tenderId},</if>
  315. <if test="partyAId != null">party_a_id = #{partyAId},</if>
  316. <if test="contractNumber != null">contract_number = #{contractNumber},</if>
  317. <if test="amount != null">amount = #{amount},</if>
  318. <if test="deposit != null">deposit = #{deposit},</if>
  319. <if test="contractDocument != null">contract_document = #{contractDocument},</if>
  320. <if test="drafter != null">drafter = #{drafter},</if>
  321. <if test="draftTime != null">draft_time = #{draftTime},</if>
  322. <if test="remark != null">remark = #{remark},</if>
  323. <if test="signDate != null">sign_date = #{signDate},</if>
  324. <if test="signRemark != null">sign_remark = #{signRemark},</if>
  325. <if test="signScan != null">sign_scan = #{signScan},</if>
  326. <if test="commentType != null">comment_type = #{commentType},</if>
  327. <if test="managerComment != null">manager_comment = #{managerComment},</if>
  328. <if test="managerUserId != null">manager_user_id = #{managerUserId},</if>
  329. <if test="managerTime != null">manager_time = #{managerTime},</if>
  330. <if test="gmUserId != null">gm_user_id = #{gmUserId},</if>
  331. <if test="gmTime != null">gm_time = #{gmTime},</if>
  332. <if test="gmComment != null">gm_comment = #{gmComment},</if>
  333. </trim>
  334. where contract_id = #{contractId}
  335. </update>
  336. <delete id="deleteCmcContractByContractId" parameterType="String">
  337. delete from cmc_contract where contract_id = #{contractId}
  338. </delete>
  339. <delete id="deleteCmcContractByContractIds" parameterType="String">
  340. delete from cmc_contract where contract_id in
  341. <foreach item="contractId" collection="array" open="(" separator="," close=")">
  342. #{contractId}
  343. </foreach>
  344. </delete>
  345. </mapper>