ReportService.java 2.2 KB
Newer Older
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
/*
 * Copyright [2020] [MaxKey of copyright http://www.maxkey.top]
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *     http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
 

MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
18
package org.maxkey.persistence.service;
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
19 20 21 22

import java.util.List;
import java.util.Map;

M
MaxKey 已提交
23
import org.apache.mybatis.jpa.persistence.JpaBaseEntity;
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
24
import org.apache.mybatis.jpa.persistence.JpaBaseService;
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
25
import org.maxkey.persistence.mapper.ReportMapper;
M
MaxKey 已提交
26
import org.springframework.stereotype.Repository;
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
27

M
MaxKey 已提交
28
@Repository
M
MaxKey 已提交
29
public class ReportService  extends JpaBaseService<JpaBaseEntity>{
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
30

MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
31 32 33
	public Integer analysisDay(String reportParameter) {
		return getMapper().analysisDay(reportParameter);
	};
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
34
	
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
35 36 37
	public Integer analysisNewUsers(String reportParameter) {
		return getMapper().analysisNewUsers(reportParameter);
	};
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
38
	
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
39 40 41 42 43 44 45
	public Integer analysisOnlineUsers(String reportParameter) {
		return getMapper().analysisOnlineUsers(reportParameter);
	};
	
	public Integer analysisActiveUsers(String reportParameter) {
		return getMapper().analysisActiveUsers(reportParameter);
	};
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
46
	
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
47 48
	public List<Map<String,Object>> analysisDayHour(String reportParameter){
		return getMapper().analysisDayHour(reportParameter);
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
49 50
	}
	
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
51 52
	public List<Map<String,Object>> analysisMonth(String reportParameter){
		return getMapper().analysisMonth(reportParameter);
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
53 54
	}
	
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
55 56 57
	
	public List<Map<String,Object>> analysisBrowser(Map<String,Object> reportParameter){
		return getMapper().analysisBrowser(reportParameter);
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
58 59
	}
	
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
60 61
	public List<Map<String,Object>> analysisApp(Map<String,Object> reportParameter){
		return getMapper().analysisApp(reportParameter);
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
62 63 64
	}
	
	
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
65
	
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
66 67 68 69 70 71 72 73 74 75 76 77 78
	public ReportService() {
		super(ReportMapper.class);
		
	}
	
	/* (non-Javadoc)
	 * @see com.connsec.db.service.BaseService#getMapper()
	 */
	@Override
	public ReportMapper getMapper() {
		return (ReportMapper)super.getMapper();
	}
}