@Select("SELECT * FROM high_order WHERE create_time < NOW()-INTERVAL 3 day and product_type = 9 and order_status = 2 and pay_type = 4;")
@Select("SELECT * FROM high_order WHERE create_time < NOW()-INTERVAL 3 day and product_type = 9 and order_status = 2 and pay_type = 4 group by create_time asc;")
@ -60,9 +60,12 @@ public interface OrderMapperExt {
" ELSE '未知' END orderStatus,"+
" b.create_time createTime,"+
" b.pay_time payTime,"+
" b.finish_time finishTime"+
" b.finish_time finishTime,"+
" case b.exception_status when 1 then '异常' when 0 then '正常' else '未知' end exceptionStatus,"+
" c.cou_no couNo"+
" from high_child_order a"+
" LEFT JOIN high_order b on b.id = a.order_id"+
" LEFT JOIN (select child_order_id, cou_no from high_coupon_code_other where child_order_id is not null GROUP BY child_order_id) c on c.child_order_id = a.id"+
" LEFT JOIN high_coupon d on d.id = a.goods_id"+
" where a.goods_type = 1"+
" <if test='param.companyId != null'> and d.company_id = #{param.companyId} </if>"+
@ -80,6 +83,7 @@ public interface OrderMapperExt {