update mall_order_info set status=4, receiving_time=new Date() where status=3 and date_format(pay_time, '%Y-%m-%d') = date_format(#{date}, '%Y-%m-%d')