rabin 3 years ago
parent
commit
139a8b8f5b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      service/agent/lib/Tool.php

+ 1 - 1
service/agent/lib/Tool.php

@@ -799,7 +799,7 @@ class Tool
     # 导出商品
     public function goods_api()
     {
-        $data = Dever::db('agent/order')->fetchAll('select * from churen_goods_info where status = 1');
+        $data = Dever::db('agent/order')->fetchAll('select * from churen_goods_info where state = 1 and status = 1');
 
         $start = Dever::maketime('2022-06-01 00:00:00');
         $end = Dever::maketime('2022-06-30 23:59:59');