ftmsorderbillsfeesMapper.xml 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391
  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.orderPlan.mapper.FtmsorderbillsfeesMapper">
  6. <resultMap type="FTmsorderbillsfees" id="FTmsorderbillsfeesResult">
  7. <result property="fId" column="f_id"/>
  8. <result property="fPid" column="f_pid"/>
  9. <result property="actId" column="act_id"/>
  10. <result property="orgId" column="org_id"/>
  11. <result property="fLineno" column="f_lineno"/>
  12. <result property="fCorpid" column="f_corpid"/>
  13. <result property="fFeeid" column="f_feeid"/>
  14. <result property="fFeeunitid" column="f_feeUnitid"/>
  15. <result property="fQty" column="f_qty"/>
  16. <result property="fUnitprice" column="f_unitprice"/>
  17. <result property="fAmount" column="f_amount"/>
  18. <result property="fCurrency" column="f_currency"/>
  19. <result property="fExrate" column="f_exrate"/>
  20. <result property="fTaxrate" column="f_taxrate"/>
  21. <result property="fDc" column="f_dc"/>
  22. <result property="fReviewDate" column="f_review_date"/>
  23. <result property="fBillstatus" column="f_billstatus"/>
  24. <result property="fStatementNo" column="f_statement_no"/>
  25. <result property="fAccamount" column="f_accamount"/>
  26. <result property="fAccamountDate" column="f_accamount_date"/>
  27. <result property="fStlamountNo" column="f_stlamount_no"/>
  28. <result property="fStlamount" column="f_stlamount"/>
  29. <result property="fStlamountDate" column="f_stlamount_date"/>
  30. <result property="fInvnos" column="f_invnos"/>
  31. <result property="fInvamount" column="f_invamount"/>
  32. <result property="fAskamount" column="f_askamount"/>
  33. <result property="fStatus" column="f_status"/>
  34. <result property="delFlag" column="del_flag"/>
  35. <result property="createBy" column="create_by"/>
  36. <result property="createTime" column="create_time"/>
  37. <result property="updateBy" column="update_by"/>
  38. <result property="updateTime" column="update_time"/>
  39. <result property="remark" column="remark"/>
  40. <result property="srcId" column="src_id"/>
  41. <result property="srcBillNo" column="src_bill_no"/>
  42. <result property="fMblno" column="f_mblno"/>
  43. <result property="fProductName" column="f_product_name"/>
  44. <result property="fMarks" column="f_marks"/>
  45. <result property="fChargedate" column="f_chargedate"/>
  46. <result property="fBillingDeadline" column="f_billing_deadline"/>
  47. <result property="fInventoryDays" column="f_inventory_days"/>
  48. <result property="fAmt" column="f_amt"/>
  49. <result property="fBillingDays" column="f_billing_days"/>
  50. <result property="fBillingQty" column="f_billing_qty"/>
  51. <result property="fBilltype" column="f_billtype"/>
  52. <result property="fBillingway" column="f_billingway"/>
  53. <result property="fBsdate" column="f_bsdate"/>
  54. <result property="fOriginalbilldate" column="f_originalbilldate"/>
  55. <result property="fStltypeid" column="f_stltypeid"/>
  56. <result property="remarks" column="remarks"/>
  57. </resultMap>
  58. <sql id="selectFTmsorderbillsfeesVo">
  59. select f_id, f_pid, act_id ,org_id, f_lineno, f_corpid, f_feeid, f_feeUnitid, f_qty, f_unitprice, f_amount, f_currency, f_exrate, f_taxrate, f_dc, f_review_date, f_billstatus, f_statement_no, f_accamount, f_accamount_date, f_stlamount_no, f_stlamount, f_stlamount_date, f_invnos, f_invamount, f_askamount, f_status, del_flag, create_by, create_time, update_by, update_time, remark, src_id, src_bill_no, f_mblno, f_product_name, f_marks, f_chargedate, f_billing_deadline, f_inventory_days, f_amt, f_billing_days, f_billing_qty, f_billtype, f_billingway, f_bsdate, f_originalbilldate, f_stltypeid, remarks from F_TMSORDERBILLSFEES
  60. </sql>
  61. <select id="selectFTmsorderbillsfeesList" parameterType="FTmsorderbillsfees" resultMap="FTmsorderbillsfeesResult">
  62. <include refid="selectFTmsorderbillsfeesVo"/>
  63. <where>
  64. <if test="fPid != null ">and f_pid = #{fPid}</if>
  65. <if test="actId != null ">and act_id = #{actId}</if>
  66. <if test="orgId != null ">and org_id = #{orgId}</if>
  67. <if test="fLineno != null ">and f_lineno = #{fLineno}</if>
  68. <if test="fCorpid != null ">and f_corpid = #{fCorpid}</if>
  69. <if test="fFeeid != null ">and f_feeid = #{fFeeid}</if>
  70. <if test="fFeeunitid != null ">and f_feeUnitid = #{fFeeunitid}</if>
  71. <if test="fQty != null ">and f_qty = #{fQty}</if>
  72. <if test="fUnitprice != null ">and f_unitprice = #{fUnitprice}</if>
  73. <if test="fAmount != null ">and f_amount = #{fAmount}</if>
  74. <if test="fCurrency != null and fCurrency != ''">and f_currency = #{fCurrency}</if>
  75. <if test="fExrate != null ">and f_exrate = #{fExrate}</if>
  76. <if test="fTaxrate != null ">and f_taxrate = #{fTaxrate}</if>
  77. <if test="fDc != null and fDc != ''">and f_dc = #{fDc}</if>
  78. <if test="fReviewDate != null ">and f_review_date = #{fReviewDate}</if>
  79. <if test="fBillstatus != null ">and f_billstatus = #{fBillstatus}</if>
  80. <if test="fStatementNo != null and fStatementNo != ''">and f_statement_no = #{fStatementNo}</if>
  81. <if test="fAccamount != null ">and f_accamount = #{fAccamount}</if>
  82. <if test="fAccamountDate != null ">and f_accamount_date = #{fAccamountDate}</if>
  83. <if test="fStlamountNo != null and fStlamountNo != ''">and f_stlamount_no = #{fStlamountNo}</if>
  84. <if test="fStlamount != null ">and f_stlamount = #{fStlamount}</if>
  85. <if test="fStlamountDate != null ">and f_stlamount_date = #{fStlamountDate}</if>
  86. <if test="fInvnos != null and fInvnos != ''">and f_invnos = #{fInvnos}</if>
  87. <if test="fInvamount != null ">and f_invamount = #{fInvamount}</if>
  88. <if test="fAskamount != null ">and f_askamount = #{fAskamount}</if>
  89. <if test="fStatus != null ">and f_status = #{fStatus}</if>
  90. <if test="srcId != null ">and src_id = #{srcId}</if>
  91. <if test="srcBillNo != null and srcBillNo != ''">and src_bill_no = #{srcBillNo}</if>
  92. <if test="fMblno != null and fMblno != ''">and f_mblno = #{fMblno}</if>
  93. <if test="fProductName != null and fProductName != ''">and f_product_name like concat('%', #{fProductName},'%')</if>
  94. <if test="fMarks != null and fMarks != ''">and f_marks = #{fMarks}</if>
  95. <if test="fChargedate != null ">and f_chargedate = #{fChargedate}</if>
  96. <if test="fBillingDeadline != null ">and f_billing_deadline = #{fBillingDeadline}</if>
  97. <if test="fInventoryDays != null ">and f_inventory_days = #{fInventoryDays}</if>
  98. <if test="fAmt != null ">and f_amt = #{fAmt}</if>
  99. <if test="fBillingDays != null ">and f_billing_days = #{fBillingDays}</if>
  100. <if test="fBillingQty != null ">and f_billing_qty = #{fBillingQty}</if>
  101. <if test="fBilltype != null and fBilltype != ''">and f_billtype = #{fBilltype}</if>
  102. <if test="fBillingway != null ">and f_billingway = #{fBillingway}</if>
  103. <if test="fBsdate != null ">and f_bsdate = #{fBsdate}</if>
  104. <if test="fOriginalbilldate != null ">and f_originalbilldate = #{fOriginalbilldate}</if>
  105. <if test="fStltypeid != null ">and f_stltypeid = #{fStltypeid}</if>
  106. <if test="remarks != null and remarks != ''">and remarks = #{remarks}</if>
  107. </where>
  108. </select>
  109. <select id="selectFTmsorderbillsfeesById" parameterType="Long" resultMap="FTmsorderbillsfeesResult">
  110. <include refid="selectFTmsorderbillsfeesVo"/>
  111. where f_id = #{fId}
  112. </select>
  113. <select id="selectFTmsorderbillsfeesByPId" parameterType="Long" resultMap="FTmsorderbillsfeesResult">
  114. <include refid="selectFTmsorderbillsfeesVo"/>
  115. where f_pid = #{fId}
  116. </select>
  117. <select id="selectFTmsorderbillsfeesCount" parameterType="FTmsorderbillsfees" resultType="int">
  118. select count(f_id) from F_TMSORDERBILLSFEES
  119. <where>
  120. <if test="fPid != null ">and f_pid = #{fPid}</if>
  121. <if test="actId != null ">and act_id = #{actId}</if>
  122. <if test="orgId != null ">and org_id = #{orgId}</if>
  123. <if test="fLineno != null ">and f_lineno = #{fLineno}</if>
  124. <if test="fCorpid != null ">and f_corpid = #{fCorpid}</if>
  125. <if test="fFeeid != null ">and f_feeid = #{fFeeid}</if>
  126. <if test="fFeeunitid != null ">and f_feeUnitid = #{fFeeunitid}</if>
  127. <if test="fQty != null ">and f_qty = #{fQty}</if>
  128. <if test="fUnitprice != null ">and f_unitprice = #{fUnitprice}</if>
  129. <if test="fAmount != null ">and f_amount = #{fAmount}</if>
  130. <if test="fCurrency != null and fCurrency != ''">and f_currency = #{fCurrency}</if>
  131. <if test="fExrate != null ">and f_exrate = #{fExrate}</if>
  132. <if test="fTaxrate != null ">and f_taxrate = #{fTaxrate}</if>
  133. <if test="fDc != null and fDc != ''">and f_dc = #{fDc}</if>
  134. <if test="fReviewDate != null ">and f_review_date = #{fReviewDate}</if>
  135. <if test="fBillstatus != null ">and f_billstatus = #{fBillstatus}</if>
  136. <if test="fStatementNo != null and fStatementNo != ''">and f_statement_no = #{fStatementNo}</if>
  137. <if test="fAccamount != null ">and f_accamount = #{fAccamount}</if>
  138. <if test="fAccamountDate != null ">and f_accamount_date = #{fAccamountDate}</if>
  139. <if test="fStlamountNo != null and fStlamountNo != ''">and f_stlamount_no = #{fStlamountNo}</if>
  140. <if test="fStlamount != null ">and f_stlamount = #{fStlamount}</if>
  141. <if test="fStlamountDate != null ">and f_stlamount_date = #{fStlamountDate}</if>
  142. <if test="fInvnos != null and fInvnos != ''">and f_invnos = #{fInvnos}</if>
  143. <if test="fInvamount != null ">and f_invamount = #{fInvamount}</if>
  144. <if test="fAskamount != null ">and f_askamount = #{fAskamount}</if>
  145. <if test="fStatus != null ">and f_status = #{fStatus}</if>
  146. <if test="srcId != null ">and src_id = #{srcId}</if>
  147. <if test="srcBillNo != null and srcBillNo != ''">and src_bill_no = #{srcBillNo}</if>
  148. <if test="fMblno != null and fMblno != ''">and f_mblno = #{fMblno}</if>
  149. <if test="fProductName != null and fProductName != ''">and f_product_name like concat('%', #{fProductName},'%')</if>
  150. <if test="fMarks != null and fMarks != ''">and f_marks = #{fMarks}</if>
  151. <if test="fChargedate != null ">and f_chargedate = #{fChargedate}</if>
  152. <if test="fBillingDeadline != null ">and f_billing_deadline = #{fBillingDeadline}</if>
  153. <if test="fInventoryDays != null ">and f_inventory_days = #{fInventoryDays}</if>
  154. <if test="fAmt != null ">and f_amt = #{fAmt}</if>
  155. <if test="fBillingDays != null ">and f_billing_days = #{fBillingDays}</if>
  156. <if test="fBillingQty != null ">and f_billing_qty = #{fBillingQty}</if>
  157. <if test="fBilltype != null and fBilltype != ''">and f_billtype = #{fBilltype}</if>
  158. <if test="fBillingway != null ">and f_billingway = #{fBillingway}</if>
  159. <if test="fBsdate != null ">and f_bsdate = #{fBsdate}</if>
  160. <if test="fOriginalbilldate != null ">and f_originalbilldate = #{fOriginalbilldate}</if>
  161. <if test="fStltypeid != null ">and f_stltypeid = #{fStltypeid}</if>
  162. <if test="remarks != null and remarks != ''">and remarks = #{remarks}</if>
  163. </where>
  164. </select>
  165. <insert id="insertFTmsorderbillsfees" parameterType="FTmsorderbillsfees" useGeneratedKeys="true" keyProperty="fId">
  166. insert into F_TMSORDERBILLSFEES
  167. <trim prefix="(" suffix=")" suffixOverrides=",">
  168. <if test="fId != null">f_id,</if>
  169. <if test="fPid != null">f_pid,</if>
  170. <if test="actId != null">act_id,</if>
  171. <if test="orgId != null">org_id,</if>
  172. <if test="fLineno != null">f_lineno,</if>
  173. <if test="fCorpid != null">f_corpid,</if>
  174. <if test="fFeeid != null">f_feeid,</if>
  175. <if test="fFeeunitid != null">f_feeUnitid,</if>
  176. <if test="fQty != null">f_qty,</if>
  177. <if test="fUnitprice != null">f_unitprice,</if>
  178. <if test="fAmount != null">f_amount,</if>
  179. <if test="fCurrency != null">f_currency,</if>
  180. <if test="fExrate != null">f_exrate,</if>
  181. <if test="fTaxrate != null">f_taxrate,</if>
  182. <if test="fDc != null">f_dc,</if>
  183. <if test="fReviewDate != null">f_review_date,</if>
  184. <if test="fBillstatus != null">f_billstatus,</if>
  185. <if test="fStatementNo != null">f_statement_no,</if>
  186. <if test="fAccamount != null">f_accamount,</if>
  187. <if test="fAccamountDate != null">f_accamount_date,</if>
  188. <if test="fStlamountNo != null">f_stlamount_no,</if>
  189. <if test="fStlamount != null">f_stlamount,</if>
  190. <if test="fStlamountDate != null">f_stlamount_date,</if>
  191. <if test="fInvnos != null">f_invnos,</if>
  192. <if test="fInvamount != null">f_invamount,</if>
  193. <if test="fAskamount != null">f_askamount,</if>
  194. <if test="fStatus != null">f_status,</if>
  195. <if test="delFlag != null">del_flag,</if>
  196. <if test="createBy != null">create_by,</if>
  197. <if test="createTime != null">create_time,</if>
  198. <if test="updateBy != null">update_by,</if>
  199. <if test="updateTime != null">update_time,</if>
  200. <if test="remark != null">remark,</if>
  201. <if test="srcId != null">src_id,</if>
  202. <if test="srcBillNo != null">src_bill_no,</if>
  203. <if test="fMblno != null">f_mblno,</if>
  204. <if test="fProductName != null">f_product_name,</if>
  205. <if test="fMarks != null">f_marks,</if>
  206. <if test="fChargedate != null">f_chargedate,</if>
  207. <if test="fBillingDeadline != null">f_billing_deadline,</if>
  208. <if test="fInventoryDays != null">f_inventory_days,</if>
  209. <if test="fAmt != null">f_amt,</if>
  210. <if test="fBillingDays != null">f_billing_days,</if>
  211. <if test="fBillingQty != null">f_billing_qty,</if>
  212. <if test="fBilltype != null">f_billtype,</if>
  213. <if test="fBillingway != null">f_billingway,</if>
  214. <if test="fBsdate != null">f_bsdate,</if>
  215. <if test="fOriginalbilldate != null">f_originalbilldate,</if>
  216. <if test="fStltypeid != null">f_stltypeid,</if>
  217. <if test="remarks != null">remarks,</if>
  218. </trim>
  219. <trim prefix="values (" suffix=")" suffixOverrides=",">
  220. <if test="fId != null">#{fId},</if>
  221. <if test="fPid != null">#{fPid},</if>
  222. <if test="actId != null">#{actId},</if>
  223. <if test="orgId != null">#{orgId},</if>
  224. <if test="fLineno != null">#{fLineno},</if>
  225. <if test="fCorpid != null">#{fCorpid},</if>
  226. <if test="fFeeid != null">#{fFeeid},</if>
  227. <if test="fFeeunitid != null">#{fFeeunitid},</if>
  228. <if test="fQty != null">#{fQty},</if>
  229. <if test="fUnitprice != null">#{fUnitprice},</if>
  230. <if test="fAmount != null">#{fAmount},</if>
  231. <if test="fCurrency != null">#{fCurrency},</if>
  232. <if test="fExrate != null">#{fExrate},</if>
  233. <if test="fTaxrate != null">#{fTaxrate},</if>
  234. <if test="fDc != null">#{fDc},</if>
  235. <if test="fReviewDate != null">#{fReviewDate},</if>
  236. <if test="fBillstatus != null">#{fBillstatus},</if>
  237. <if test="fStatementNo != null">#{fStatementNo},</if>
  238. <if test="fAccamount != null">#{fAccamount},</if>
  239. <if test="fAccamountDate != null">#{fAccamountDate},</if>
  240. <if test="fStlamountNo != null">#{fStlamountNo},</if>
  241. <if test="fStlamount != null">#{fStlamount},</if>
  242. <if test="fStlamountDate != null">#{fStlamountDate},</if>
  243. <if test="fInvnos != null">#{fInvnos},</if>
  244. <if test="fInvamount != null">#{fInvamount},</if>
  245. <if test="fAskamount != null">#{fAskamount},</if>
  246. <if test="fStatus != null">#{fStatus},</if>
  247. <if test="delFlag != null">#{delFlag},</if>
  248. <if test="createBy != null">#{createBy},</if>
  249. <if test="createTime != null">#{createTime},</if>
  250. <if test="updateBy != null">#{updateBy},</if>
  251. <if test="updateTime != null">#{updateTime},</if>
  252. <if test="remark != null">#{remark},</if>
  253. <if test="srcId != null">#{srcId},</if>
  254. <if test="srcBillNo != null">#{srcBillNo},</if>
  255. <if test="fMblno != null">#{fMblno},</if>
  256. <if test="fProductName != null">#{fProductName},</if>
  257. <if test="fMarks != null">#{fMarks},</if>
  258. <if test="fChargedate != null">#{fChargedate},</if>
  259. <if test="fBillingDeadline != null">#{fBillingDeadline},</if>
  260. <if test="fInventoryDays != null">#{fInventoryDays},</if>
  261. <if test="fAmt != null">#{fAmt},</if>
  262. <if test="fBillingDays != null">#{fBillingDays},</if>
  263. <if test="fBillingQty != null">#{fBillingQty},</if>
  264. <if test="fBilltype != null">#{fBilltype},</if>
  265. <if test="fBillingway != null">#{fBillingway},</if>
  266. <if test="fBsdate != null">#{fBsdate},</if>
  267. <if test="fOriginalbilldate != null">#{fOriginalbilldate},</if>
  268. <if test="fStltypeid != null">#{fStltypeid},</if>
  269. <if test="remarks != null">#{remarks},</if>
  270. </trim>
  271. </insert>
  272. <update id="updateFTmsorderbillsfees" parameterType="FTmsorderbillsfees">
  273. update F_TMSORDERBILLSFEES
  274. <trim prefix="SET" suffixOverrides=",">
  275. <if test="fPid != null">f_pid = #{fPid},</if>
  276. <if test="actId != null">act_id = #{actId},</if>
  277. <if test="orgId != null">org_id = #{orgId},</if>
  278. <if test="fLineno != null">f_lineno = #{fLineno},</if>
  279. <if test="fCorpid != null">f_corpid = #{fCorpid},</if>
  280. <if test="fFeeid != null">f_feeid = #{fFeeid},</if>
  281. <if test="fFeeunitid != null">f_feeUnitid = #{fFeeunitid},</if>
  282. <if test="fQty != null">f_qty = #{fQty},</if>
  283. <if test="fUnitprice != null">f_unitprice = #{fUnitprice},</if>
  284. <if test="fAmount != null">f_amount = #{fAmount},</if>
  285. <if test="fCurrency != null">f_currency = #{fCurrency},</if>
  286. <if test="fExrate != null">f_exrate = #{fExrate},</if>
  287. <if test="fTaxrate != null">f_taxrate = #{fTaxrate},</if>
  288. <if test="fDc != null">f_dc = #{fDc},</if>
  289. <if test="fReviewDate != null">f_review_date = #{fReviewDate},</if>
  290. <if test="fBillstatus != null">f_billstatus = #{fBillstatus},</if>
  291. <if test="fStatementNo != null">f_statement_no = #{fStatementNo},</if>
  292. <if test="fAccamount != null">f_accamount = #{fAccamount},</if>
  293. <if test="fAccamountDate != null">f_accamount_date = #{fAccamountDate},</if>
  294. <if test="fStlamountNo != null">f_stlamount_no = #{fStlamountNo},</if>
  295. <if test="fStlamount != null">f_stlamount = #{fStlamount},</if>
  296. <if test="fStlamountDate != null">f_stlamount_date = #{fStlamountDate},</if>
  297. <if test="fInvnos != null">f_invnos = #{fInvnos},</if>
  298. <if test="fInvamount != null">f_invamount = #{fInvamount},</if>
  299. <if test="fAskamount != null">f_askamount = #{fAskamount},</if>
  300. <if test="fStatus != null">f_status = #{fStatus},</if>
  301. <if test="delFlag != null">del_flag = #{delFlag},</if>
  302. <if test="createBy != null">create_by = #{createBy},</if>
  303. <if test="createTime != null">create_time = #{createTime},</if>
  304. <if test="updateBy != null">update_by = #{updateBy},</if>
  305. <if test="updateTime != null">update_time = #{updateTime},</if>
  306. <if test="remark != null">remark = #{remark},</if>
  307. <if test="srcId != null">src_id = #{srcId},</if>
  308. <if test="srcBillNo != null">src_bill_no = #{srcBillNo},</if>
  309. <if test="fMblno != null">f_mblno = #{fMblno},</if>
  310. <if test="fProductName != null">f_product_name = #{fProductName},</if>
  311. <if test="fMarks != null">f_marks = #{fMarks},</if>
  312. <if test="fChargedate != null">f_chargedate = #{fChargedate},</if>
  313. <if test="fBillingDeadline != null">f_billing_deadline = #{fBillingDeadline},</if>
  314. <if test="fInventoryDays != null">f_inventory_days = #{fInventoryDays},</if>
  315. <if test="fAmt != null">f_amt = #{fAmt},</if>
  316. <if test="fBillingDays != null">f_billing_days = #{fBillingDays},</if>
  317. <if test="fBillingQty != null">f_billing_qty = #{fBillingQty},</if>
  318. <if test="fBilltype != null">f_billtype = #{fBilltype},</if>
  319. <if test="fBillingway != null">f_billingway = #{fBillingway},</if>
  320. <if test="fBsdate != null">f_bsdate = #{fBsdate},</if>
  321. <if test="fOriginalbilldate != null">f_originalbilldate = #{fOriginalbilldate},</if>
  322. <if test="fStltypeid != null">f_stltypeid = #{fStltypeid},</if>
  323. <if test="remarks != null">remarks = #{remarks},</if>
  324. </trim>
  325. where f_id = #{fId}
  326. </update>
  327. <delete id="deleteFTmsorderbillsfees" parameterType="FTmsorderbillsfees">
  328. delete from F_TMSORDERBILLSFEES
  329. <where>
  330. <if test="fId != null ">and f_id = #{fId}</if>
  331. <if test="fPid != null ">and f_pid = #{fPid}</if>
  332. <if test="actId != null ">and act_id = #{actId}</if>
  333. <if test="orgId != null ">and org_id = #{orgId}</if>
  334. </where>
  335. </delete>
  336. <delete id="deleteFTmsorderbillsfeesById" parameterType="Long">
  337. delete from F_TMSORDERBILLSFEES where f_id = #{fId}
  338. </delete>
  339. <delete id="deleteFTmsorderbillsfeesByPId" parameterType="Long">
  340. delete from F_TMSORDERBILLSFEES where f_pid = #{fId}
  341. </delete>
  342. <delete id="deleteFTmsorderbillsfeesByIds" parameterType="String">
  343. delete from F_TMSORDERBILLSFEES where f_id in
  344. <foreach item="fId" collection="array" open="(" separator="," close=")">
  345. #{fId}
  346. </foreach>
  347. </delete>
  348. <update id="updateFTmsorderbillsfee" parameterType="Map">
  349. update F_TMSORDERBILLSFEES
  350. <trim prefix="SET" suffixOverrides=",">
  351. /*判断确认对账*/
  352. <if test="map.billType == 'DZ'">
  353. f_statement_no = #{map.tFee.fBillno},
  354. f_accamount = f_accamount + #{map.tFeeDo.fAmt},
  355. f_accamount_date = #{map.tFee.fAccbilldate}
  356. </if>
  357. /*判断撤销对账*/
  358. <if test="map.billType == 'DZRevoke'">
  359. f_statement_no = #{map.tFee.fBillno},
  360. f_accamount = f_accamount - #{map.tFeeDo.fAmt},
  361. f_accamount_date = #{map.tFee.fAccbilldate}
  362. </if>
  363. /*判断收付款*/
  364. <if test="map.billType == 'DC'">
  365. f_stlamount_no = #{map.tFee.fBillno},
  366. f_stlamount = f_stlamount + #{map.tFeeDo.fAmt},
  367. f_stlamount_date =#{map.tFee.fAccbilldate}
  368. </if>
  369. /*判断撤销收付款*/
  370. <if test="map.billType == 'DCRevoke'">
  371. f_stlamount_no = #{map.tFee.fBillno},
  372. f_stlamount = f_stlamount - #{map.tFeeDo.fAmt},
  373. f_stlamount_date =#{map.tFee.fAccbilldate}
  374. </if>
  375. </trim>
  376. where f_id = #{map.tFeeDo.fSrcid}
  377. </update>
  378. </mapper>