select id, type, main_order_id,returnshow,ismany,returnrealmoney, returnstatus,order_id,returntime,returnmoney,returnfinshtime,returntype,returnreason,returnfiledata,returnlogistics,returnlogisticscode,returnjson, transaction_id,forserviceid,isforservice,isself,coupon_id,shopadresssid, uid, product_id, name, phone, address, num, total_price, good_price, service_price, pay_price, deduction, postage, pay_time, status, delivery_id, delivery_num, send_time, mark, address_id, sku, created_at, updated_at, deleted_at from goods_order
insert into goods_order
type,
main_order_id,
order_id,
transaction_id,
uid,
coupon_id,
product_id,
name,
phone,
address,
num,
total_price,
good_price,
service_price,
pay_price,
deduction,
postage,
pay_time,
status,
delivery_id,
delivery_num,
send_time,
mark,
address_id,
sku,
isself,
shopadresssid,
isforservice,
forserviceid,
returntype,
returnreason,
returnfiledata,
returnlogistics,
returnlogisticscode,
returnjson,
returntime,
returnmoney,
returnfinshtime,
returnstatus,
returnshow,
returnrealmoney,
ismany,
created_at,
updated_at
#{type},
#{mainOrderId},
#{orderId},
#{transactionId},
#{uid},
#{couponId},
#{productId},
#{name},
#{phone},
#{address},
#{num},
#{totalPrice},
#{goodPrice},
#{servicePrice},
#{payPrice},
#{deduction},
#{postage},
#{payTime},
#{status},
#{deliveryId},
#{deliveryNum},
#{sendTime},
#{mark},
#{addressId},
#{sku},
#{deletedAt},
#{isself},
#{shopadresssid},
#{isforservice},
#{forserviceid},
#{returntype},
#{returnreason},
#{returnfiledata},
#{returnlogistics},
#{returnlogisticscode},
#{returnjson},
#{returntime},
#{returnmoney},
#{returnfinshtime},
#{returnstatus},
#{returnshow},
#{returnrealmoney},
#{ismany},
NOW(),
NOW()
update goods_order
type = #{type},
main_order_id = #{mainOrderId},
order_id = #{orderId},
transaction_id = #{transactionId},
uid = #{uid},
product_id = #{productId},
coupon_id = #{couponId},
name = #{name},
phone = #{phone},
address = #{address},
num = #{num},
total_price = #{totalPrice},
good_price = #{goodPrice},
service_price = #{servicePrice},
pay_price = #{payPrice},
deduction = #{deduction},
postage = #{postage},
pay_time = #{payTime},
status = #{status},
delivery_id = #{deliveryId},
delivery_num = #{deliveryNum},
send_time = #{sendTime},
mark = #{mark},
address_id = #{addressId},
sku = #{sku},
deleted_at = #{deletedAt},
isself = #{isself},
shopadresssid = #{shopadresssid},
isforservice = #{isforservice},
forserviceid = #{forserviceid},
returntype = #{returntype},
returnreason = #{returnreason},
returnfiledata = #{returnfiledata},
returnlogistics = #{returnlogistics},
returnlogisticscode = #{returnlogisticscode},
returnjson = #{returnjson},
returntime = #{returntime},
returnmoney = #{returnmoney},
returnfinshtime = #{returnfinshtime},
returnstatus = #{returnstatus},
returnshow = #{returnshow},
returnrealmoney = #{returnrealmoney},
ismany = #{ismany},
updated_at=NOW()
where id = #{id}
delete from goods_order where id = #{id}
delete from goods_order where id in
#{id}