select inputID, inputNO, PO_NO, P_CODE, P_Name, P_LinkMan, P_TEL, P_FAX, StockNO, StockName, Stockman, inputclass, inputdate, China_in_or_out, BZ_memo, Cancel_Flag, Itemclass, Work_NO, PI_NO, inputvoice, NWX, ym, PQC_ID, InClassFlag, Comfirm_Flag, PO_ID, Auditing_Flag, Approve_Flag, machineno, machinename, writeman, INQC_ID, QC_ID, InsertTime, DayWriteFlag, Produce_Class, TID, DB_ID, Have_VS_Account, Have_VS_Man, Have_VS_time, Workline_NO, HS_YM from inputhead
insert into inputhead
inputID,
inputNO,
PO_NO,
P_CODE,
P_Name,
P_LinkMan,
P_TEL,
P_FAX,
StockNO,
StockName,
Stockman,
inputclass,
inputdate,
China_in_or_out,
BZ_memo,
Cancel_Flag,
Itemclass,
Work_NO,
PI_NO,
inputvoice,
NWX,
ym,
PQC_ID,
InClassFlag,
Comfirm_Flag,
PO_ID,
Auditing_Flag,
Approve_Flag,
machineno,
machinename,
writeman,
INQC_ID,
QC_ID,
InsertTime,
DayWriteFlag,
Produce_Class,
TID,
DB_ID,
Have_VS_Account,
Have_VS_Man,
Have_VS_time,
Workline_NO,
HS_YM,
#{inputID},
#{inputNO},
#{poNo},
#{pCode},
#{pName},
#{pLinkman},
#{pTel},
#{pFax},
#{StockNO},
#{StockName},
#{Stockman},
#{inputclass},
#{inputdate},
#{chinaInOrOut},
#{bzMemo},
#{cancelFlag},
#{Itemclass},
#{workNo},
#{piNo},
#{inputvoice},
#{NWX},
#{ym},
#{pqcId},
#{InClassFlag},
#{comfirmFlag},
#{poId},
#{auditingFlag},
#{approveFlag},
#{machineno},
#{machinename},
#{writeman},
#{inqcId},
#{qcId},
#{InsertTime},
#{DayWriteFlag},
#{produceClass},
#{TID},
#{dbId},
#{haveVsAccount},
#{haveVsMan},
#{haveVsTime},
#{worklineNo},
#{hsYm},
update inputhead
inputNO = #{inputNO},
PO_NO = #{poNo},
P_CODE = #{pCode},
P_Name = #{pName},
P_LinkMan = #{pLinkman},
P_TEL = #{pTel},
P_FAX = #{pFax},
StockNO = #{StockNO},
StockName = #{StockName},
Stockman = #{Stockman},
inputclass = #{inputclass},
inputdate = #{inputdate},
China_in_or_out = #{chinaInOrOut},
BZ_memo = #{bzMemo},
Cancel_Flag = #{cancelFlag},
Itemclass = #{Itemclass},
Work_NO = #{workNo},
PI_NO = #{piNo},
inputvoice = #{inputvoice},
NWX = #{NWX},
ym = #{ym},
PQC_ID = #{pqcId},
InClassFlag = #{InClassFlag},
Comfirm_Flag = #{comfirmFlag},
PO_ID = #{poId},
Auditing_Flag = #{auditingFlag},
Approve_Flag = #{approveFlag},
machineno = #{machineno},
machinename = #{machinename},
writeman = #{writeman},
INQC_ID = #{inqcId},
QC_ID = #{qcId},
InsertTime = #{InsertTime},
DayWriteFlag = #{DayWriteFlag},
Produce_Class = #{produceClass},
TID = #{TID},
DB_ID = #{dbId},
Have_VS_Account = #{haveVsAccount},
Have_VS_Man = #{haveVsMan},
Have_VS_time = #{haveVsTime},
Workline_NO = #{worklineNo},
HS_YM = #{hsYm},
where inputID = #{inputID}
delete from inputhead where inputID = #{inputID}
delete from inputhead where inputID in
#{inputID}