zhengfangyuan 5 лет назад
Родитель
Сommit
5f04752d82
1 измененных файлов: 4 добавлений и 4 удалений
  1. +4
    -4
      mallinkService/src/main/resources/mapper/WxCUserFromMapper.xml

+ 4
- 4
mallinkService/src/main/resources/mapper/WxCUserFromMapper.xml Просмотреть файл

@@ -152,7 +152,7 @@
) a
left join (
select wcuf.from_id,
count(wcuf.c_user_id) reach_user
count(DISTINCT wcuf.c_user_id) reach_user
from wx_c_user_from wcuf
where wcuf.from_type = #{fromType}
<if test=" null != tenantId and '' != tenantId">
@@ -167,11 +167,11 @@
<if test=" null != endDate">
and wcuf.`create_date` &lt;= #{endDate}
</if>
group by wcuf.from_id,wcuf.c_user_id
group by wcuf.from_id
) b on b.from_id = a.from_id
left join (
select wcuf.from_id,
count(wcuf.c_user_id) new_user
count(DISTINCT wcuf.c_user_id) new_user
from wx_c_user_from wcuf
where wcuf.from_type = #{fromType}
and wcuf.is_new_user = 1
@@ -187,7 +187,7 @@
<if test=" null != endDate">
and wcuf.`create_date` &lt;= #{endDate}
</if>
group by wcuf.from_id,wcuf.c_user_id
group by wcuf.from_id
) c on c.from_id = a.from_id
order by a.visits desc
<if test=" null != begin ">


Загрузка…
Отмена
Сохранить