|
@ -595,7 +595,7 @@ public class PatientService extends TokenService {
|
|
public JSONArray getSignByTeamCodeGpbyServer(Long teamCode){
|
|
public JSONArray getSignByTeamCodeGpbyServer(Long teamCode){
|
|
|
|
|
|
// 获取总分组数量
|
|
// 获取总分组数量
|
|
String totalGSql = "SELECT count(1) AS Amount,f.server_type AS serverType,f.server_type_name AS serverTypeName FROM wlyy_sign_family f WHERE f.admin_team_code ="+teamCode+" AND f.`status`>0 AND f.server_type IS NOT NULL GROUP BY f.server_type ORDER BY f.server_type DESC";
|
|
|
|
|
|
String totalGSql = "SELECT count(1) AS Amount,f.server_type AS serverType,f.server_type_name AS serverTypeName FROM wlyy_sign_family f WHERE f.admin_team_code ="+teamCode+" AND f.`status`>0 AND f.server_type IS NOT NULL GROUP BY f.server_type ORDER BY f.server_type ASC";
|
|
List<Map<String,Object>> totalG = jdbcTemplate.queryForList(totalGSql);
|
|
List<Map<String,Object>> totalG = jdbcTemplate.queryForList(totalGSql);
|
|
|
|
|
|
//获取关注量分组数量
|
|
//获取关注量分组数量
|
|
@ -603,7 +603,7 @@ public class PatientService extends TokenService {
|
|
List<Map<String,Object>> fousG = jdbcTemplate.queryForList(fousGSql);
|
|
List<Map<String,Object>> fousG = jdbcTemplate.queryForList(fousGSql);
|
|
|
|
|
|
//获取二级节点分组总数
|
|
//获取二级节点分组总数
|
|
String sesTotalSql ="SELECT count(1) AS Amount,f.server_type AS serverType,f.server_type_name As serverTypeName ,f.special_population AS specialPopulation,f.special_population_name AS specialPopulationName FROM wlyy_sign_family f WHERE f.admin_team_code ="+teamCode+" AND f.`status`>0 AND f.special_population Is NOT NULL AND f.server_type IS NOT NULL GROUP BY f.special_population ORDER BY f.special_population DESC ";
|
|
|
|
|
|
String sesTotalSql ="SELECT count(1) AS Amount,f.server_type AS serverType,f.server_type_name As serverTypeName ,f.special_population AS specialPopulation,f.special_population_name AS specialPopulationName FROM wlyy_sign_family f WHERE f.admin_team_code ="+teamCode+" AND f.`status`>0 AND f.special_population Is NOT NULL AND f.server_type IS NOT NULL GROUP BY f.special_population ORDER BY f.special_population ASC ";
|
|
List<Map<String,Object>> sesTotal = jdbcTemplate.queryForList(sesTotalSql);
|
|
List<Map<String,Object>> sesTotal = jdbcTemplate.queryForList(sesTotalSql);
|
|
|
|
|
|
//获取二级节点分组数量
|
|
//获取二级节点分组数量
|
|
@ -695,7 +695,7 @@ public class PatientService extends TokenService {
|
|
public JSONArray getSignByDoctorCodeGpbyServer(String doctor){
|
|
public JSONArray getSignByDoctorCodeGpbyServer(String doctor){
|
|
|
|
|
|
// 获取总分组数量
|
|
// 获取总分组数量
|
|
String totalGSql = "SELECT count(1) AS Amount,f.server_type AS serverType,f.server_type_name AS serverTypeName FROM wlyy_sign_family f WHERE (f.doctor ='"+doctor+"' OR f.doctor_health ='"+doctor+"') AND f.`status`>0 AND f.server_type IS NOT NULL GROUP BY f.server_type ORDER BY f.server_type DESC";
|
|
|
|
|
|
String totalGSql = "SELECT count(1) AS Amount,f.server_type AS serverType,f.server_type_name AS serverTypeName FROM wlyy_sign_family f WHERE (f.doctor ='"+doctor+"' OR f.doctor_health ='"+doctor+"') AND f.`status`>0 AND f.server_type IS NOT NULL GROUP BY f.server_type ORDER BY f.server_type ASC";
|
|
List<Map<String,Object>> totalG = jdbcTemplate.queryForList(totalGSql);
|
|
List<Map<String,Object>> totalG = jdbcTemplate.queryForList(totalGSql);
|
|
|
|
|
|
//获取关注量分组数量
|
|
//获取关注量分组数量
|
|
@ -703,7 +703,7 @@ public class PatientService extends TokenService {
|
|
List<Map<String,Object>> fousG = jdbcTemplate.queryForList(fousGSql);
|
|
List<Map<String,Object>> fousG = jdbcTemplate.queryForList(fousGSql);
|
|
|
|
|
|
//获取二级节点分组总数
|
|
//获取二级节点分组总数
|
|
String sesTotalSql ="SELECT count(1) AS Amount,f.server_type AS serverType,f.server_type_name As serverTypeName ,f.special_population AS specialPopulation,f.special_population_name AS specialPopulationName FROM wlyy_sign_family f WHERE (f.doctor ='"+doctor+"' OR f.doctor_health ='"+doctor+"') AND f.`status`>0 AND f.special_population Is NOT NULL AND f.server_type IS NOT NULL GROUP BY f.special_population ORDER BY f.special_population DESC ";
|
|
|
|
|
|
String sesTotalSql ="SELECT count(1) AS Amount,f.server_type AS serverType,f.server_type_name As serverTypeName ,f.special_population AS specialPopulation,f.special_population_name AS specialPopulationName FROM wlyy_sign_family f WHERE (f.doctor ='"+doctor+"' OR f.doctor_health ='"+doctor+"') AND f.`status`>0 AND f.special_population Is NOT NULL AND f.server_type IS NOT NULL GROUP BY f.special_population ORDER BY f.special_population ASC ";
|
|
List<Map<String,Object>> sesTotal = jdbcTemplate.queryForList(sesTotalSql);
|
|
List<Map<String,Object>> sesTotal = jdbcTemplate.queryForList(sesTotalSql);
|
|
|
|
|
|
//获取二级节点分组数量
|
|
//获取二级节点分组数量
|