select receive_bill_id, erp_id, fentry_id, bill_no, po_no, document_status, material_id, material_code, material_name, fs_bill_id, fs_id, act_land_amount, act_receive_amount, approve_date, erp_modify_date, purchase_org_id, tond_base, price, supplier_id, remark, create_by, create_time, update_by, update_time from mes_purchase_receive_bill
insert into mes_purchase_receive_bill
erp_id,
fentry_id,
bill_no,
po_no,
document_status,
material_id,
material_code,
material_name,
fs_bill_id,
fs_id,
act_land_amount,
act_receive_amount,
approve_date,
erp_modify_date,
purchase_org_id,
tond_base,
price,
supplier_id,
remark,
create_by,
create_time,
update_by,
update_time,
#{erpId},
#{fentryId},
#{billNo},
#{poNo},
#{documentStatus},
#{materialId},
#{materialCode},
#{materialName},
#{fsBillId},
#{fsId},
#{actLandAmount},
#{actReceiveAmount},
#{approveDate},
#{erpModifyDate},
#{purchaseOrgId},
#{tondBase},
#{price},
#{supplierId},
#{remark},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
update mes_purchase_receive_bill
erp_id = #{erpId},
fentry_id = #{fentryId},
bill_no = #{billNo},
po_no = #{poNo},
document_status = #{documentStatus},
material_id = #{materialId},
material_code = #{materialCode},
material_name = #{materialName},
fs_bill_id = #{fsBillId},
fs_id = #{fsId},
act_land_amount = #{actLandAmount},
act_receive_amount = #{actReceiveAmount},
approve_date = #{approveDate},
erp_modify_date = #{erpModifyDate},
purchase_org_id = #{purchaseOrgId},
tond_base = #{tondBase},
price = #{price},
supplier_id = #{supplierId},
remark = #{remark},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
where receive_bill_id = #{receiveBillId}
delete from mes_purchase_receive_bill where receive_bill_id = #{receiveBillId}
delete from mes_purchase_receive_bill where receive_bill_id in
#{receiveBillId}