wugg 2 gadi atpakaļ
vecāks
revīzija
c4dd94680f
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      app/admin/controller/Payment.php

+ 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']??"";