|  | @ -116,7 +116,7 @@ public class StatisticsService {
 | 
												
													
														
															|  |         JSONObject res = new JSONObject();
 |  |         JSONObject res = new JSONObject();
 | 
												
													
														
															|  |         Integer olderTotal = 0;
 |  |         Integer olderTotal = 0;
 | 
												
													
														
															|  |         Integer childTotal = 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);
 |  |         List<Map<String,Object>> list1 = jdbcTemplate.queryForList(sql1);
 | 
												
													
														
															|  |         for(Map<String,Object> map:list1){
 |  |         for(Map<String,Object> map:list1){
 | 
												
													
														
															|  |             String archive_type = map.get("archive_type").toString();
 |  |             String archive_type = map.get("archive_type").toString();
 | 
												
											
												
													
														
															|  | @ -680,6 +680,9 @@ public class StatisticsService {
 | 
												
													
														
															|  |         for(int i=0;i<list.size();i++){
 |  |         for(int i=0;i<list.size();i++){
 | 
												
													
														
															|  |             SaveModel saveModel = list.get(i);
 |  |             SaveModel saveModel = list.get(i);
 | 
												
													
														
															|  |             JSONObject json = new JSONObject();
 |  |             JSONObject json = new JSONObject();
 | 
												
													
														
															|  | 
 |  |             if (saveModel.getResult2().longValue()==0&&StringUtils.isBlank(saveModel.getSlaveKey1())){
 | 
												
													
														
															|  | 
 |  |                 continue;
 | 
												
													
														
															|  | 
 |  |             }
 | 
												
													
														
															|  |             json.put("num",saveModel.getResult2().longValue());
 |  |             json.put("num",saveModel.getResult2().longValue());
 | 
												
													
														
															|  |             json.put("code",saveModel.getSlaveKey1());
 |  |             json.put("code",saveModel.getSlaveKey1());
 | 
												
													
														
															|  |             json.put("name",saveModel.getSlaveKey1Name());
 |  |             json.put("name",saveModel.getSlaveKey1Name());
 |