增加30日世界地图访问
This commit is contained in:
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user