`id`,`order_number`,`tenant_id`,`c_user_id`,`coupon_channel_id`,`product_id`,`type`,`payment_type`,`payment`,`payment_time`,`order_status`,`create_date`,`update_date`,`detail`, `press_end_date`,`press_current_num`,`press_current_value` where 1 = 1 and `id` = #{id} and `order_number` = #{orderNumber} and `tenant_id` = #{tenantId} and `c_user_id` = #{cUserId} and `coupon_channel_id` = #{couponChannelId} and `product_id` = #{productId} and `type` = #{type} and `payment_type` = #{paymentType} and `payment` = #{payment} and `payment_time` = #{paymentTime} and `order_status` = #{orderStatus} and `create_date` = #{createDate} and `update_date` = #{updateDate} and `detail` like concat('%', #{detail},'%') and `press_end_date` = #{pressEndDate} and `press_current_num` = #{pressCurrentNum} and `press_current_value` = #{pressCurrentValue} and `order_status` in #{sItem} and id in #{idItem} order by ${sortColumns} o.id,o.order_number,o.tenant_id,o.c_user_id,o.coupon_channel_id,o.product_id,o.payment_type,o.payment,o.payment_time,o.order_status,o.create_date,o.update_date, c.type,c.cover_img,c.title,c.sub_title,c.sale_price,c.use_price,c.price,c.unit, cal.channel_type as send_channel_type o.id,o.order_number,o.tenant_id,o.c_user_id,o.coupon_channel_id,o.product_id,o.payment_type,o.payment,o.payment_time,o.order_status,o.create_date,o.update_date, c.type,c.cover_img,c.title,c.sub_title,c.sale_price,c.use_price,c.price,c.unit,c.detail,c.remark, co.id as coupon_order_id,co.coupon_order_status update wx_order set order_status=#{orderStatus} where product_id=#{productId} and press_end_date is not null and `tenant_id` = #{tenantId} o.`id`,o.`order_number`,o.`tenant_id`,o.`c_user_id`,o.`coupon_channel_id`,o.`product_id`,o.`type`, o.`payment_type`,o.`payment`,o.`payment_time`,o.`order_status`,o.`create_date`,o.`update_date`,o.`detail`, m.name as merchant_name, bu.name, bu.phone as bphone, cu.phone, cu.nick_name, cubi.name c_user_name wm.id as id, wm.tenant_id as tenant_id, wm.name as merchant_name, wm.link_phone as merchant_phone, mo.xTime as report_date, (case when mo.amount > 0 then mo.amount else 0 end) trade_amt o.id,o.order_number,o.tenant_id,o.c_user_id,o.coupon_channel_id,o.product_id,o.payment_type,o.payment,o.payment_time,o.order_status, o.create_date,o.update_date,o.press_end_date,o.press_current_num,o.press_current_value, c.cover_img,c.title,c.sub_title,c.sale_price,c.use_price,c.price,c.unit,c.press_limit_num o.id,o.order_number,o.tenant_id,o.c_user_id,o.coupon_channel_id,o.product_id,o.payment_type,o.payment,o.payment_time,o.order_status, o.create_date,o.update_date,o.press_end_date,o.press_current_num,o.press_current_value, c.type as coupon_type,c.cover_img,c.title,c.sub_title,c.sale_price,c.use_price,c.price,c.unit,c.detail,c.remark,c.press_limit_num, co.id as coupon_order_id,co.coupon_order_status