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

+ 4 - 0
app/admin/controller/Payment.php

@@ -108,6 +108,7 @@ class Payment extends BaseController
         $payNo= isset($post['payNo'])&&$post['payNo']!="" ? trim($post['payNo']) :"";
         $paystatus= isset($post['pay_status'])&&$post['pay_status']!="" ? $post['pay_status'] :"";
         $inv_status= isset($post['inv_status'])&&$post['inv_status']!="" ? $post['inv_status'] :"";
+        $status= isset($post['status'])&&$post['status']!="" ? $post['status'] :"";
         if($startTime!=""){
             $condition[]=["addtime",">=",$startTime];
         }
@@ -128,6 +129,9 @@ class Payment extends BaseController
         if($inv_status!=""){
             $condition[]=["inv_status","=",$inv_status];
         }
+        if($status!=""){
+            $condition[]=["status","=",$status];
+        }
         $page =  isset($post['page'])&&$post['page']!="" ? intval($post['page']) :1;
         $size =  isset($post['size'])&&$post['size']!="" ? intval($post['size']) :10;
         $count = Db::name("pay")->where($condition)->count();