From 96655993183d2bd3f02d42567cd0dfb17a503e78 Mon Sep 17 00:00:00 2001 From: "DESKTOP-GG6FIN9\\Administrator" <15040771@qq.com> Date: Wed, 5 Aug 2020 11:39:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=97=B6=E9=97=B4=E6=8E=92?= =?UTF-8?q?=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Service/CouponRebate.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Service/CouponRebate.php b/app/Service/CouponRebate.php index a171bb8..9f05999 100644 --- a/app/Service/CouponRebate.php +++ b/app/Service/CouponRebate.php @@ -35,6 +35,7 @@ class CouponRebate implements CouponRebateInterface ['end_time','>',$time], ]) ->whereRaw('inventory > inventory_use') + ->orderBy('addtime','desc') ->get(); return $res; }