|
@ -116,7 +116,7 @@ public class StatisticsService {
|
|
|
JSONObject res = new JSONObject();
|
|
|
Integer olderTotal = 0;
|
|
|
Integer childTotal = 0;
|
|
|
String sql1 = "SELECT COUNT(*) c,archive_type from base_patient WHERE archive_type is not null and del='1' GROUP BY archive_type";
|
|
|
String sql1 = "SELECT COUNT(*) c,archive_type*1 as archive_type from base_patient WHERE archive_type is not null and del='1' GROUP BY archive_type";
|
|
|
List<Map<String,Object>> list1 = jdbcTemplate.queryForList(sql1);
|
|
|
for(Map<String,Object> map:list1){
|
|
|
String archive_type = map.get("archive_type").toString();
|