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