dever 6 anos atrás
pai
commit
8b7c028927
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      stat/lib/Journal.php

+ 2 - 2
stat/lib/Journal.php

@@ -10,7 +10,7 @@ class Journal
 
     public function data_api()
     {
-        
+
     }
     /**
      * 获取数据-可以放到cron里
@@ -56,7 +56,7 @@ class Journal
     {
         # 这里就是为了做下sql的实现方式,其实用dever自带的功能完全可以实现。
         $day = date('Y-m-d', $where['start']);
-        $sql = 'select * from applet_passport_wechat where type = 1 and product_id = '.$info['id'].' and state = 1 and cdate >= '.$where['start'].' and cdate <= '.$where['end'];
+        $sql = 'select * from wonderful_journal_order where type = 1 and product_id = '.$info['id'].' and state = 1 and cdate >= '.$where['start'].' and cdate <= '.$where['end'];
         echo $sql;
         $order = Dever::db('journal/order')->fetchAll($sql);
         print_r($order);