select id, change_num, original_num, valid_num, third_party_merch_code, merch_sn, is_valid, creater_sn, create_time, moder_sn, mod_time, tstm, goods_id, change_type, change_reason from mall_mng_change insert into mall_mng_change id, change_num, original_num, valid_num, third_party_merch_code, merch_sn, is_valid, creater_sn, create_time, moder_sn, mod_time, tstm, goods_id, change_type, change_reason, #{id}, #{changeNum}, #{originalNum}, #{validNum}, #{thirdPartyMerchCode}, #{merchSn}, #{isValid}, #{createrSn}, #{createTime}, #{moderSn}, #{modTime}, #{tstm}, #{goodsId}, #{changeType}, #{changeReason}, update mall_mng_change change_num = #{changeNum}, original_num = #{originalNum}, valid_num = #{validNum}, third_party_merch_code = #{thirdPartyMerchCode}, merch_sn = #{merchSn}, is_valid = #{isValid}, creater_sn = #{createrSn}, create_time = #{createTime}, moder_sn = #{moderSn}, mod_time = #{modTime}, tstm = #{tstm}, goods_id = #{goodsId}, change_type = #{changeType}, change_reason = #{changeReason}, where id = #{id} delete from mall_mng_change where id = #{id} delete from mall_mng_change where id in #{id} 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_rate, tax_price, product_category, supplier_name, transaction_type, sale_return_type, remark, #{merchSn}, #{merchSnName}, #{thirdMerchSn}, #{thirdMerchSnName}, #{receiptNo}, #{storeName}, #{storeNameSn}, #{cashRegisterNo}, #{timeStampDetails}, #{staffID}, #{staffName}, #{payFlag}, #{orderStatus}, #{orderSnWx}, #{orderSnAli}, #{hsCode}, #{hsCodeName}, #{ematouCode}, #{plu}, #{mychemID}, #{productNameEN}, #{productNameCN}, #{barcode}, #{packSize}, #{productSpecification}, #{brand}, #{edlp}, #{currentPrice}, #{costPrice}, #{taxRate}, #{taxPrice}, #{productCategory}, #{supplierName}, #{transactionType}, #{saleReturnType}, #{remark}, insert into mall_sales_detail_log( msg, tran_direction, msg_date )values( #{msg}, #{tranDirection}, sysdate() )