select PO_ID, PO_NO, P_CODE, P_Name, P_LinkMan, P_TEL, P_FAX, Send_Address, GetMoneyMemo, Sendmemo, Sendway, PO_date, PO_Class, PO_man, BZ_memo, End_flag, China_in_or_out, Is_delete, TaxPercent, APP_ID, Comfirm_Flag, Comfirm_man, Comfirm_date, Auditing_Flag, Auditing_MAN, Auditing_DATE, Approve_Flag, Approve_MAN, Approve_DATE, PO_P_NAME, JA_MAN, JA_TIME, Apply_ID, SaleOrderNO from buyorder_head insert into buyorder_head PO_ID, PO_NO, P_CODE, P_Name, P_LinkMan, P_TEL, P_FAX, Send_Address, GetMoneyMemo, Sendmemo, Sendway, PO_date, PO_Class, PO_man, BZ_memo, End_flag, China_in_or_out, Is_delete, TaxPercent, APP_ID, Comfirm_Flag, Comfirm_man, Comfirm_date, Auditing_Flag, Auditing_MAN, Auditing_DATE, Approve_Flag, Approve_MAN, Approve_DATE, PO_P_NAME, JA_MAN, JA_TIME, Apply_ID, SaleOrderNO, #{poId}, #{poNo}, #{pCode}, #{pName}, #{pLinkman}, #{pTel}, #{pFax}, #{sendAddress}, #{GetMoneyMemo}, #{Sendmemo}, #{Sendway}, #{poDate}, #{poClass}, #{poMan}, #{bzMemo}, #{endFlag}, #{chinaInOrOut}, #{isDelete}, #{TaxPercent}, #{appId}, #{comfirmFlag}, #{comfirmMan}, #{comfirmDate}, #{auditingFlag}, #{auditingMan}, #{auditingDate}, #{approveFlag}, #{approveMan}, #{approveDate}, #{poPName}, #{jaMan}, #{jaTime}, #{applyId}, #{SaleOrderNO}, update buyorder_head PO_NO = #{poNo}, P_CODE = #{pCode}, P_Name = #{pName}, P_LinkMan = #{pLinkman}, P_TEL = #{pTel}, P_FAX = #{pFax}, Send_Address = #{sendAddress}, GetMoneyMemo = #{GetMoneyMemo}, Sendmemo = #{Sendmemo}, Sendway = #{Sendway}, PO_date = #{poDate}, PO_Class = #{poClass}, PO_man = #{poMan}, BZ_memo = #{bzMemo}, End_flag = #{endFlag}, China_in_or_out = #{chinaInOrOut}, Is_delete = #{isDelete}, TaxPercent = #{TaxPercent}, APP_ID = #{appId}, Comfirm_Flag = #{comfirmFlag}, Comfirm_man = #{comfirmMan}, Comfirm_date = #{comfirmDate}, Auditing_Flag = #{auditingFlag}, Auditing_MAN = #{auditingMan}, Auditing_DATE = #{auditingDate}, Approve_Flag = #{approveFlag}, Approve_MAN = #{approveMan}, Approve_DATE = #{approveDate}, PO_P_NAME = #{poPName}, JA_MAN = #{jaMan}, JA_TIME = #{jaTime}, Apply_ID = #{applyId}, SaleOrderNO = #{SaleOrderNO}, where PO_ID = #{poId} delete from buyorder_head where PO_ID = #{poId} delete from buyorder_head where PO_ID in #{poId}