|
@ -4091,20 +4091,27 @@ public class StatisticsService extends BaseService {
|
|
public JSONObject getRenewAnalysis(String level, String code, String year) {
|
|
public JSONObject getRenewAnalysis(String level, String code, String year) {
|
|
JSONObject jo = new JSONObject();
|
|
JSONObject jo = new JSONObject();
|
|
String timeKey = redisTemplate.opsForValue().get("quota:timeKey");
|
|
String timeKey = redisTemplate.opsForValue().get("quota:timeKey");
|
|
//获取转签人数
|
|
|
|
|
|
//获取签入人数
|
|
int switchNum = getLevel1NumForRedis("37", level, code, timeKey);
|
|
int switchNum = getLevel1NumForRedis("37", level, code, timeKey);
|
|
;
|
|
|
|
|
|
|
|
//获取转签分布
|
|
//获取转签分布
|
|
JSONArray switchJO = getLevel2JsonObjectForRedis("30", level, code, timeKey);
|
|
JSONArray switchJO = getLevel2JsonObjectForRedis("30", level, code, timeKey);
|
|
//获取转签原因分析
|
|
//获取转签原因分析
|
|
//从redis中获取最新的续签数据 续签指标是29
|
|
//从redis中获取最新的续签数据 续签指标是29
|
|
int renewNum = getLevel1NumForRedis("29", level, code, timeKey);
|
|
int renewNum = getLevel1NumForRedis("29", level, code, timeKey);
|
|
|
|
//获取签入人数
|
|
|
|
int inNum = getLevel1NumForRedis("34", level, code, timeKey);
|
|
|
|
//获取签出人数
|
|
|
|
int outNum = getLevel1NumForRedis("35", level, code, timeKey);
|
|
|
|
|
|
int changeTeam = getLevel1NumForRedis("31", level, code, timeKey);//夸团队的数目
|
|
int changeTeam = getLevel1NumForRedis("31", level, code, timeKey);//夸团队的数目
|
|
int changeHospital = getLevel1NumForRedis("32", level, code, timeKey);//夸社区的数目
|
|
int changeHospital = getLevel1NumForRedis("32", level, code, timeKey);//夸社区的数目
|
|
int changeTown = getLevel1NumForRedis("33", level, code, timeKey);//夸区的数目
|
|
int changeTown = getLevel1NumForRedis("33", level, code, timeKey);//夸区的数目
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
jo.put("inNum", inNum);//今年的签入量
|
|
|
|
jo.put("outNum", outNum);//今年的签出量
|
|
jo.put("thisYearSwithch", switchNum);//今年的转签量
|
|
jo.put("thisYearSwithch", switchNum);//今年的转签量
|
|
jo.put("switchHealth", switchJO);//今年的服务分布
|
|
jo.put("switchHealth", switchJO);//今年的服务分布
|
|
jo.put("switchTeam", getRange(changeTeam, renewNum, 2));//今年的转签量
|
|
jo.put("switchTeam", getRange(changeTeam, renewNum, 2));//今年的转签量
|
|
@ -4288,7 +4295,8 @@ public class StatisticsService extends BaseService {
|
|
return null;
|
|
return null;
|
|
}
|
|
}
|
|
JSONArray rely = new JSONArray(relyVal);
|
|
JSONArray rely = new JSONArray(relyVal);
|
|
|
|
|
|
|
|
//累加去年的数目
|
|
|
|
getConsultingStatisticsListAllAdd(rely,"23",level,area,"3",year);
|
|
//咨询总数
|
|
//咨询总数
|
|
String relyTotal = redisTemplate.opsForValue().get("quota:25:" + level + ":" + area + ":3:" + timeKey);
|
|
String relyTotal = redisTemplate.opsForValue().get("quota:25:" + level + ":" + area + ":3:" + timeKey);
|
|
if (StringUtils.isBlank(relyTotal)) {
|
|
if (StringUtils.isBlank(relyTotal)) {
|
|
@ -4402,6 +4410,7 @@ public class StatisticsService extends BaseService {
|
|
return result;
|
|
return result;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
public JSONObject getConsultingStatisticsListYear(Integer level, String area, String lowlevel, String year) {
|
|
public JSONObject getConsultingStatisticsListYear(Integer level, String area, String lowlevel, String year) {
|
|
return null;
|
|
return null;
|
|
}
|
|
}
|
|
@ -4452,6 +4461,18 @@ public class StatisticsService extends BaseService {
|
|
}
|
|
}
|
|
//-----------------------------------通用方法-------------------------------
|
|
//-----------------------------------通用方法-------------------------------
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @param rely 从redis查询出来的列表
|
|
|
|
* @param index 指标code
|
|
|
|
* @param level 父level
|
|
|
|
* @param area 父code
|
|
|
|
* @param children 子level
|
|
|
|
* @param year 年份
|
|
|
|
*/
|
|
|
|
public void getConsultingStatisticsListAllAdd(JSONArray rely,String index,Integer level,String area,String children,String year){
|
|
|
|
String sql="";
|
|
|
|
}
|
|
/**
|
|
/**
|
|
* 得到某个指标的之前全部的数目
|
|
* 得到某个指标的之前全部的数目
|
|
*
|
|
*
|