insert into mall_sales_detail_log( msg, tran_direction, msg_date ) VALUES ( #{reqData}, #{merchSn}, sysdate() ) 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, product_category, supplier_name, transaction_type, sale_return_type, remark, creater_sn, create_time )values( #{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}, #{productCategory}, #{supplierName}, #{transactionType}, #{saleReturnType}, #{remark}, #{createSn}, #{createTime} ) insert into mall_sales_detail_log msg, tran_direction, datasyn_time )values( #{msg}, #{tranDirection}, sysdate() ) update mall_sales_detail_data `merch_sn` = #{merchSn}, `merch_sn_name` = #{merchSnName}, `third_merch_sn` = #{thirdMerchSn}, `third_merch_sn_name` = #{thirdMerchSnName}, `store_name` = #{storeName}, `store_name_sn` = #{storeNameSn}, `cash_register_no` = #{cashRegisterNo}, `time_stamp` = #{timeStampDetails}, `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` = #{productSpecification}, `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}, `moder_sn` = #{moderSn}, `mod_time` = #{modTime}, WHERE receipt_no = #{receiptNo} AND ematou_code = #{ematouCode}