|
@ -754,7 +754,8 @@ public class WlyygcStatisticsService {
|
|
String deviceSql ="SELECT COUNT(id) AS total, COUNT(IF(device_type = 0,device_type,NULL)) AS jk,COUNT(IF(device_type = 1,device_type,NULL)) AS af FROM wlyy_devices where 1=1 ";
|
|
String deviceSql ="SELECT COUNT(id) AS total, COUNT(IF(device_type = 0,device_type,NULL)) AS jk,COUNT(IF(device_type = 1,device_type,NULL)) AS af FROM wlyy_devices where 1=1 ";
|
|
//医疗机构
|
|
//医疗机构
|
|
//养老机构
|
|
//养老机构
|
|
String orgSql = "SELECT COUNT(IF(type = 2,type,null)) AS yl,COUNT(IF(type = 3,type,null)) AS yangl FROM base_org WHERE del = 1 AND `code` NOT IN (SELECT DISTINCT dict_code from wlyy_hospital_sys_dict WHERE dict_name = 'jkzl_org' and dict_code is not null) ";
|
|
|
|
|
|
//日照中心
|
|
|
|
String orgSql = "SELECT COUNT(IF(type = 2,type,null)) AS yl,COUNT(IF(type = 3,type,null)) AS yangl,COUNT(IF(type =6 ,type,NULL)) AS rz FROM base_org WHERE del = 1 AND `code` NOT IN (SELECT DISTINCT dict_code from wlyy_hospital_sys_dict WHERE dict_name = 'jkzl_org' and dict_code is not null) ";
|
|
//助老员
|
|
//助老员
|
|
//医护人员
|
|
//医护人员
|
|
//社工
|
|
//社工
|
|
@ -779,6 +780,7 @@ public class WlyygcStatisticsService {
|
|
List<Map<String, Object>> orgList = jdbcTemplate.queryForList(orgSql);
|
|
List<Map<String, Object>> orgList = jdbcTemplate.queryForList(orgSql);
|
|
res.put("yanglao",orgList.get(0).get("yangl"));
|
|
res.put("yanglao",orgList.get(0).get("yangl"));
|
|
res.put("yl",orgList.get(0).get("yl"));
|
|
res.put("yl",orgList.get(0).get("yl"));
|
|
|
|
res.put("rz",orgList.get(0).get("rz"));
|
|
|
|
|
|
List<Map<String, Object>> maps = jdbcTemplate.queryForList(zlSql);
|
|
List<Map<String, Object>> maps = jdbcTemplate.queryForList(zlSql);
|
|
res.put("yh",maps.get(0).get("yh"));
|
|
res.put("yh",maps.get(0).get("yh"));
|