select id, merch_sn, merch_sn_name, third_merch_sn, third_merch_sn_name, receipt_no, store_name, store_name_sn, cash_register_no, time_stamp, staff_id, staff_name, pay_flag, order_status, order_sn_wx, order_sn_ali, hs_code, hs_code_name, ematou_code, plu, mychem_id, product_name_en, product_name_cn, barcode, pack_size, product_spec, brand, edlp, current_price, cost_price, tax_price, tax_rate, product_category, supplier_name, transaction_type, sale_return_type, remark, creater_sn, create_time, moder_sn, mod_time, tstm from mall_sales_detail_data insert into mall_sales_detail_data merch_sn, merch_sn_name, third_merch_sn, third_merch_sn_name, receipt_no, store_name, store_name_sn, cash_register_no, time_stamp, staff_id, staff_name, pay_flag, order_status, order_sn_wx, order_sn_ali, hs_code, hs_code_name, ematou_code, plu, mychem_id, product_name_en, product_name_cn, barcode, pack_size, product_spec, brand, edlp, current_price, cost_price, tax_price, tax_rate, product_category, supplier_name, transaction_type, sale_return_type, remark, creater_sn, create_time, moder_sn, mod_time, tstm, #{merchSn}, #{merchSnName}, #{thirdMerchSn}, #{thirdMerchSnName}, #{receiptNo}, #{storeName}, #{storeNameSn}, #{cashRegisterNo}, #{timeStamp}, #{staffId}, #{staffName}, #{payFlag}, #{orderStatus}, #{orderSnWx}, #{orderSnAli}, #{hsCode}, #{hsCodeName}, #{ematouCode}, #{plu}, #{mychemId}, #{productNameEn}, #{productNameCn}, #{barcode}, #{packSize}, #{productSpec}, #{brand}, #{edlp}, #{currentPrice}, #{costPrice}, #{taxPrice}, #{taxRate}, #{productCategory}, #{supplierName}, #{transactionType}, #{saleReturnType}, #{remark}, #{createrSn}, #{createTime}, #{moderSn}, #{modTime}, #{tstm}, update mall_sales_detail_data merch_sn = #{merchSn}, merch_sn_name = #{merchSnName}, third_merch_sn = #{thirdMerchSn}, third_merch_sn_name = #{thirdMerchSnName}, receipt_no = #{receiptNo}, store_name = #{storeName}, store_name_sn = #{storeNameSn}, cash_register_no = #{cashRegisterNo}, time_stamp = #{timeStamp}, staff_id = #{staffId}, staff_name = #{staffName}, pay_flag = #{payFlag}, order_status = #{orderStatus}, order_sn_wx = #{orderSnWx}, order_sn_ali = #{orderSnAli}, hs_code = #{hsCode}, hs_code_name = #{hsCodeName}, ematou_code = #{ematouCode}, plu = #{plu}, mychem_id = #{mychemId}, product_name_en = #{productNameEn}, product_name_cn = #{productNameCn}, barcode = #{barcode}, pack_size = #{packSize}, product_spec = #{productSpec}, brand = #{brand}, edlp = #{edlp}, current_price = #{currentPrice}, cost_price = #{costPrice}, tax_price = #{taxPrice}, tax_rate = #{taxRate}, product_category = #{productCategory}, supplier_name = #{supplierName}, transaction_type = #{transactionType}, sale_return_type = #{saleReturnType}, remark = #{remark}, creater_sn = #{createrSn}, create_time = #{createTime}, moder_sn = #{moderSn}, mod_time = #{modTime}, tstm = #{tstm}, where id = #{id} delete from mall_sales_detail_data where id = #{id} delete from mall_sales_detail_data where id in #{id}