|
@ -8687,7 +8687,7 @@ public class StatisticsEsService {
|
|
|
String followupSql = "SELECT COUNT(f.id) planNum,COUNT(if(f.`status`=1,1,null)) finishNum from wlyy_followup f" +
|
|
|
" where f.followup_date >='"+startDate+"' and f.followup_date <='"+endDate+"' ";
|
|
|
if(StringUtils.isNotBlank(deptCode)){
|
|
|
followupSql = "SELECT COUNT(f.id) planNum,COUNT(if(f.`status`=1,1,null)) finishNum from wlyy_followup f,base_doctor_hospital h " +
|
|
|
followupSql = "SELECT COUNT(distinct f.id) planNum,COUNT(distinct if(f.`status`=1,f.id,null)) finishNum from wlyy_followup f,base_doctor_hospital h " +
|
|
|
" where f.doctor_code=h.doctor_code and h.del=1 and h.dept_code='"+deptCode+"' " +
|
|
|
" and f.followup_date >='"+startDate+"' and f.followup_date <='"+endDate+"' ";
|
|
|
}
|
|
@ -8720,10 +8720,10 @@ public class StatisticsEsService {
|
|
|
turnSqlT += " and dept = '"+deptCode+"' ";
|
|
|
turnPersonSqlH += " and dept = '"+deptCode+"' ";
|
|
|
turnPersonSqlT += " and dept = '"+deptCode+"' ";
|
|
|
followupSqlH = "SELECT COUNT(f.id) planNum from wlyy_followup f,base_doctor_hospital h " +
|
|
|
followupSqlH = "SELECT COUNT(distinct f.id) planNum from wlyy_followup f,base_doctor_hospital h " +
|
|
|
" where f.doctor_code=h.doctor_code and h.del=1 and h.dept_code='"+deptCode+"' " +
|
|
|
" and f.followup_date >='"+period[0]+"' and f.followup_date <='"+period[1]+"' ";
|
|
|
followupSqlT = "SELECT COUNT(f.id) planNum from wlyy_followup f,base_doctor_hospital h " +
|
|
|
followupSqlT = "SELECT COUNT(distinct f.id) planNum from wlyy_followup f,base_doctor_hospital h " +
|
|
|
" where f.doctor_code=h.doctor_code and h.del=1 and h.dept_code='"+deptCode+"' " +
|
|
|
" and f.followup_date >='"+periodYear[0]+"' and f.followup_date <='"+periodYear[1]+"' ";
|
|
|
}
|
|
@ -8845,7 +8845,8 @@ public class StatisticsEsService {
|
|
|
String healthNum = healthMap.get(currentWeek);
|
|
|
if(map == null){
|
|
|
map = new HashMap<>();
|
|
|
map.put("date",currentWeek);
|
|
|
String cw[] = currentWeek.split("_");
|
|
|
map.put("date",getWeekFistday(Integer.parseInt(cw[0]),Integer.parseInt(cw[1])));
|
|
|
map.put("callNum","0");
|
|
|
map.put("consultNum","0");
|
|
|
map.put("doorNum","0");
|
|
@ -8902,7 +8903,17 @@ public class StatisticsEsService {
|
|
|
week = "0" + week;
|
|
|
}
|
|
|
String year = Integer.toString(now.getYear());
|
|
|
return year + week;
|
|
|
return year +"_"+ week;
|
|
|
}
|
|
|
|
|
|
public String getWeekFistday(int year,int week){
|
|
|
WeekFields weekFields= WeekFields.ISO;
|
|
|
LocalDate now = LocalDate.now();
|
|
|
//输入你想要的年份和周数
|
|
|
LocalDate localDate = now.withYear(year).with(weekFields.weekOfYear(),week);
|
|
|
//以周一为每周的第一天
|
|
|
LocalDate localDate1 = localDate.with(weekFields.dayOfWeek(), 1L);
|
|
|
return localDate1.toString();
|
|
|
}
|
|
|
|
|
|
//诊后随访明细
|