增加30日世界地图访问

This commit is contained in:
MaxKey
2025-01-13 07:29:03 +08:00
parent 69ffbe40fe
commit 605d4205ac
11 changed files with 506 additions and 11 deletions

View File

@@ -35,8 +35,11 @@ import org.dromara.mybatis.jpa.entity.JpaEntity;
public interface ReportMapper extends IJpaMapper<JpaEntity> {
public Integer analysisDay(HashMap<String,Object> reportParameter);
public Integer analysisNewUsers(HashMap<String,Object> reportParameter);
public Integer analysisOnlineUsers(HashMap<String,Object> reportParameter);
public Integer analysisActiveUsers(HashMap<String,Object> reportParameter);
public List<Map<String,Object>> analysisDayHour(HashMap<String,Object> reportParameter);
@@ -49,4 +52,6 @@ public interface ReportMapper extends IJpaMapper<JpaEntity> {
public List<Map<String,Object>> analysisProvince(HashMap<String,Object> reportParameter);
public List<Map<String,Object>> analysisCountry(HashMap<String,Object> reportParameter);
}

View File

@@ -43,4 +43,6 @@ public interface ReportService extends IJpaService<JpaEntity>{
public List<Map<String,Object>> analysisApp(HashMap<String,Object> reportParameter);
public List<Map<String,Object>> analysisProvince(HashMap<String,Object> reportParameter);
public List<Map<String,Object>> analysisCountry(HashMap<String,Object> reportParameter);
}

View File

@@ -86,4 +86,8 @@ public class ReportServiceImpl extends JpaServiceImpl<ReportMapper,JpaEntity> i
return maps;
}
public List<Map<String,Object>> analysisCountry(HashMap<String,Object> reportParameter){
return getMapper().analysisCountry(reportParameter);
}
}

View File

@@ -121,5 +121,19 @@
order by reportcount desc
limit 1000
</select>
<select id="analysisCountry" parameterType="java.util.HashMap" resultType="Map">
select
count(id) as reportcount,
coalesce(country,'Other') as reportstring
from mxk_history_login
where instid = #{instId}
and logintime >date_add(curdate(), interval - day(curdate()) -31 day)
and country !=''
group by reportstring
order by reportcount desc
limit 1000
</select>
</mapper>