dever 6 年之前
父节点
当前提交
c53e01d1b2
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      stat/lib/Journal.php
  2. 1 1
      stat/lib/Source.php

+ 1 - 1
stat/lib/Journal.php

@@ -94,7 +94,7 @@ class Journal
         }
         */
 
-        $sql = 'select * from wonderful_act_order where type = 3 and product_id = '.$info['id'].' and status = 2 and state = 1 and cdate >= '.$where['start'].' and cdate <= '.$where['end'];
+        $sql = 'select * from wonderful_act_order where type in(1,3) and product_id = '.$info['id'].' and status = 2 and state = 1 and cdate >= '.$where['start'].' and cdate <= '.$where['end'];
         $order = Dever::db('act/order')->fetchAll($sql);
         if ($order) {
             

+ 1 - 1
stat/lib/Source.php

@@ -91,7 +91,7 @@ class Source
         }
         */
 
-        $sql = 'select * from wonderful_act_order where type = 3 and source = '.$source['id'].' and product_id = '.$info['id'].' and status = 2 and state = 1 and cdate >= '.$where['start'].' and cdate <= '.$where['end'];
+        $sql = 'select * from wonderful_act_order where type in(1,3) and source = '.$source['id'].' and product_id = '.$info['id'].' and status = 2 and state = 1 and cdate >= '.$where['start'].' and cdate <= '.$where['end'];
         $order = Dever::db('act/order')->fetchAll($sql);
 
         if ($order) {