rabin 3 年之前
父节点
当前提交
139a8b8f5b
共有 1 个文件被更改,包括 1 次插入1 次删除
  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');