cqpCow 11 tháng trước cách đây
mục cha
commit
9917d43dae
1 tập tin đã thay đổi với 8 bổ sung3 xóa
  1. 8 3
      app/Service/PaymentReceiptService.php

+ 8 - 3
app/Service/PaymentReceiptService.php

@@ -563,11 +563,16 @@ class PaymentReceiptService extends Service
     }
 
     //列表里 默认:(收款)
-    public function getPaymentReceiptDataCountList($data){
+    public function getPaymentReceiptDataCountList($data,$type=0){
         $data_order_no = [];
-        foreach ($data as $value){
-            $data_order_no[] = $value['order_number'];
+        if(! $type){
+            foreach ($data as $value){
+                $data_order_no[] = $value['order_number'];
+            }
+        }else{
+            $data_order_no = $data;
         }
+
         if(empty($data_order_no)) return [];
 
         $order = PaymentReceiptInfo::where('del_time',0)