|
@ -4,8 +4,10 @@ import com.yihu.wlyy.service.app.statistics.StatisticsAllService;
|
|
|
import com.yihu.wlyy.service.app.statistics.StatisticsService;
|
|
|
import com.yihu.wlyy.service.app.statisticsES.StatisticsESService;
|
|
|
import com.yihu.wlyy.util.Constant;
|
|
|
import com.yihu.wlyy.util.ElasticsearchUtil;
|
|
|
import com.yihu.wlyy.util.ValueComparator;
|
|
|
import com.yihu.wlyy.web.BaseController;
|
|
|
import com.yihu.wlyy.web.quota.vo.SaveModel;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiParam;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
@ -28,7 +30,7 @@ import java.util.TreeMap;
|
|
|
* Created by chenweida on 2017/10/13.
|
|
|
*/
|
|
|
@Controller
|
|
|
@RequestMapping(value = "/esstatistics", produces = MediaType.APPLICATION_JSON_UTF8_VALUE,method = {RequestMethod.GET,RequestMethod.POST})
|
|
|
@RequestMapping(value = "/esstatistics", produces = MediaType.APPLICATION_JSON_UTF8_VALUE, method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@Api(description = "ES统计查询")
|
|
|
public class EsStatisticsController extends BaseController {
|
|
|
|
|
@ -38,6 +40,8 @@ public class EsStatisticsController extends BaseController {
|
|
|
StatisticsService statisticsService;
|
|
|
@Autowired
|
|
|
StatisticsAllService statisticsAllService;
|
|
|
@Autowired
|
|
|
ElasticsearchUtil elasticsearchUtil;
|
|
|
/**
|
|
|
* 获取统计时间
|
|
|
*
|
|
@ -53,6 +57,7 @@ public class EsStatisticsController extends BaseController {
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 指标按间隔统计 增量
|
|
|
* 按年度统计是根据前端传的 startDate
|
|
@ -236,8 +241,8 @@ public class EsStatisticsController extends BaseController {
|
|
|
JSONArray jsonArray2 = null;
|
|
|
if (Constant.getNowYearByDate(endDate).equals(year)) {
|
|
|
jsonArray2 = statisticsESService.getLowLevelIncrementDetail(endDate, endDate, area, level, indexes[1], sort, lowLevel);
|
|
|
}else{
|
|
|
String date=Integer.valueOf(year)+1+"-06-30";
|
|
|
} else {
|
|
|
String date = Integer.valueOf(year) + 1 + "-06-30";
|
|
|
jsonArray2 = statisticsESService.getLowLevelIncrementDetail(date, date, area, level, indexes[1], sort, lowLevel);
|
|
|
}
|
|
|
jsonArrays.add(jsonArray2);
|
|
@ -273,13 +278,13 @@ public class EsStatisticsController extends BaseController {
|
|
|
for (Map.Entry<String, JSONObject> one : index1.entrySet()) {
|
|
|
JSONObject map1 = one.getValue();
|
|
|
JSONObject map2 = index2.get(one.getKey());
|
|
|
String amount1="0";
|
|
|
if(map1!=null&&map1.has("amount")){
|
|
|
amount1=map1.get("amount").toString();
|
|
|
String amount1 = "0";
|
|
|
if (map1 != null && map1.has("amount")) {
|
|
|
amount1 = map1.get("amount").toString();
|
|
|
}
|
|
|
String amount2="0";
|
|
|
if(map2!=null&&map2.has("amount")){
|
|
|
amount2=map2.get("amount").toString();
|
|
|
String amount2 = "0";
|
|
|
if (map2 != null && map2.has("amount")) {
|
|
|
amount2 = map2.get("amount").toString();
|
|
|
}
|
|
|
|
|
|
String amount = amount1 + "," + amount2;
|
|
@ -353,8 +358,8 @@ public class EsStatisticsController extends BaseController {
|
|
|
try {
|
|
|
JSONObject result = new JSONObject();
|
|
|
//year没传默认是今年
|
|
|
if(org.springframework.util.StringUtils.isEmpty(year)){
|
|
|
year= Constant.getNowYear();
|
|
|
if (org.springframework.util.StringUtils.isEmpty(year)) {
|
|
|
year = Constant.getNowYear();
|
|
|
}
|
|
|
|
|
|
|
|
@ -365,11 +370,11 @@ public class EsStatisticsController extends BaseController {
|
|
|
// JSONObject signRate = statisticsAllService.getSignRate(endDate, area, level,year);
|
|
|
// JSONObject signTaskRate = statisticsAllService.getSignTaskRate(endDate, area, level,year);
|
|
|
|
|
|
long sign = statisticsESService.getIndexTotal(endDate, area, level, "13","2");
|
|
|
long sign = statisticsESService.getIndexTotal(endDate, area, level, "13", "2");
|
|
|
long weiJf = statisticsESService.getWeiJiaoFei(endDate, area, level);
|
|
|
JSONObject jo = statisticsESService.getRenewPercent(level + "", area, Constant.getNowYear());
|
|
|
JSONObject signRate = statisticsESService.getSignRate(endDate, area, level,year);
|
|
|
JSONObject signTaskRate = statisticsESService.getSignTaskRate(endDate, area, level,year);
|
|
|
JSONObject signRate = statisticsESService.getSignRate(endDate, area, level, year);
|
|
|
JSONObject signTaskRate = statisticsESService.getSignTaskRate(endDate, area, level, year);
|
|
|
|
|
|
result.put("sign", sign);
|
|
|
result.put("expenses", weiJf);
|
|
@ -379,11 +384,11 @@ public class EsStatisticsController extends BaseController {
|
|
|
result.put("renewRange", jo.get("renewRange"));//续签率 50.00%
|
|
|
} else {
|
|
|
//如果年度不是当前年度 就根据endDate 找到那个年度的最后一天的数据
|
|
|
if(!Constant.getNowYear().equals(year)){
|
|
|
endDate=(Integer.valueOf(year)+1)+"-06-30";
|
|
|
if (!Constant.getNowYear().equals(year)) {
|
|
|
endDate = (Integer.valueOf(year) + 1) + "-06-30";
|
|
|
}
|
|
|
// result = statisticsAllService.getGroupInfo(endDate, lowCode, area, level,year);
|
|
|
result = statisticsESService.getGroupInfo(endDate, lowCode, area, level,year);
|
|
|
result = statisticsESService.getGroupInfo(endDate, lowCode, area, level, year);
|
|
|
}
|
|
|
|
|
|
return write(200, "查询成功", "data", result);
|
|
@ -410,6 +415,8 @@ public class EsStatisticsController extends BaseController {
|
|
|
int level,
|
|
|
@RequestParam(required = false) String year) {
|
|
|
try {
|
|
|
|
|
|
level=changeLevel(level);
|
|
|
JSONArray result = statisticsESService.getSixFiveStatistics(endDate, area, level);
|
|
|
|
|
|
return write(200, "查询成功", "data", result);
|
|
@ -449,11 +456,11 @@ public class EsStatisticsController extends BaseController {
|
|
|
|
|
|
if (index != null) {
|
|
|
for (String idx : indexes) {
|
|
|
if(org.springframework.util.StringUtils.isEmpty(year)){
|
|
|
year=Constant.getNowYear();
|
|
|
if (org.springframework.util.StringUtils.isEmpty(year)) {
|
|
|
year = Constant.getNowYear();
|
|
|
}
|
|
|
// JSONObject json = statisticsAllService.getDateTotal(startDate, endDate, interval, area, level, idx, lowCode,year);
|
|
|
JSONObject json = statisticsESService.getDateTotal(startDate, endDate, interval, area, level, idx, lowCode,year);
|
|
|
JSONObject json = statisticsESService.getDateTotal(startDate, endDate, interval, area, level, idx, lowCode, year);
|
|
|
result.put("index_" + idx, json);
|
|
|
}
|
|
|
}
|
|
@ -488,31 +495,33 @@ public class EsStatisticsController extends BaseController {
|
|
|
@RequestParam(required = false) String lowCode) {
|
|
|
try {
|
|
|
String[] indexes = index.split(",");
|
|
|
level=elasticsearchUtil.changeLevel(level);
|
|
|
lowLevel=changeLevel(Integer.valueOf(lowLevel))+"";
|
|
|
JSONObject result = new JSONObject();
|
|
|
String year=Constant.getNowYearByDate(date);
|
|
|
String year = Constant.getNowYearByDate(date);
|
|
|
if (StringUtils.isNotEmpty(lowCode)) {
|
|
|
// 指定level下特定查询级别
|
|
|
if (index.equals("17")) {
|
|
|
//sort=1&date=2017-07-13&level=4&index=17&area=350200&lowLevel=1&lowCode=3
|
|
|
result.put("index_" + index, statisticsESService.getLevelTwoLowLevelTotalTeamLeader(date, area, level, index, sort, lowLevel, lowCode,year));
|
|
|
result.put("index_" + index, statisticsESService.getLevelTwoLowLevelTotalTeamLeader(date, area, level, index, sort, lowLevel, lowCode, year));
|
|
|
} else {
|
|
|
result.put("index_" + index, statisticsESService.getLevelTwoLowLevelTotal(date, area, level, index, sort, lowLevel, lowCode,year));
|
|
|
result.put("index_" + index, statisticsESService.getLevelTwoLowLevelTotal(date, area, level, index, sort, lowLevel, lowCode, year));
|
|
|
}
|
|
|
} else {
|
|
|
// 未指定level下特定查询级别
|
|
|
for (String idx : indexes) {
|
|
|
if (idx.equals("18") || index.equals("19")) {
|
|
|
result.put("index_" + idx, statisticsAllService.getLowLevelTotalSpecial(date, area, level, idx, sort, lowLevel));
|
|
|
} else if ( index.equals("21")) {
|
|
|
} else if (index.equals("21")) {
|
|
|
result.put("index_" + idx, statisticsESService.getLowLevelTotal2(date, area, level, idx, sort, lowLevel));
|
|
|
} else if (idx.equals("28")) {
|
|
|
//level=4&area=350200&sort=1&index=28&date=undefined&lowLevel=2
|
|
|
result.put("index_" + idx, statisticsESService.getAvgAllInfo(level, area, lowLevel));
|
|
|
} else if (idx.equals("13")) {
|
|
|
// sort=1&date=2017-07-13&level=4&index=13&area=350200&lowCode=
|
|
|
result.put("index_" + idx, statisticsESService.getLowLevelTotalTeamLeader(date, area, level, idx, sort, lowLevel,year));
|
|
|
result.put("index_" + idx, statisticsESService.getLowLevelTotalTeamLeader(date, area, level, idx, sort, lowLevel, year));
|
|
|
} else {
|
|
|
result.put("index_" + idx, statisticsESService.getLowLevelTotal(date, area, level, idx, sort, lowLevel,year));
|
|
|
result.put("index_" + idx, statisticsESService.getLowLevelTotal(date, area, level, idx, sort, lowLevel, year));
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@ -574,7 +583,7 @@ public class EsStatisticsController extends BaseController {
|
|
|
JSONObject result = new JSONObject();
|
|
|
|
|
|
for (String idx : indexes) {
|
|
|
Long total = statisticsESService.getIndexTotal(endDate, area, level, idx,"2");
|
|
|
Long total = statisticsESService.getIndexTotal(endDate, area, level, idx, "2");
|
|
|
result.put("index_" + idx, total);
|
|
|
}
|
|
|
|
|
@ -628,9 +637,9 @@ public class EsStatisticsController extends BaseController {
|
|
|
|
|
|
JSONObject data = null;
|
|
|
if (Constant.getNowYear().equals(year)) {
|
|
|
data = statisticsESService.getConsultingStatisticsList(level, area, lowlevel,null);
|
|
|
data = statisticsESService.getConsultingStatisticsList(level, area, lowlevel, null);
|
|
|
} else if (org.springframework.util.StringUtils.isEmpty(year)) {
|
|
|
data = statisticsESService.getConsultingStatisticsList(level, area, lowlevel,null);
|
|
|
data = statisticsESService.getConsultingStatisticsList(level, area, lowlevel, null);
|
|
|
// data = statisticsService.getConsultingStatisticsListAll(level, area, lowlevel, year);
|
|
|
} else {
|
|
|
|
|
@ -646,6 +655,7 @@ public class EsStatisticsController extends BaseController {
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 咨询统计
|
|
|
* 咨询分析页面具体交互与业务分析内一致,即按市、区、社区、机构有不同展示,可一级级进入查看
|
|
@ -674,7 +684,7 @@ public class EsStatisticsController extends BaseController {
|
|
|
// //去数据库查找年份
|
|
|
// data = statisticsService.getConsultingTitleWithYear(level, area, year);
|
|
|
// }
|
|
|
data = statisticsESService.getConsultingTitle(level, area,year);
|
|
|
data = statisticsESService.getConsultingTitle(level, area, year);
|
|
|
if (data != null) {
|
|
|
return write(200, "查询成功", "data", data);
|
|
|
} else {
|
|
@ -707,7 +717,7 @@ public class EsStatisticsController extends BaseController {
|
|
|
// } else {
|
|
|
// return write(200, "查询成功", "data", statisticsService.getCoutListByTimeYear(level, area, year));
|
|
|
// }
|
|
|
return write(200, "查询成功", "data", statisticsESService.getCoutListByTime(level,area,year));
|
|
|
return write(200, "查询成功", "data", statisticsESService.getCoutListByTime(level, area, year));
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
return error(-1, "查询失败");
|
|
@ -731,6 +741,7 @@ public class EsStatisticsController extends BaseController {
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 获取得分平均数
|
|
|
*
|
|
@ -767,6 +778,7 @@ public class EsStatisticsController extends BaseController {
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 统计当前团队,签约人数,服务次数,平均满意度
|
|
|
*
|
|
@ -816,6 +828,7 @@ public class EsStatisticsController extends BaseController {
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 获取咨询数和未回复数
|
|
|
*
|
|
@ -837,6 +850,7 @@ public class EsStatisticsController extends BaseController {
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 获取机构内服务排行
|
|
|
*
|
|
@ -878,6 +892,7 @@ public class EsStatisticsController extends BaseController {
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 判断团队是否是团队长
|
|
|
*
|
|
@ -916,6 +931,7 @@ public class EsStatisticsController extends BaseController {
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 计算团队医生月或周咨询未回复和总数折线图
|
|
|
*
|
|
@ -940,6 +956,7 @@ public class EsStatisticsController extends BaseController {
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 获取团队内这成员,未回复数,总数,结束咨询数
|
|
|
*
|
|
@ -963,6 +980,7 @@ public class EsStatisticsController extends BaseController {
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 获取Doctor咨询结果
|
|
|
*
|
|
@ -985,6 +1003,7 @@ public class EsStatisticsController extends BaseController {
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 获取团队随访量折线统计图
|
|
|
*
|
|
@ -1007,6 +1026,7 @@ public class EsStatisticsController extends BaseController {
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@RequestMapping("/getTeamDoctorFollowupLine")
|
|
|
@ResponseBody
|
|
|
public String getTeamDoctorFollowupLine(@RequestParam(required = true) String type,
|
|
@ -1021,6 +1041,7 @@ public class EsStatisticsController extends BaseController {
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 根据团队获取团队底下用户列表
|
|
|
*
|
|
@ -1045,6 +1066,7 @@ public class EsStatisticsController extends BaseController {
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 获取医生随访头信息
|
|
|
*
|
|
@ -1067,6 +1089,7 @@ public class EsStatisticsController extends BaseController {
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 获取待预约量团队统计则线图
|
|
|
*
|
|
@ -1089,6 +1112,7 @@ public class EsStatisticsController extends BaseController {
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 获取团队医生预约量团队统计则线图
|
|
|
*
|
|
@ -1113,6 +1137,7 @@ public class EsStatisticsController extends BaseController {
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 获取团队待预约量医生列表信息
|
|
|
*
|
|
@ -1137,6 +1162,7 @@ public class EsStatisticsController extends BaseController {
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 获取团队医生待预信息
|
|
|
*
|
|
@ -1159,6 +1185,7 @@ public class EsStatisticsController extends BaseController {
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 获取团队健康指导折线图
|
|
|
*
|
|
@ -1181,6 +1208,7 @@ public class EsStatisticsController extends BaseController {
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 获取团队医生则线图
|
|
|
*
|
|
@ -1205,6 +1233,7 @@ public class EsStatisticsController extends BaseController {
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 获取团队指导总数List
|
|
|
*
|
|
@ -1229,6 +1258,7 @@ public class EsStatisticsController extends BaseController {
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 获取医生健康指导头部信息
|
|
|
*
|
|
@ -1251,6 +1281,7 @@ public class EsStatisticsController extends BaseController {
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 获取团队健康教育折线统计
|
|
|
*
|
|
@ -1273,6 +1304,7 @@ public class EsStatisticsController extends BaseController {
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 获取团队健康
|
|
|
*
|
|
@ -1296,6 +1328,7 @@ public class EsStatisticsController extends BaseController {
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 获取团队成员健康教育列表
|
|
|
*
|
|
@ -1320,6 +1353,7 @@ public class EsStatisticsController extends BaseController {
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@RequestMapping("/getTeamDoctorEduTitle")
|
|
|
@ResponseBody
|
|
|
public String getTeamDoctorEduTitle(@RequestParam(required = true) String teamCode,
|
|
@ -1333,6 +1367,7 @@ public class EsStatisticsController extends BaseController {
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@RequestMapping("/getDotorInfo")
|
|
|
@ResponseBody
|
|
|
public String getDotorInfo(String code) {
|
|
@ -1343,6 +1378,7 @@ public class EsStatisticsController extends BaseController {
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@RequestMapping("/getTeamRenewChangeLine")
|
|
|
@ResponseBody
|
|
|
public String getTeamRenewChangeLine(@RequestParam(required = true) String teamCode,
|
|
@ -1356,23 +1392,25 @@ public class EsStatisticsController extends BaseController {
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@RequestMapping("/cleanDoctorScore")
|
|
|
@ResponseBody
|
|
|
public String cleanDoctorScore(){
|
|
|
try{
|
|
|
public String cleanDoctorScore() {
|
|
|
try {
|
|
|
return write(200, "清洗完成", "data", statisticsAllService.cleanDoctorScore());
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 获取转签率和续签率
|
|
|
* 前端:续签进展
|
|
|
*
|
|
|
* @param index 42,43,44 (52,53,54 服务类型维度)
|
|
|
* <p>
|
|
|
* //@param index 42,43,44 (52,53,54 服务类型维度)
|
|
|
* @param level 等级 4 市 3区 2社区 1团队
|
|
|
* @param code 市 默认是厦门市 350200 区 就是区的code 社区就是社区的code 团队就是团队的code
|
|
|
* @param area 市 默认是厦门市 350200 区 就是区的code 社区就是社区的code 团队就是团队的code.
|
|
|
* @param year 年份 非比传
|
|
|
* @param lowCode 服务类型维度code(老年人3,高血压4,糖尿病5)
|
|
|
* @return
|
|
@ -1380,19 +1418,21 @@ public class EsStatisticsController extends BaseController {
|
|
|
@RequestMapping(value = "/getRenewPercentAndChangePercent", method = RequestMethod.GET)
|
|
|
@ResponseBody
|
|
|
public String getRenewPercentAndChangePercent(
|
|
|
@RequestParam(required = true) String index,//续签index
|
|
|
@RequestParam(required = true) String level,
|
|
|
@RequestParam(required = true) String code,
|
|
|
//@RequestParam(required = true) String index,//续签index
|
|
|
@RequestParam(required = true) int level,
|
|
|
@RequestParam(required = true) String area,
|
|
|
@RequestParam(required = false) String year,
|
|
|
@RequestParam(required = false) String lowCode) {
|
|
|
try {
|
|
|
|
|
|
return write(200, "查询成功", "data", statisticsESService.getRenewPercentAndChangePercent(index,level, code, year,lowCode));
|
|
|
//return write(200, "查询成功", "data", statisticsService.getRenewPercentAndChangePercent(index,level, code, year,lowCode));
|
|
|
return write(200,"查询成功!","data",statisticsESService.getRenewPercentAndChangePercent(elasticsearchUtil.changeLevel(level),area,year,lowCode));
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 获取转签人数,转签原因分析,转签分布
|
|
|
* 前端:签约数据分析,团队转签详情
|
|
@ -1446,6 +1486,7 @@ public class EsStatisticsController extends BaseController {
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 去年的签约量,续签量和续签率 列表
|
|
|
*
|
|
@ -1481,7 +1522,7 @@ public class EsStatisticsController extends BaseController {
|
|
|
}
|
|
|
|
|
|
|
|
|
result.put("index_"+index, statisticsAllService.getLevelTwoLowLevelTotalSignAndRenew(area, level, index, sort, lowLevel, year,lowCode));
|
|
|
result.put("index_" + index, statisticsAllService.getLevelTwoLowLevelTotalSignAndRenew(area, changeLevel(level), index, sort, String.valueOf(changeLevel(Integer.valueOf(lowLevel))), year, lowCode));
|
|
|
|
|
|
return write(200, "查询成功", "data", result);
|
|
|
} catch (Exception e) {
|
|
@ -1492,11 +1533,11 @@ public class EsStatisticsController extends BaseController {
|
|
|
|
|
|
@RequestMapping("/getLevelTotalSingle")
|
|
|
@ResponseBody
|
|
|
public String getLevelTotalSingle(@ApiParam(name="date", value="日期标识") @RequestParam(required = true)String date,
|
|
|
@ApiParam(name="area", value="区域code") @RequestParam(required = true)String area,
|
|
|
@ApiParam(name="level", value="级别") @RequestParam(required = true)int level){
|
|
|
try{
|
|
|
return write(200, "查询成功", "data", statisticsESService.getLowLevelTotalSingle2(date,area,level));
|
|
|
public String getLevelTotalSingle(@ApiParam(name = "date", value = "日期标识") @RequestParam(required = true) String date,
|
|
|
@ApiParam(name = "area", value = "区域code") @RequestParam(required = true) String area,
|
|
|
@ApiParam(name = "level", value = "级别") @RequestParam(required = true) int level) {
|
|
|
try {
|
|
|
return write(200, "查询成功", "data", statisticsESService.getLowLevelTotalSingle2(date, area, level));
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "查询失败");
|