- $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'];
+ $sql = 'select * from wonderful_journal_order where type in(1,3) and product_id = '.$info['id'].' and state = 1 and cdate >= '.$where['start'].' and cdate <= '.$where['end'];
private function total($source, $info, $where, $pv, $uv, $user_num, $user_yes_num)
private function total($source, $info, $where, $pv, $uv, $user_num, $user_yes_num)
{
{
$day = date('Y-m-d', $where['start']);
$day = date('Y-m-d', $where['start']);
- $sql = 'select * from wonderful_journal_order where type = 1 and source = '.$source['id'].' and product_id = '.$info['id'].' and state = 1 and cdate >= '.$where['start'].' and cdate <= '.$where['end'];
+ $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'];