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
insert into F_TMSORDERBILLSFEES
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,
#{fId},
#{fPid},
#{actId},
#{orgId},
#{fLineno},
#{fCorpid},
#{fFeeid},
#{fFeeunitid},
#{fQty},
#{fUnitprice},
#{fAmount},
#{fCurrency},
#{fExrate},
#{fTaxrate},
#{fDc},
#{fReviewDate},
#{fBillstatus},
#{fStatementNo},
#{fAccamount},
#{fAccamountDate},
#{fStlamountNo},
#{fStlamount},
#{fStlamountDate},
#{fInvnos},
#{fInvamount},
#{fAskamount},
#{fStatus},
#{delFlag},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{remark},
#{srcId},
#{srcBillNo},
#{fMblno},
#{fProductName},
#{fMarks},
#{fChargedate},
#{fBillingDeadline},
#{fInventoryDays},
#{fAmt},
#{fBillingDays},
#{fBillingQty},
#{fBilltype},
#{fBillingway},
#{fBsdate},
#{fOriginalbilldate},
#{fStltypeid},
#{remarks},
update F_TMSORDERBILLSFEES
f_pid = #{fPid},
act_id = #{actId},
org_id = #{orgId},
f_lineno = #{fLineno},
f_corpid = #{fCorpid},
f_feeid = #{fFeeid},
f_feeUnitid = #{fFeeunitid},
f_qty = #{fQty},
f_unitprice = #{fUnitprice},
f_amount = #{fAmount},
f_currency = #{fCurrency},
f_exrate = #{fExrate},
f_taxrate = #{fTaxrate},
f_dc = #{fDc},
f_review_date = #{fReviewDate},
f_billstatus = #{fBillstatus},
f_statement_no = #{fStatementNo},
f_accamount = #{fAccamount},
f_accamount_date = #{fAccamountDate},
f_stlamount_no = #{fStlamountNo},
f_stlamount = #{fStlamount},
f_stlamount_date = #{fStlamountDate},
f_invnos = #{fInvnos},
f_invamount = #{fInvamount},
f_askamount = #{fAskamount},
f_status = #{fStatus},
del_flag = #{delFlag},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
remark = #{remark},
src_id = #{srcId},
src_bill_no = #{srcBillNo},
f_mblno = #{fMblno},
f_product_name = #{fProductName},
f_marks = #{fMarks},
f_chargedate = #{fChargedate},
f_billing_deadline = #{fBillingDeadline},
f_inventory_days = #{fInventoryDays},
f_amt = #{fAmt},
f_billing_days = #{fBillingDays},
f_billing_qty = #{fBillingQty},
f_billtype = #{fBilltype},
f_billingway = #{fBillingway},
f_bsdate = #{fBsdate},
f_originalbilldate = #{fOriginalbilldate},
f_stltypeid = #{fStltypeid},
remarks = #{remarks},
where f_id = #{fId}
delete from F_TMSORDERBILLSFEES
and f_id = #{fId}
and f_pid = #{fPid}
and act_id = #{actId}
and org_id = #{orgId}
delete from F_TMSORDERBILLSFEES where f_id = #{fId}
delete from F_TMSORDERBILLSFEES where f_pid = #{fId}
delete from F_TMSORDERBILLSFEES where f_id in
#{fId}
update F_TMSORDERBILLSFEES
/*判断确认对账*/
f_statement_no = #{map.tFee.fBillno},
f_accamount = f_accamount + #{map.tFeeDo.fAmt},
f_accamount_date = #{map.tFee.fAccbilldate}
/*判断撤销对账*/
f_statement_no = #{map.tFee.fBillno},
f_accamount = f_accamount - #{map.tFeeDo.fAmt},
f_accamount_date = #{map.tFee.fAccbilldate}
/*判断收付款*/
f_stlamount_no = #{map.tFee.fBillno},
f_stlamount = f_stlamount + #{map.tFeeDo.fAmt},
f_stlamount_date =#{map.tFee.fAccbilldate}
/*判断撤销收付款*/
f_stlamount_no = #{map.tFee.fBillno},
f_stlamount = f_stlamount - #{map.tFeeDo.fAmt},
f_stlamount_date =#{map.tFee.fAccbilldate}
where f_id = #{map.tFeeDo.fSrcid}