Browse Source

wx_user_visit 统计判null

release_toaliyun_real
xhxu 5 years ago
parent
commit
6bbd52fd6d
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      mallinkService/src/main/resources/mapper/WxUserVisitMapper.xml

+ 3
- 3
mallinkService/src/main/resources/mapper/WxUserVisitMapper.xml View File

@@ -108,7 +108,7 @@

<select id="touchUsersReportList" resultType="com.iformall.domain.vo.TouchUsersReportVo"
parameterType="com.iformall.domain.dto.MarkingCouponDataReportDto">
SELECT DATE_FORMAT(day_date,'%Y-%m-%d') as xTime,sum(visit_pv) as pv,sum(visit_uv) as uv
SELECT DATE_FORMAT(day_date,'%Y-%m-%d') as xTime,IFNULL(sum(visit_pv),0) as pv,IFNULL(sum(visit_uv),0) as uv
from wx_user_visit
where 1=1
<if test=" null != tenantId and '' != tenantId">
@@ -130,7 +130,7 @@
</select>
<select id="touchUsersReportData" resultType="com.iformall.domain.vo.TouchUsersReportVo" parameterType="hashmap">
SELECT DATE_FORMAT(day_date,'%m/%d') as xTime,sum(visit_pv) as pv,sum(visit_uv) as uv
SELECT DATE_FORMAT(day_date,'%m/%d') as xTime,IFNULL(sum(visit_pv),0) as pv,IFNULL(sum(visit_uv),0) as uv
from wx_user_visit
where 1=1
<if test=" null != tenantId and '' != tenantId">
@@ -150,7 +150,7 @@
</select>

<select id="queryVisitUv" resultType="Long" parameterType="hashmap">
select sum(visit_uv) from wx_user_visit where 1=1
select IFNULL(sum(visit_uv),0) from wx_user_visit where 1=1
<if test=" null != tenantId and '' != tenantId">
and `tenant_id` = #{tenantId}
</if>


Loading…
Cancel
Save