select ym, stockno, Wl_Code, HS_Code, Itemname, EN_NAME, Itemstandard, Machine_no, Stock_dw, PO_PI_NO, Last_qty, last_juan, Last_weight, Last_price, Last_amt, input_qty, input_juan, input_weight, Input_price, Input_amt, output_qty, output_juan, output_weight, Output_price, Output_amt, just_qty, just_juan, just_amt, Just_weight, now_qty, now_juan, Now_weight, now_price, now_amt, Workorder_qty, Canuse_qty, Safety_stock_num, Top_stock_num, Itemclass, Inclass, Default_position, wldm, PCODE, Just_Price, State_name, CRL_NAME, PNAME, juan_m2, m2_price, now_m2_amt, base_code, stockname, p_wldm, ID from stocklist insert into stocklist ym, stockno, Wl_Code, HS_Code, Itemname, EN_NAME, Itemstandard, Machine_no, Stock_dw, PO_PI_NO, Last_qty, last_juan, Last_weight, Last_price, Last_amt, input_qty, input_juan, input_weight, Input_price, Input_amt, output_qty, output_juan, output_weight, Output_price, Output_amt, just_qty, just_juan, just_amt, Just_weight, now_qty, now_juan, Now_weight, now_price, now_amt, Workorder_qty, Canuse_qty, Safety_stock_num, Top_stock_num, Itemclass, Inclass, Default_position, wldm, PCODE, Just_Price, State_name, CRL_NAME, PNAME, juan_m2, m2_price, now_m2_amt, base_code, stockname, p_wldm, ID, #{ym}, #{stockno}, #{wlCode}, #{hsCode}, #{Itemname}, #{enName}, #{Itemstandard}, #{machineNo}, #{stockDw}, #{poPiNo}, #{lastQty}, #{lastJuan}, #{lastWeight}, #{lastPrice}, #{lastAmt}, #{inputQty}, #{inputJuan}, #{inputWeight}, #{inputPrice}, #{inputAmt}, #{outputQty}, #{outputJuan}, #{outputWeight}, #{outputPrice}, #{outputAmt}, #{justQty}, #{justJuan}, #{justAmt}, #{justWeight}, #{nowQty}, #{nowJuan}, #{nowWeight}, #{nowPrice}, #{nowAmt}, #{workorderQty}, #{canuseQty}, #{safetyStockNum}, #{topStockNum}, #{Itemclass}, #{Inclass}, #{defaultPosition}, #{wldm}, #{PCODE}, #{justPrice}, #{stateName}, #{crlName}, #{PNAME}, #{juanM2}, #{m2Price}, #{nowM2Amt}, #{baseCode}, #{stockname}, #{pWldm}, #{ID}, update stocklist stockno = #{stockno}, Wl_Code = #{wlCode}, HS_Code = #{hsCode}, Itemname = #{Itemname}, EN_NAME = #{enName}, Itemstandard = #{Itemstandard}, Machine_no = #{machineNo}, Stock_dw = #{stockDw}, PO_PI_NO = #{poPiNo}, Last_qty = #{lastQty}, last_juan = #{lastJuan}, Last_weight = #{lastWeight}, Last_price = #{lastPrice}, Last_amt = #{lastAmt}, input_qty = #{inputQty}, input_juan = #{inputJuan}, input_weight = #{inputWeight}, Input_price = #{inputPrice}, Input_amt = #{inputAmt}, output_qty = #{outputQty}, output_juan = #{outputJuan}, output_weight = #{outputWeight}, Output_price = #{outputPrice}, Output_amt = #{outputAmt}, just_qty = #{justQty}, just_juan = #{justJuan}, just_amt = #{justAmt}, Just_weight = #{justWeight}, now_qty = #{nowQty}, now_juan = #{nowJuan}, Now_weight = #{nowWeight}, now_price = #{nowPrice}, now_amt = #{nowAmt}, Workorder_qty = #{workorderQty}, Canuse_qty = #{canuseQty}, Safety_stock_num = #{safetyStockNum}, Top_stock_num = #{topStockNum}, Itemclass = #{Itemclass}, Inclass = #{Inclass}, Default_position = #{defaultPosition}, wldm = #{wldm}, PCODE = #{PCODE}, Just_Price = #{justPrice}, State_name = #{stateName}, CRL_NAME = #{crlName}, PNAME = #{PNAME}, juan_m2 = #{juanM2}, m2_price = #{m2Price}, now_m2_amt = #{nowM2Amt}, base_code = #{baseCode}, stockname = #{stockname}, p_wldm = #{pWldm}, ID = #{ID}, where ID = #{ID} delete from stocklist where ID = #{ID} delete from stocklist where ID in #{ID}