|
@@ -59,10 +59,12 @@ class Source
|
|
|
private function total($source, $info, $where, $pv, $uv, $user_num, $user_yes_num)
|
|
|
{
|
|
|
$day = date('Y-m-d', $where['start']);
|
|
|
+ $order_num = $order_yes_num = $order_no_num = $buy_num = $buy_cash = 0;
|
|
|
+ /*
|
|
|
$sql = 'select * from wonderful_journal_order where type in(1,3) and source = '.$source['id'].' and product_id = '.$info['id'].' and state = 1 and cdate >= '.$where['start'].' and cdate <= '.$where['end'];
|
|
|
$order = Dever::db('journal/order')->fetchAll($sql);
|
|
|
|
|
|
- $order_num = $order_yes_num = $order_no_num = $buy_num = $buy_cash = 0;
|
|
|
+
|
|
|
|
|
|
if ($order) {
|
|
|
foreach ($order as $k => $v) {
|
|
@@ -87,6 +89,7 @@ class Source
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ */
|
|
|
|
|
|
$sql = 'select * from wonderful_act_order where type = 3 and source = '.$source['id'].' and product_id = '.$info['id'].' and state = 1 and cdate >= '.$where['start'].' and cdate <= '.$where['end'];
|
|
|
$order = Dever::db('act/order')->fetchAll($sql);
|