|
@ -619,7 +619,12 @@ public class DetectionPlatformService {
|
|
|
*/
|
|
|
public JSONObject getTopicPeopleNums(String area,String level){
|
|
|
JSONObject result = new JSONObject();
|
|
|
|
|
|
String sql = " select dict_code from wlyy_hospital_sys_dict where dict_name='security_topic_dict' ";
|
|
|
List<String> sqlList = jdbcTemplate.queryForList(sql,String.class);
|
|
|
for (String tmp:sqlList){
|
|
|
result.put(tmp,0);
|
|
|
}
|
|
|
result.put("emergencyAssistance",0);
|
|
|
String olderFilter = roleService.getOlderRoleSQL(area,level);
|
|
|
|
|
|
// String filter = " ";
|
|
@ -632,7 +637,7 @@ public class DetectionPlatformService {
|
|
|
// filter = " and pd.user not in ('" + orgCodes + "') ";
|
|
|
// }
|
|
|
// }
|
|
|
String sql = " select count(DISTINCT pd.user) total,pd.category_code from wlyy_patient_device pd where pd.del=0 " +
|
|
|
sql = " select count(DISTINCT pd.user) total,pd.category_code from wlyy_patient_device pd where pd.del=0 " +
|
|
|
" and pd.category_code in (4,7,12,13,14,15) " + olderFilter.replace("{patient}","pd.user")+
|
|
|
" group by pd.category_code ";
|
|
|
List<Map<String,Object>> list = jdbcTemplate.queryForList(sql);
|