| 
					
				 | 
			
			
				@ -216,10 +216,11 @@ public class PatientRecordService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String response = jwSmjkService.getExamAndLabReport(patient.getSsc(), page, pageSize);     //【基卫接口】 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        //获取app数据 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String sql = "select a.*,b.img_type as catalog,GROUP_CONCAT(b.img_label) as label from wlyy_patient_event a\n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "left join wlyy_patient_event_img b on b.event_id=a.id and b.img_type in ('检查报告','检验报告')\n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "where a.patient='" + patientCode + "'\n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "group by b.img_type order by a.event_date desc"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String sql = "select a.*,b.img_type as catalog,GROUP_CONCAT(b.img_label) as label \n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "from wlyy_patient_event a,wlyy_patient_event_img b\n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "where a.patient='"+patientCode+"' and b.event_id=a.id and b.img_type in ('检查报告','检验报告')  \n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "group by b.event_id,b.img_type order by a.event_date desc"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        List<Map<String, Object>> appList = jdbcTemplate.queryForList(sql); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if (!StringUtils.isEmpty(response)) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -246,7 +247,7 @@ public class PatientRecordService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                re.add(map); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            //*******过滤 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            //过滤 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            for (Map<String, Object> item : appList) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                Map<String, String> map = new HashMap<>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                map.put("id", item.get("id").toString()); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -269,7 +270,8 @@ public class PatientRecordService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            //排序 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            re = sortMapList(re, "eventDate", "DESC"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            for (Map<String, Object> item : appList) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                Map<String, String> map = new HashMap<>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                map.put("id", String.valueOf(item.get("id"))); 
			 |