Explorar el Código

init bug

release_toaliyun_real
xhxu hace 5 años
padre
commit
bfd91b2baa
Se han modificado 1 ficheros con 7 adiciones y 5 borrados
  1. +7
    -5
      mallinkService/src/main/resources/mapper/WxUserVisitMapper.xml

+ 7
- 5
mallinkService/src/main/resources/mapper/WxUserVisitMapper.xml Ver fichero

@@ -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>


Cargando…
Cancelar
Guardar