select SaleOrderID, Wl_Code, Itemname, Itemstandard, Machine_no, Stock_dw, Crl_Name, Price, P_Code, P_Name, SendDate, Memo_TEXT, IsNowPrice, RMB_Price, Tax_flag, ComFirm_Flag, ComFirm_MAN, ComFirm_Date, write_man, Auditing_Flag, Auditing_man, Auditing_Datetime, Approve_flag, Approve_MAN, Approve_DATE, last_price, last_crl_name, tax_percent, no_tax_price, tax_price from productprice insert into productprice SaleOrderID, Wl_Code, Itemname, Itemstandard, Machine_no, Stock_dw, Crl_Name, Price, P_Code, P_Name, SendDate, Memo_TEXT, IsNowPrice, RMB_Price, Tax_flag, ComFirm_Flag, ComFirm_MAN, ComFirm_Date, write_man, Auditing_Flag, Auditing_man, Auditing_Datetime, Approve_flag, Approve_MAN, Approve_DATE, last_price, last_crl_name, tax_percent, no_tax_price, tax_price, #{SaleOrderID}, #{wlCode}, #{Itemname}, #{Itemstandard}, #{machineNo}, #{stockDw}, #{crlName}, #{Price}, #{pCode}, #{pName}, #{SendDate}, #{memoText}, #{IsNowPrice}, #{rmbPrice}, #{taxFlag}, #{comfirmFlag}, #{comfirmMan}, #{comfirmDate}, #{writeMan}, #{auditingFlag}, #{auditingMan}, #{auditingDatetime}, #{approveFlag}, #{approveMan}, #{approveDate}, #{lastPrice}, #{lastCrlName}, #{taxPercent}, #{noTaxPrice}, #{taxPrice}, update productprice Wl_Code = #{wlCode}, Itemname = #{Itemname}, Itemstandard = #{Itemstandard}, Machine_no = #{machineNo}, Stock_dw = #{stockDw}, Crl_Name = #{crlName}, Price = #{Price}, P_Code = #{pCode}, P_Name = #{pName}, SendDate = #{SendDate}, Memo_TEXT = #{memoText}, IsNowPrice = #{IsNowPrice}, RMB_Price = #{rmbPrice}, Tax_flag = #{taxFlag}, ComFirm_Flag = #{comfirmFlag}, ComFirm_MAN = #{comfirmMan}, ComFirm_Date = #{comfirmDate}, write_man = #{writeMan}, Auditing_Flag = #{auditingFlag}, Auditing_man = #{auditingMan}, Auditing_Datetime = #{auditingDatetime}, Approve_flag = #{approveFlag}, Approve_MAN = #{approveMan}, Approve_DATE = #{approveDate}, last_price = #{lastPrice}, last_crl_name = #{lastCrlName}, tax_percent = #{taxPercent}, no_tax_price = #{noTaxPrice}, tax_price = #{taxPrice}, where SaleOrderID = #{SaleOrderID} UPDATE productprice SET ComFirm_Flag = '1',ComFirm_MAN = #{Name},ComFirm_Date = #{Date} WHERE SaleOrderID = #{Id} UPDATE productprice SET Auditing_Flag = '1',Auditing_man = #{Name},Auditing_Datetime = #{Date} WHERE SaleOrderID = #{Id} UPDATE productprice SET Approve_flag = '1',Approve_MAN = #{Name},Approve_DATE = #{Date} WHERE SaleOrderID = #{Id} delete from productprice where SaleOrderID = #{SaleOrderID} delete from productprice where SaleOrderID in #{SaleOrderID}