select BCP_CODE, BCP_NAME, BCP_TYPE, BCP_Machine_NO, BCP_DW, Wl_Code, Itemname, Itemstandard, Stock_dw, Use_Num, lostpre, zp_guige, zp_use_num, m_qty, memolist, pno, Addtime, Mould_No, Comfirm_Flag, Comfirm_man, Comfirm_date, write_man, GongCha, Factory_Mould_no, Main_Material, gongcha_more, gongcha_small, changtime, CP_NUM, worklineclass from bcp_bom
insert into bcp_bom
BCP_CODE,
BCP_NAME,
BCP_TYPE,
BCP_Machine_NO,
BCP_DW,
Wl_Code,
Itemname,
Itemstandard,
Stock_dw,
Use_Num,
lostpre,
zp_guige,
zp_use_num,
m_qty,
memolist,
pno,
Addtime,
Mould_No,
Comfirm_Flag,
Comfirm_man,
Comfirm_date,
write_man,
GongCha,
Factory_Mould_no,
Main_Material,
gongcha_more,
gongcha_small,
changtime,
CP_NUM,
worklineclass,
#{bcpCode},
#{bcpName},
#{bcpType},
#{bcpMachineNo},
#{bcpDw},
#{wlCode},
#{Itemname},
#{Itemstandard},
#{stockDw},
#{useNum},
#{lostpre},
#{zpGuige},
#{zpUseNum},
#{mQty},
#{memolist},
#{pno},
#{Addtime},
#{mouldNo},
#{comfirmFlag},
#{comfirmMan},
#{comfirmDate},
#{writeMan},
#{GongCha},
#{factoryMouldNo},
#{mainMaterial},
#{gongchaMore},
#{gongchaSmall},
#{changtime},
#{cpNum},
#{worklineclass},
update bcp_bom
BCP_NAME = #{bcpName},
BCP_TYPE = #{bcpType},
BCP_Machine_NO = #{bcpMachineNo},
BCP_DW = #{bcpDw},
Wl_Code = #{wlCode},
Itemname = #{Itemname},
Itemstandard = #{Itemstandard},
Stock_dw = #{stockDw},
Use_Num = #{useNum},
lostpre = #{lostpre},
zp_guige = #{zpGuige},
zp_use_num = #{zpUseNum},
m_qty = #{mQty},
memolist = #{memolist},
pno = #{pno},
Addtime = #{Addtime},
Mould_No = #{mouldNo},
Comfirm_Flag = #{comfirmFlag},
Comfirm_man = #{comfirmMan},
Comfirm_date = #{comfirmDate},
write_man = #{writeMan},
GongCha = #{GongCha},
Factory_Mould_no = #{factoryMouldNo},
Main_Material = #{mainMaterial},
gongcha_more = #{gongchaMore},
gongcha_small = #{gongchaSmall},
changtime = #{changtime},
CP_NUM = #{cpNum},
worklineclass = #{worklineclass},
where BCP_CODE = #{bcpCode}
delete from bcp_bom where BCP_CODE = #{bcpCode}
delete from bcp_bom where BCP_CODE in
#{bcpCode}