用户每月消费统计报表 -- 剔除tb_user.enabled = -99的用户信息(若enabled = -99的用户有使用,则不剔除)

Change-Id: I2a26bec36ce38eb26c0dfd8749d4bd15499d2540
This commit is contained in:
vguanyiwgd 2024-05-29 09:17:16 +08:00
parent 4bb643567b
commit 6758423ed6
1 changed files with 2 additions and 0 deletions

View File

@ -2100,6 +2100,8 @@ class Statistics extends CI_Controller
$where .= " and d.date='" . $lastDate . "'";
}
$where .= " and (a.enabled!=-99 or d.order_recharge!=0 or d.instant_recharge!=0 or d.iccard_recharge!=0)";
$sql = "SELECT
a.username,
a.deptname,