rabin hace 3 años
padre
commit
139a8b8f5b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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');