修改用户统计

This commit is contained in:
yuyang 2022-03-02 13:55:12 +08:00
parent 670ffce0a2
commit f6976dd77e

View File

@ -211,7 +211,7 @@
<select id="userSum" resultType="map"> <select id="userSum" resultType="map">
select select
count(xau.app_user_id) userSum, count(xau.app_user_id) userSum,
(select count(DISTINCT user_id) from xhpc_charge_order where create_time &gt;= #{time}) userVitality (select count(DISTINCT user_id) from xhpc_charge_order where create_time &gt;= #{time} and tenant_id =#{tenantId}) userVitality
from xhpc_app_user xau where 1=1 from xhpc_app_user xau where 1=1
<if test="phone != null and phone != ''"> <if test="phone != null and phone != ''">
and xau.phone like concat('%', #{phone}, '%') and xau.phone like concat('%', #{phone}, '%')