|  | @ -0,0 +1,45 @@
 | 
	
		
			
				|  |  | package com.yihu.jw.care.service.statistics;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | import com.yihu.jw.care.util.ConstantUtil;
 | 
	
		
			
				|  |  | import com.yihu.jw.es.util.ElasticsearchUtil;
 | 
	
		
			
				|  |  | import org.slf4j.Logger;
 | 
	
		
			
				|  |  | import org.slf4j.LoggerFactory;
 | 
	
		
			
				|  |  | import org.springframework.beans.factory.annotation.Autowired;
 | 
	
		
			
				|  |  | import org.springframework.jdbc.core.JdbcTemplate;
 | 
	
		
			
				|  |  | import org.springframework.stereotype.Service;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | /**
 | 
	
		
			
				|  |  |  *
 | 
	
		
			
				|  |  |  * Created by yeshijie on 2021/4/7.
 | 
	
		
			
				|  |  |  */
 | 
	
		
			
				|  |  | @Service
 | 
	
		
			
				|  |  | public class StatisticsService {
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     Logger logger = LoggerFactory.getLogger(StatisticsService.class);
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     @Autowired
 | 
	
		
			
				|  |  |     private ElasticsearchUtil elasticsearchUtil;
 | 
	
		
			
				|  |  |     @Autowired
 | 
	
		
			
				|  |  |     private JdbcTemplate jdbcTemplate;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     /**
 | 
	
		
			
				|  |  |      * 统计首页头部数据
 | 
	
		
			
				|  |  |      * @param area
 | 
	
		
			
				|  |  |      * @param startTime
 | 
	
		
			
				|  |  |      * @param endTime
 | 
	
		
			
				|  |  |      */
 | 
	
		
			
				|  |  |     public void indexTopNum(String area,String startTime,String endTime,String level){
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         String signSql = " select count(s.id) from base_service_package_sign_record";
 | 
	
		
			
				|  |  |         //签约数 能力评估
 | 
	
		
			
				|  |  |         if(ConstantUtil.CITY.equals(area)){
 | 
	
		
			
				|  |  |             signSql += "";
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | }
 |