|
@ -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(f.id) planNum,COUNT(if(f.`status`=1,1,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(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(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]+"' ";
|
|
|
}
|