|
@ -1055,7 +1055,7 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
" FROM wlyy_doctor d " +
|
|
|
" RIGHT JOIN dm_hospital t on t.code = d.hospital " +
|
|
|
" LEFT JOIN wlyy_evaluate_score s ON d.code = s.doctor " +
|
|
|
" WHERE t.city='"+Constant.city+"' GROUP BY d.hospital order by avgCount DESC ";
|
|
|
" WHERE t.level = 2 AND t.del='1' AND t.city='"+Constant.city+"' GROUP BY d.hospital order by avgCount DESC ";
|
|
|
return city_hos_SQL;
|
|
|
}else if("town_hos_SQL".equals(code)){
|
|
|
//统计区级各社区
|
|
@ -1063,7 +1063,7 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
" FROM wlyy_doctor d " +
|
|
|
" RIGHT JOIN dm_hospital t on t.code = d.hospital " +
|
|
|
" LEFT JOIN wlyy_evaluate_score s ON d.code = s.doctor " +
|
|
|
" WHERE t.town= ? GROUP BY d.hospital order by avgCount DESC ";
|
|
|
" WHERE t.level = 2 AND t.del='1' AND t.town= ? GROUP BY d.hospital order by avgCount DESC ";
|
|
|
return town_hos_SQL;
|
|
|
}else if("team_SQL".equals(code)){
|
|
|
//查找所有团队
|
|
@ -1075,7 +1075,7 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
return team_SQL;
|
|
|
}else if("All_hos_SQL".equals(code)){
|
|
|
//查找所有机构
|
|
|
String All_hos_SQL = "SELECT t.code FROM dm_hospital t where t.city ='"+Constant.city+"'";
|
|
|
String All_hos_SQL = "SELECT t.code FROM dm_hospital t where t.level = 2 AND t.del='1' AND t.city ='"+Constant.city+"'";
|
|
|
return All_hos_SQL;
|
|
|
}
|
|
|
return "";
|