wugg 2 жил өмнө
parent
commit
c4dd94680f

+ 1 - 1
app/admin/controller/Payment.php

@@ -1068,7 +1068,7 @@ class Payment extends BaseController
         $total = ceil($count/$size);
         $page = $page>$total? intval($total):$page;
         $list = Db::name("pay_invoice")->alias("a")->leftJoin("pay b","a.payNo=b.payNo")->field("a.*")->where
-        ($condition)->page($page,$size)->select()->toArray();
+        ($condition)->page($page,$size)->order("addtime desc")->select()->toArray();
         foreach ($list as &$value){
             $invoinfo =Db::name("invoice_info")->where(["hpNo"=>$value['hpNo'],"status"=>1])->find();
             $value['buyer_name'] = $invoinfo['buyer_name']??"";