select SaleorderNO, P_Name, Wl_Code, Itemname, Qty, OrderQty, Q_Qty, ZZGD_OrderQty, ZZGD_Q_Qty, SendDate, Factory, PI_NO from view_saleorder_h_l
insert into view_saleorder_h_l
SaleorderNO,
P_Name,
Wl_Code,
Itemname,
Qty,
OrderQty,
Q_Qty,
ZZGD_OrderQty,
ZZGD_Q_Qty,
SendDate,
Factory,
PI_NO,
#{SaleorderNO},
#{pName},
#{wlCode},
#{Itemname},
#{Qty},
#{OrderQty},
#{qQty},
#{zzgdOrderqty},
#{zzgdQQty},
#{SendDate},
#{Factory},
#{piNo},
update view_saleorder_h_l
P_Name = #{pName},
Wl_Code = #{wlCode},
Itemname = #{Itemname},
Qty = #{Qty},
OrderQty = #{OrderQty},
Q_Qty = #{qQty},
ZZGD_OrderQty = #{zzgdOrderqty},
ZZGD_Q_Qty = #{zzgdQQty},
SendDate = #{SendDate},
Factory = #{Factory},
PI_NO = #{piNo},
where SaleorderNO = #{SaleorderNO}
delete from view_saleorder_h_l where SaleorderNO = #{SaleorderNO}
delete from view_saleorder_h_l where SaleorderNO in
#{SaleorderNO}