wugg 1 year ago
parent
commit
71483f24f5
1 changed files with 4 additions and 0 deletions
  1. 4 0
      app/admin/controller/Payment.php

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

@@ -983,6 +983,10 @@ class Payment extends BaseController
             }
             }
         }
         }
         $list =  Db::name("cgd_info")->where($condition)->order('createdTime desc')->select()->toArray();
         $list =  Db::name("cgd_info")->where($condition)->order('createdTime desc')->select()->toArray();
+         $payArr=Db::name('supplier_info')->whereIn('code',array_unique(array_column($list,'supplierNo')))->column('pay_method','code');
+        foreach ($list as &$value){
+        	$value['pay_type']=$payArr[$value['supplierNo']]??'';
+        }
          return app_show(0,"获取成功",$list);
          return app_show(0,"获取成功",$list);
     }
     }
     //采购单信息
     //采购单信息