|
@ -5,6 +5,7 @@ import com.yihu.wlyy.entity.address.Town;
|
|
import com.yihu.wlyy.entity.doctor.team.admin.AdminTeam;
|
|
import com.yihu.wlyy.entity.doctor.team.admin.AdminTeam;
|
|
import com.yihu.wlyy.entity.organization.Hospital;
|
|
import com.yihu.wlyy.entity.organization.Hospital;
|
|
import com.yihu.wlyy.entity.patient.prescription.PrescriptionDispensaryCode;
|
|
import com.yihu.wlyy.entity.patient.prescription.PrescriptionDispensaryCode;
|
|
|
|
import com.yihu.wlyy.entity.patient.prescription.PrescriptionLog;
|
|
import com.yihu.wlyy.entity.statistics.PopulationBase;
|
|
import com.yihu.wlyy.entity.statistics.PopulationBase;
|
|
import com.yihu.wlyy.repository.address.TownDao;
|
|
import com.yihu.wlyy.repository.address.TownDao;
|
|
import com.yihu.wlyy.repository.doctor.DoctorAdminTeamDao;
|
|
import com.yihu.wlyy.repository.doctor.DoctorAdminTeamDao;
|
|
@ -189,7 +190,7 @@ public class StatisticsESService {
|
|
public long getIntervalIncrement(String startDate, String endDate, String area, int level, String index) throws Exception {
|
|
public long getIntervalIncrement(String startDate, String endDate, String area, int level, String index) throws Exception {
|
|
|
|
|
|
SaveModel saveModel = elasticsearchUtil.findOneDateQuotaLevel0(startDate,endDate,area,level,index,"1");
|
|
SaveModel saveModel = elasticsearchUtil.findOneDateQuotaLevel0(startDate,endDate,area,level,index,"1");
|
|
return saveModel.getResult2().longValue();
|
|
|
|
|
|
return saveModel.getResult2();
|
|
}
|
|
}
|
|
|
|
|
|
// /**
|
|
// /**
|
|
@ -270,7 +271,7 @@ public class StatisticsESService {
|
|
}else{
|
|
}else{
|
|
saveModel = elasticsearchUtil.findOneDateQuotaLevel0(startDate,endDate,area,level,index,"1");
|
|
saveModel = elasticsearchUtil.findOneDateQuotaLevel0(startDate,endDate,area,level,index,"1");
|
|
}
|
|
}
|
|
return saveModel.getResult2().longValue();
|
|
|
|
|
|
return saveModel.getResult2();
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@ -321,9 +322,9 @@ public class StatisticsESService {
|
|
map.put("code",saveModel.getTeam());
|
|
map.put("code",saveModel.getTeam());
|
|
map.put("name",saveModel.getCityName());
|
|
map.put("name",saveModel.getCityName());
|
|
}
|
|
}
|
|
map.put("amount",saveModel.getResult2().longValue());
|
|
|
|
|
|
map.put("amount",Long.parseLong(saveModel.getResult2()+""));
|
|
map.put("rate",df.format((saveModel.getResult2() * 1.0000) / populationBase.getNum() * 100));
|
|
map.put("rate",df.format((saveModel.getResult2() * 1.0000) / populationBase.getNum() * 100));
|
|
map.put("rateString",saveModel.getResult2().longValue()+"/"+populationBase.getNum());
|
|
|
|
|
|
map.put("rateString",saveModel.getResult2()+"/"+populationBase.getNum());
|
|
resultList.add(map);
|
|
resultList.add(map);
|
|
}
|
|
}
|
|
Collections.sort(resultList, new Comparator<Map<String, Object>>() {
|
|
Collections.sort(resultList, new Comparator<Map<String, Object>>() {
|
|
@ -359,7 +360,7 @@ public class StatisticsESService {
|
|
Map<String, Object> map = new HashMap<>();
|
|
Map<String, Object> map = new HashMap<>();
|
|
map.put("code",saveModel.getSlaveKey1());
|
|
map.put("code",saveModel.getSlaveKey1());
|
|
map.put("name",saveModel.getSlaveKey1Name());
|
|
map.put("name",saveModel.getSlaveKey1Name());
|
|
map.put("amount",saveModel.getResult2().longValue());
|
|
|
|
|
|
map.put("amount",Long.parseLong(saveModel.getResult2()+""));
|
|
if (index.equals("7")) {
|
|
if (index.equals("7")) {
|
|
// 分组指标总数算法
|
|
// 分组指标总数算法
|
|
String code = saveModel.getSlaveKey2();
|
|
String code = saveModel.getSlaveKey2();
|
|
@ -441,7 +442,7 @@ public class StatisticsESService {
|
|
endDate = elasticsearchUtil.getQuotaTime();
|
|
endDate = elasticsearchUtil.getQuotaTime();
|
|
}
|
|
}
|
|
SaveModel saveModel = elasticsearchUtil.findOneDateQuotaLevel0(endDate,area,level,index,timeLevel);
|
|
SaveModel saveModel = elasticsearchUtil.findOneDateQuotaLevel0(endDate,area,level,index,timeLevel);
|
|
return saveModel.getResult2().longValue();
|
|
|
|
|
|
return saveModel.getResult2();
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@ -455,7 +456,7 @@ public class StatisticsESService {
|
|
public long getWeiJiaoFei(String endDate, String area, int level) throws Exception{
|
|
public long getWeiJiaoFei(String endDate, String area, int level) throws Exception{
|
|
|
|
|
|
SaveModel saveModel = elasticsearchUtil.findOneDateQuotaLevel1(endDate,area,level,"16","2","0");
|
|
SaveModel saveModel = elasticsearchUtil.findOneDateQuotaLevel1(endDate,area,level,"16","2","0");
|
|
return saveModel.getResult2().longValue();
|
|
|
|
|
|
return saveModel.getResult2();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -477,12 +478,12 @@ public class StatisticsESService {
|
|
}
|
|
}
|
|
String timeKey = elasticsearchUtil.getQuotaTime();
|
|
String timeKey = elasticsearchUtil.getQuotaTime();
|
|
SaveModel saveModel = elasticsearchUtil.findOneDateQuotaLevel0(timeKey,area,Integer.parseInt(level),renewIndex,"2");
|
|
SaveModel saveModel = elasticsearchUtil.findOneDateQuotaLevel0(timeKey,area,Integer.parseInt(level),renewIndex,"2");
|
|
int renewNum = saveModel.getResult2().intValue();
|
|
|
|
|
|
int renewNum = saveModel.getResult2();
|
|
//根据年度获取去年的签约数 签约指标是1
|
|
//根据年度获取去年的签约数 签约指标是1
|
|
String date = year + "-06-30";
|
|
String date = year + "-06-30";
|
|
String index = "1";
|
|
String index = "1";
|
|
SaveModel saveModel2 = elasticsearchUtil.findOneDateQuotaLevel0(date,area,Integer.parseInt(level),index,"2");
|
|
SaveModel saveModel2 = elasticsearchUtil.findOneDateQuotaLevel0(date,area,Integer.parseInt(level),index,"2");
|
|
int signNum = saveModel2.getResult2().intValue();
|
|
|
|
|
|
int signNum = saveModel2.getResult2();
|
|
JSONObject jo = new JSONObject();
|
|
JSONObject jo = new JSONObject();
|
|
jo.put("yesterYearSign", signNum);//去年的签约量
|
|
jo.put("yesterYearSign", signNum);//去年的签约量
|
|
jo.put("thisYearRenew", renewNum);//今年的续签量
|
|
jo.put("thisYearRenew", renewNum);//今年的续签量
|
|
@ -501,7 +502,7 @@ public class StatisticsESService {
|
|
public JSONObject getSignRate(String endDate, String area, int level, String year) throws Exception {
|
|
public JSONObject getSignRate(String endDate, String area, int level, String year) throws Exception {
|
|
|
|
|
|
SaveModel saveModel = elasticsearchUtil.findOneDateQuotaLevel0(endDate,area,level,"13","2");
|
|
SaveModel saveModel = elasticsearchUtil.findOneDateQuotaLevel0(endDate,area,level,"13","2");
|
|
long signAmount = saveModel.getResult2().longValue();
|
|
|
|
|
|
long signAmount = saveModel.getResult2();
|
|
PopulationBase peopleNum = getPopulationBase(area, year);
|
|
PopulationBase peopleNum = getPopulationBase(area, year);
|
|
JSONObject json = new JSONObject();
|
|
JSONObject json = new JSONObject();
|
|
DecimalFormat df = new DecimalFormat("0.0000");
|
|
DecimalFormat df = new DecimalFormat("0.0000");
|
|
@ -532,7 +533,7 @@ public class StatisticsESService {
|
|
endDate = elasticsearchUtil.getQuotaTime();
|
|
endDate = elasticsearchUtil.getQuotaTime();
|
|
}
|
|
}
|
|
SaveModel saveModel = elasticsearchUtil.findOneDateQuotaLevel0(endDate,area,level,"13","2");
|
|
SaveModel saveModel = elasticsearchUtil.findOneDateQuotaLevel0(endDate,area,level,"13","2");
|
|
long signAmount = saveModel.getResult2().longValue();
|
|
|
|
|
|
long signAmount = saveModel.getResult2();
|
|
PopulationBase peopleNum = getPopulationBase(area, year);
|
|
PopulationBase peopleNum = getPopulationBase(area, year);
|
|
DecimalFormat df = new DecimalFormat("0.0000");
|
|
DecimalFormat df = new DecimalFormat("0.0000");
|
|
JSONObject json = new JSONObject();
|
|
JSONObject json = new JSONObject();
|
|
@ -563,7 +564,7 @@ public class StatisticsESService {
|
|
List<SaveModel> list = elasticsearchUtil.findDateQuotaLevel1(endDate,endDate,area,level,"17","2",lowCode,null,null);
|
|
List<SaveModel> list = elasticsearchUtil.findDateQuotaLevel1(endDate,endDate,area,level,"17","2",lowCode,null,null);
|
|
long total = 0;
|
|
long total = 0;
|
|
if(list.size()>0){
|
|
if(list.size()>0){
|
|
total = list.get(0).getResult2().longValue();
|
|
|
|
|
|
total = list.get(0).getResult2();
|
|
}
|
|
}
|
|
int num = 0;
|
|
int num = 0;
|
|
int taskNum = 0;
|
|
int taskNum = 0;
|
|
@ -675,7 +676,7 @@ public class StatisticsESService {
|
|
endDate = elasticsearchUtil.getQuotaTime();
|
|
endDate = elasticsearchUtil.getQuotaTime();
|
|
}
|
|
}
|
|
SaveModel saveModel = elasticsearchUtil.findOneDateQuotaLevel1(endDate,area,level,"8","2","6");
|
|
SaveModel saveModel = elasticsearchUtil.findOneDateQuotaLevel1(endDate,area,level,"8","2","6");
|
|
return saveModel.getResult2().longValue();
|
|
|
|
|
|
return saveModel.getResult2();
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@ -727,7 +728,7 @@ public class StatisticsESService {
|
|
for (SaveModel saveModel:list) {
|
|
for (SaveModel saveModel:list) {
|
|
JSONObject range = new JSONObject();
|
|
JSONObject range = new JSONObject();
|
|
range.put("range", df.format(saveModel.getQuotaDate()));
|
|
range.put("range", df.format(saveModel.getQuotaDate()));
|
|
range.put("amount", saveModel.getResult2().longValue());
|
|
|
|
|
|
range.put("amount", saveModel.getResult2());
|
|
result.add(range);
|
|
result.add(range);
|
|
}
|
|
}
|
|
json.put("data", new ArrayList<>(result));
|
|
json.put("data", new ArrayList<>(result));
|
|
@ -1026,7 +1027,7 @@ public class StatisticsESService {
|
|
if (esModelList != null && esModelList.size() > 0) {
|
|
if (esModelList != null && esModelList.size() > 0) {
|
|
for (SaveModel one : esModelList) {
|
|
for (SaveModel one : esModelList) {
|
|
Map<String, Object> maps = new HashMap<String, Object>();
|
|
Map<String, Object> maps = new HashMap<String, Object>();
|
|
maps.put("amount", one.getResult2().longValue());
|
|
|
|
|
|
maps.put("amount", one.getResult1());
|
|
if (low_level.equals("3")) {
|
|
if (low_level.equals("3")) {
|
|
maps.put("code", one.getTown());
|
|
maps.put("code", one.getTown());
|
|
maps.put("name", one.getTownName());
|
|
maps.put("name", one.getTownName());
|
|
@ -1250,7 +1251,7 @@ public class StatisticsESService {
|
|
JSONObject jo = new JSONObject();
|
|
JSONObject jo = new JSONObject();
|
|
jo.put("name", one.getTownName());
|
|
jo.put("name", one.getTownName());
|
|
jo.put("code", one.getTown());
|
|
jo.put("code", one.getTown());
|
|
jo.put("avgCount", getRangeDouuble(one.getResult1(), one.getResult2().intValue(), 2));
|
|
|
|
|
|
jo.put("avgCount", getRangeDouuble(one.getResult1(), one.getResult2(), 2));
|
|
ja.put(jo);
|
|
ja.put(jo);
|
|
});
|
|
});
|
|
} else {
|
|
} else {
|
|
@ -1259,7 +1260,7 @@ public class StatisticsESService {
|
|
JSONObject jo = new JSONObject();
|
|
JSONObject jo = new JSONObject();
|
|
jo.put("name", one.getHospitalName());
|
|
jo.put("name", one.getHospitalName());
|
|
jo.put("code", one.getHospital());
|
|
jo.put("code", one.getHospital());
|
|
jo.put("avgCount", getRangeDouuble(one.getResult1(), one.getResult2().intValue(), 2));
|
|
|
|
|
|
jo.put("avgCount", getRangeDouuble(one.getResult1(), one.getResult2(), 2));
|
|
ja.put(jo);
|
|
ja.put(jo);
|
|
});
|
|
});
|
|
}
|
|
}
|
|
@ -1269,7 +1270,7 @@ public class StatisticsESService {
|
|
JSONObject jo = new JSONObject();
|
|
JSONObject jo = new JSONObject();
|
|
jo.put("name", one.getHospitalName());
|
|
jo.put("name", one.getHospitalName());
|
|
jo.put("code", one.getHospital());
|
|
jo.put("code", one.getHospital());
|
|
jo.put("avgCount", getRangeDouuble(one.getResult1(), one.getResult2().intValue(), 2));
|
|
|
|
|
|
jo.put("avgCount", getRangeDouuble(one.getResult1(), one.getResult2(), 2));
|
|
ja.put(jo);
|
|
ja.put(jo);
|
|
});
|
|
});
|
|
} else if (level == 2) {
|
|
} else if (level == 2) {
|
|
@ -1279,7 +1280,7 @@ public class StatisticsESService {
|
|
JSONObject jo = new JSONObject();
|
|
JSONObject jo = new JSONObject();
|
|
jo.put("name", one.getTeam());
|
|
jo.put("name", one.getTeam());
|
|
jo.put("code", one.getTeamName());
|
|
jo.put("code", one.getTeamName());
|
|
jo.put("avgCount", getRangeDouuble(one.getResult1(), one.getResult2().intValue(), 2));
|
|
|
|
|
|
jo.put("avgCount", getRangeDouuble(one.getResult1(), one.getResult2(), 2));
|
|
ja.put(jo);
|
|
ja.put(jo);
|
|
});
|
|
});
|
|
translateTeamLeaderName(ja);
|
|
translateTeamLeaderName(ja);
|
|
@ -1311,7 +1312,7 @@ public class StatisticsESService {
|
|
if (esModelList != null && esModelList.size() > 0) {
|
|
if (esModelList != null && esModelList.size() > 0) {
|
|
for (SaveModel one : esModelList) {
|
|
for (SaveModel one : esModelList) {
|
|
Map<String, Object> maps = new HashMap<String, Object>();
|
|
Map<String, Object> maps = new HashMap<String, Object>();
|
|
maps.put("amount", one.getResult2().intValue());
|
|
|
|
|
|
maps.put("amount", one.getResult1());
|
|
if (low_level.equals("3")) {
|
|
if (low_level.equals("3")) {
|
|
maps.put("code", one.getTown());
|
|
maps.put("code", one.getTown());
|
|
maps.put("name", one.getTownName());
|
|
maps.put("name", one.getTownName());
|
|
@ -1405,7 +1406,7 @@ public class StatisticsESService {
|
|
if (esModelList != null && esModelList.size() > 0) {
|
|
if (esModelList != null && esModelList.size() > 0) {
|
|
for (SaveModel one : esModelList) {
|
|
for (SaveModel one : esModelList) {
|
|
Map<String, Object> maps = new HashMap<String, Object>();
|
|
Map<String, Object> maps = new HashMap<String, Object>();
|
|
maps.put("amount", one.getResult2().intValue());
|
|
|
|
|
|
maps.put("amount", one.getResult1());
|
|
if (low_level.equals("3")) {
|
|
if (low_level.equals("3")) {
|
|
maps.put("code", one.getTown());
|
|
maps.put("code", one.getTown());
|
|
maps.put("name", one.getTownName());
|
|
maps.put("name", one.getTownName());
|
|
@ -1680,9 +1681,9 @@ public class StatisticsESService {
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
//合并结果集
|
|
//合并结果集
|
|
Integer totalNm = totalRs.getResult2().intValue();
|
|
|
|
Integer relyNm = relyRs.getResult2().intValue();
|
|
|
|
Integer noRelyNm = onRelyRs.getResult2().intValue();
|
|
|
|
|
|
Integer totalNm = totalRs.getResult2();
|
|
|
|
Integer relyNm = relyRs.getResult2();
|
|
|
|
Integer noRelyNm = onRelyRs.getResult2();
|
|
// rs.put("name", relyRs.get(area+"Name"));
|
|
// rs.put("name", relyRs.get(area+"Name"));
|
|
if(level==4){
|
|
if(level==4){
|
|
rs.put("name", relyRs.getHospitalName());
|
|
rs.put("name", relyRs.getHospitalName());
|
|
@ -1875,9 +1876,9 @@ public class StatisticsESService {
|
|
|
|
|
|
//合并结果集
|
|
//合并结果集
|
|
Map<String, Object> rs = new HashMap<>();
|
|
Map<String, Object> rs = new HashMap<>();
|
|
Integer totalNm = total.getResult2().intValue();
|
|
|
|
Integer relyNm = rely.getResult2().intValue();
|
|
|
|
Integer noRelyNm = onRely.getResult2().intValue();
|
|
|
|
|
|
Integer totalNm = total.getResult2();
|
|
|
|
Integer relyNm = rely.getResult2();
|
|
|
|
Integer noRelyNm = onRely.getResult2();
|
|
// rs.put("name", rely.get(area + "Name"));
|
|
// rs.put("name", rely.get(area + "Name"));
|
|
if (SaveModel.cityLevel.equals(level+"")) {
|
|
if (SaveModel.cityLevel.equals(level+"")) {
|
|
rs.put("code", rely.getCity());
|
|
rs.put("code", rely.getCity());
|
|
@ -1970,8 +1971,8 @@ public class StatisticsESService {
|
|
//转签量
|
|
//转签量
|
|
switchSaveModel=elasticsearchUtil.findOneDateQuotaLevel0(timeKey,area,level,renewIndex,"2");
|
|
switchSaveModel=elasticsearchUtil.findOneDateQuotaLevel0(timeKey,area,level,renewIndex,"2");
|
|
}
|
|
}
|
|
int renewNum = renewSaveModel.getResult2().intValue();
|
|
|
|
int switchNum = switchSaveModel.getResult2().intValue();
|
|
|
|
|
|
int renewNum = renewSaveModel.getResult2();
|
|
|
|
int switchNum = switchSaveModel.getResult2();
|
|
|
|
|
|
//根据年度获取去年的签约数 签约指标是1
|
|
//根据年度获取去年的签约数 签约指标是1
|
|
if(StringUtils.isNoneBlank(lowCode)){
|
|
if(StringUtils.isNoneBlank(lowCode)){
|
|
@ -1991,7 +1992,7 @@ public class StatisticsESService {
|
|
signSaveModel=elasticsearchUtil.findOneDateQuotaLevel0(date,area,level,signIndex,"2");
|
|
signSaveModel=elasticsearchUtil.findOneDateQuotaLevel0(date,area,level,signIndex,"2");
|
|
}
|
|
}
|
|
//签约量
|
|
//签约量
|
|
int signNum = signSaveModel.getResult2().intValue();
|
|
|
|
|
|
int signNum = signSaveModel.getResult2();
|
|
jo.put("yesterYearSign", signNum);//去年的签约量
|
|
jo.put("yesterYearSign", signNum);//去年的签约量
|
|
jo.put("thisYearRenew", renewNum);//今年的续签量
|
|
jo.put("thisYearRenew", renewNum);//今年的续签量
|
|
jo.put("thisYearSwithch", switchNum);//今年的转签量
|
|
jo.put("thisYearSwithch", switchNum);//今年的转签量
|
|
@ -2056,7 +2057,7 @@ public class StatisticsESService {
|
|
private int getLevel1NumForRedis(String index, String level, String code, String timeKey) throws Exception{
|
|
private int getLevel1NumForRedis(String index, String level, String code, String timeKey) throws Exception{
|
|
|
|
|
|
SaveModel saveModel = elasticsearchUtil.findOneDateQuotaLevel0(timeKey,code,Integer.parseInt(level),index,"2");
|
|
SaveModel saveModel = elasticsearchUtil.findOneDateQuotaLevel0(timeKey,code,Integer.parseInt(level),index,"2");
|
|
return saveModel.getResult2().intValue();
|
|
|
|
|
|
return saveModel.getResult2();
|
|
}
|
|
}
|
|
/**
|
|
/**
|
|
* 通用的方法 获取二级维度的数据列表
|
|
* 通用的方法 获取二级维度的数据列表
|
|
@ -2214,11 +2215,11 @@ public class StatisticsESService {
|
|
if (renewSaveModels != null && renewSaveModels.size() > 0) {
|
|
if (renewSaveModels != null && renewSaveModels.size() > 0) {
|
|
for (SaveModel saveModel : renewSaveModels) {
|
|
for (SaveModel saveModel : renewSaveModels) {
|
|
if ("3".equals(low_level)) {
|
|
if ("3".equals(low_level)) {
|
|
renewMap.put(saveModel.getTown(), saveModel.getResult2().intValue());
|
|
|
|
|
|
renewMap.put(saveModel.getTown(), saveModel.getResult2());
|
|
} else if ("4".equals(low_level)) {
|
|
} else if ("4".equals(low_level)) {
|
|
renewMap.put(saveModel.getHospital(), saveModel.getResult2().intValue());
|
|
|
|
|
|
renewMap.put(saveModel.getHospital(), saveModel.getResult2());
|
|
} else if ("5".equals(low_level)) {
|
|
} else if ("5".equals(low_level)) {
|
|
renewMap.put(saveModel.getTeam(), saveModel.getResult2().intValue());
|
|
|
|
|
|
renewMap.put(saveModel.getTeam(), saveModel.getResult2());
|
|
} else {
|
|
} else {
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
@ -2267,7 +2268,7 @@ public class StatisticsESService {
|
|
int signNum = 0;
|
|
int signNum = 0;
|
|
int renewNum = renewMap.get(reMap.get("code").toString());
|
|
int renewNum = renewMap.get(reMap.get("code").toString());
|
|
if (one != null) {
|
|
if (one != null) {
|
|
signNum = one.getResult2().intValue();
|
|
|
|
|
|
signNum = Integer.valueOf(one.getResult2());
|
|
}
|
|
}
|
|
reMap.put("rate", getRange(renewNum, signNum, 2));//续签率是 续签量/去年的签约数
|
|
reMap.put("rate", getRange(renewNum, signNum, 2));//续签率是 续签量/去年的签约数
|
|
reMap.put("signNum", signNum);
|
|
reMap.put("signNum", signNum);
|
|
@ -2378,4 +2379,60 @@ public class StatisticsESService {
|
|
Double avgCout = saveModel2.getResult1()/(Integer)map.get("num");
|
|
Double avgCout = saveModel2.getResult1()/(Integer)map.get("num");
|
|
return null;
|
|
return null;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public Map<String,Object> getPrescriptionCount(int level,String area,String disease) throws Exception{
|
|
|
|
String index ="58";
|
|
|
|
Map<String,Object> rs = new HashedMap();
|
|
|
|
//总数
|
|
|
|
List<SaveModel> totalList = elasticsearchUtil.findListDateQuotaLevel1(null,area,level,index,"2",null,disease);
|
|
|
|
//进行中
|
|
|
|
List<SaveModel> processingList = elasticsearchUtil.findListDateQuotaLevel2(null,area,level,index,"2",null,disease,"1");
|
|
|
|
//已完成
|
|
|
|
List<SaveModel> finishedList = elasticsearchUtil.findListDateQuotaLevel2(null,area,level,index,"2",null,disease,"2");
|
|
|
|
//已经取消
|
|
|
|
List<SaveModel> canceledList = elasticsearchUtil.findListDateQuotaLevel2(null,area,level,index,"2",null,disease,"3");
|
|
|
|
//审核不通过
|
|
|
|
List<SaveModel> unPassList = elasticsearchUtil.findListDateQuotaLevel2(null,area,level,index,"2",null,disease,"4");
|
|
|
|
//其他原因取消
|
|
|
|
List<SaveModel> otherList = elasticsearchUtil.findListDateQuotaLevel2(null,area,level,index,"2",null,disease,"5");
|
|
|
|
|
|
|
|
//总数
|
|
|
|
if(totalList!=null && totalList.size()>0){
|
|
|
|
rs.put("total",totalList.get(0).getResult2());
|
|
|
|
}else{
|
|
|
|
rs.put("total",0);
|
|
|
|
}
|
|
|
|
|
|
|
|
//进行中
|
|
|
|
if(processingList!=null && processingList.size()>0){
|
|
|
|
rs.put("processingCount",processingList.get(0).getResult2());
|
|
|
|
}else {
|
|
|
|
rs.put("processingCount", 0);
|
|
|
|
}
|
|
|
|
//已完成
|
|
|
|
if(finishedList!=null && finishedList.size()>0){
|
|
|
|
rs.put("finishCount",finishedList.get(0).getResult2());
|
|
|
|
}else {
|
|
|
|
rs.put("finishCount", 0);
|
|
|
|
}
|
|
|
|
//已取消
|
|
|
|
if(canceledList!=null && canceledList.size()>0){
|
|
|
|
rs.put("patientCancelCount",canceledList.get(0).getResult2());
|
|
|
|
}else {
|
|
|
|
rs.put("patientCancelCount", 0);
|
|
|
|
}
|
|
|
|
//审核不通过
|
|
|
|
if(unPassList!=null && unPassList.size()>0){
|
|
|
|
rs.put("noReviewedCount",unPassList.get(0).getResult2());
|
|
|
|
}else {
|
|
|
|
rs.put("noReviewedCount", 0);
|
|
|
|
}
|
|
|
|
//其他原因取消
|
|
|
|
if(otherList!=null && otherList.size()>0){
|
|
|
|
rs.put("payOuttimeCount",otherList.get(0).getResult2());
|
|
|
|
}else {
|
|
|
|
rs.put("payOuttimeCount", 0);
|
|
|
|
}
|
|
|
|
return rs;
|
|
|
|
}
|
|
}
|
|
}
|