| @@ -537,7 +537,7 @@ | |||||
| <if test="1 == reportType or 2 == reportType or 3 == reportType"> | <if test="1 == reportType or 2 == reportType or 3 == reportType"> | ||||
| (select count(distinct wcubi.id) from wx_c_user_basic_info wcubi | (select count(distinct wcubi.id) from wx_c_user_basic_info wcubi | ||||
| where 1=1 | |||||
| where | |||||
| <if test="1 == reportType "> | <if test="1 == reportType "> | ||||
| date_format(wcubi.create_date, '%Y-%m-%d') <= reportTime | date_format(wcubi.create_date, '%Y-%m-%d') <= reportTime | ||||
| </if> | </if> | ||||
| @@ -583,7 +583,7 @@ | |||||
| <if test="1 == basicInfo.reportType or 2 == basicInfo.reportType or 3 == basicInfo.reportType"> | <if test="1 == basicInfo.reportType or 2 == basicInfo.reportType or 3 == basicInfo.reportType"> | ||||
| (select count(distinct wcubi.id) from wx_c_user_basic_info wcubi | (select count(distinct wcubi.id) from wx_c_user_basic_info wcubi | ||||
| left join wx_c_user wcu on wcu.user_id = wcubi.id | left join wx_c_user wcu on wcu.user_id = wcubi.id | ||||
| where 1=1 | |||||
| where | |||||
| <if test="1 == basicInfo.reportType "> | <if test="1 == basicInfo.reportType "> | ||||
| date_format(wcubi.create_date, '%Y-%m-%d') <= reportTime | date_format(wcubi.create_date, '%Y-%m-%d') <= reportTime | ||||
| </if> | </if> | ||||