select id, settle_bill_no, settle_bill_name, settle_type, settle_start_date, settle_end_date, bill_month, rec_money, reced_money, invoiced_money, cust_no, cust_name, customer_code, customer_name, site_code, site_name, satisfy_money, allowance_money, deduction_money, other_money, satisfy_reason, allowance_reason, deduction_reason, other_reason, open_bill_status, payment_status, charge_status, send_piece_sum, piece_number, fee_weight, uncollected_amount, send_money_sum, refund_amount, refund_money, payee, salesmen, credit_period, credit_period_type, settle_day, payment_due_date, bl_send_oms, bl_confirm_center, confirm_center_date, confirm_center_note, confirm_center_man_code, confirm_center_code, bl_confirm_site, confirm_site_date, confirm_site_man_code, confirm_site_note, confirm_site_code, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_settle_bill a
insert into emis_settle_bill
settle_bill_no,
settle_bill_name,
settle_type,
settle_start_date,
settle_end_date,
bill_month,
rec_money,
reced_money,
invoiced_money,
cust_no,
cust_name,
customer_code,
customer_name,
site_code,
site_name,
satisfy_money,
allowance_money,
deduction_money,
other_money,
satisfy_reason,
allowance_reason,
deduction_reason,
other_reason,
open_bill_status,
payment_status,
charge_status,
send_piece_sum,
piece_number,
fee_weight,
uncollected_amount,
send_money_sum,
refund_amount,
refund_money,
payee,
salesmen,
credit_period,
credit_period_type,
settle_day,
payment_due_date,
bl_send_oms,
bl_confirm_center,
confirm_center_date,
confirm_center_note,
confirm_center_man_code,
confirm_center_code,
bl_confirm_site,
confirm_site_date,
confirm_site_man_code,
confirm_site_note,
confirm_site_code,
remark,
del_flag,
create_by,
create_time,
update_by,
update_time,
create_site,
update_site,
#{settleBillNo},
#{settleBillName},
#{settleType},
#{settleStartDate},
#{settleEndDate},
#{billMonth},
#{recMoney},
#{recedMoney},
#{invoicedMoney},
#{custNo},
#{custName},
#{customerCode},
#{customerName},
#{siteCode},
#{siteName},
#{satisfyMoney},
#{allowanceMoney},
#{deductionMoney},
#{otherMoney},
#{satisfyReason},
#{allowanceReason},
#{deductionReason},
#{otherReason},
#{openBillStatus},
#{paymentStatus},
#{chargeStatus},
#{sendPieceSum},
#{pieceNumber},
#{feeWeight},
#{uncollectedAmount},
#{sendMoneySum},
#{refundAmount},
#{refundMoney},
#{payee},
#{salesmen},
#{creditPeriod},
#{creditPeriodType},
#{settleDay},
#{paymentDueDate},
#{blSendOms},
#{blConfirmCenter},
#{confirmCenterDate},
#{confirmCenterNote},
#{confirmCenterManCode},
#{confirmCenterCode},
#{blConfirmSite},
#{confirmSiteDate},
#{confirmSiteManCode},
#{confirmSiteNote},
#{confirmSiteCode},
#{remark},
#{delFlag},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{createSite},
#{updateSite},
update emis_settle_bill
settle_bill_name = #{settleBillName},
settle_type = #{settleType},
settle_start_date = #{settleStartDate},
settle_end_date = #{settleEndDate},
bill_month = #{billMonth},
rec_money = #{recMoney},
reced_money = #{recedMoney},
invoiced_money = #{invoicedMoney},
cust_no = #{custNo},
cust_name = #{custName},
customer_code = #{customerCode},
customer_name = #{customerName},
site_code = #{siteCode},
site_name = #{siteName},
satisfy_money = #{satisfyMoney},
allowance_money = #{allowanceMoney},
deduction_money = #{deductionMoney},
other_money = #{otherMoney},
satisfy_reason = #{satisfyReason},
allowance_reason = #{allowanceReason},
deduction_reason = #{deductionReason},
other_reason = #{otherReason},
open_bill_status = #{openBillStatus},
payment_status = #{paymentStatus},
charge_status = #{chargeStatus},
send_piece_sum = #{sendPieceSum},
piece_number = #{pieceNumber},
fee_weight = #{feeWeight},
uncollected_amount = #{uncollectedAmount},
send_money_sum = #{sendMoneySum},
refund_amount = #{refundAmount},
refund_money = #{refundMoney},
payee = #{payee},
salesmen = #{salesmen},
credit_period = #{creditPeriod},
credit_period_type = #{creditPeriodType},
settle_day = #{settleDay},
payment_due_date = #{paymentDueDate},
bl_send_oms = #{blSendOms},
bl_confirm_center = #{blConfirmCenter},
confirm_center_date = #{confirmCenterDate},
confirm_center_note = #{confirmCenterNote},
confirm_center_man_code = #{confirmCenterManCode},
confirm_center_code = #{confirmCenterCode},
bl_confirm_site = #{blConfirmSite},
confirm_site_date = #{confirmSiteDate},
confirm_site_man_code = #{confirmSiteManCode},
confirm_site_note = #{confirmSiteNote},
confirm_site_code = #{confirmSiteCode},
remark = #{remark},
del_flag = #{delFlag},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
create_site = #{createSite},
update_site = #{updateSite},
where id = #{id}
update emis_settle_bill set del_flag='1' where id = #{id}
update emis_settle_bill set del_flag='1' where id in
#{id}