瀏覽代碼

init bug

release_toaliyun_real
xhxu 5 年之前
父節點
當前提交
bfd91b2baa
共有 1 個檔案被更改,包括 7 行新增5 行删除
  1. +7
    -5
      mallinkService/src/main/resources/mapper/WxUserVisitMapper.xml

+ 7
- 5
mallinkService/src/main/resources/mapper/WxUserVisitMapper.xml 查看文件

@@ -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,visit_pv as pv,visit_uv as uv
SELECT DATE_FORMAT(day_date,'%Y-%m-%d') as xTime,sum(visit_pv) as pv,sum(visit_uv) as uv
from wx_user_visit
where 1=1
<if test=" null != tenantId and '' != tenantId">
@@ -124,12 +124,13 @@
and day_date &lt;= #{endTime}
</if>

group by xTime
<if test=" null != sortColumns"> order by ${sortColumns} </if>
<if test=" null == sortColumns"> order by day_date desc </if>
<if test=" null == sortColumns"> order by xTime desc </if>
</select>
<select id="touchUsersReportData" resultType="com.iformall.domain.vo.TouchUsersReportVo" parameterType="hashmap">
SELECT DATE_FORMAT(day_date,'%m/%d') as xTime,visit_pv as pv,visit_uv as uv
SELECT DATE_FORMAT(day_date,'%m/%d') as xTime,sum(visit_pv) as pv,sum(visit_uv) as uv
from wx_user_visit
where 1=1
<if test=" null != tenantId and '' != tenantId">
@@ -144,11 +145,12 @@
<if test="endTime != null">
and day_date &lt;= #{endTime}
</if>
order by day_date desc
group by xTime
order by xTime desc
</select>

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


Loading…
取消
儲存