INSERT INTO orders
artificer_id,
user_id,
serve_time,
phone,
address,
remark,
pay_money,
orders_no,
pay_time,
pay_way,
status,
create_time,
artificer_money,
longitude,
latitude,
sum_money,
add_num,
add_time,
taxi_money,
parent_id,
start_time,
coupon_id,
coupon_name,
coupon_money,
add_artificer_money,
add_money,
price,
sum_artificer_money,
is_send,
end_time,
user_name,
one_user_money,
one_user_id,
one_user_name,
one_artificer_money,
one_artificer_user_id,
one_artificer_user_name,
ping_money,
massage_type_id,
over_time_orders,
end_times,
trip_way,
user_package_id,
km
#{artificerId},
#{userId},
#{serveTime},
#{phone},
#{address},
#{remark},
#{payMoney},
#{ordersNo},
#{payTime},
#{payWay},
#{status},
#{createTime},
#{artificerMoney},
#{longitude},
#{latitude},
#{sumMoney},
#{addNum},
#{addTime},
#{taxiMoney},
#{parentId},
#{startTime},
#{couponId},
#{couponName},
#{couponMoney},
#{addArtificerMoney},
#{addMoney},
#{price},
#{sumArtificerMoney},
#{isSend},
#{endTime},
#{userName},
#{oneUserMoney},
#{oneUserId},
#{oneUserName},
#{oneArtificerMoney},
#{oneArtificerUserId},
#{oneArtificerUserName},
#{pingMoney},
#{massageTypeId},
#{overTimeOrders},
#{endTimes},
#{tripWay},
#{userPackageId},
#{km}
update orders set warning=1 where now()>= DATE_ADD( end_time, INTERVAL #{time} MINUTE ) and status=6 and warning is null