| 
					
				 | 
			
			
				@ -66,7 +66,7 @@ public class ChildActivityRegistrationService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @param page 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @param size 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public PageEnvelop childActivityRegistrationList(String patient,String activityType, int page, int size){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public PageEnvelop childActivityRegistrationList(String patient,String activityType,String orgCode, int page, int size){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String sql = "SELECT a.id,a.activity_type activityType,a.patient,p.name,p.sex,p.idcard,p.photo,org.code,org.name orgName,DATE_FORMAT(a.create_time,'%Y-%m-%d %H:%i:%S') create_time from base_child_activity_registration a " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "LEFT JOIN base_org org on a.org_code = org.code ,base_patient p " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "WHERE a.patient = p.id"; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -81,6 +81,9 @@ public class ChildActivityRegistrationService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if(StringUtils.isNotBlank(activityType)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            filter += " and a.activity_type = '"+activityType+"' "; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if (StringUtils.isNotBlank(orgCode)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            filter += " and a.org_code = '"+orgCode+"' "; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        Long count = jdbcTemplate.queryForObject(sqlCount+filter,Long.class); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        List<Map<String,Object>> result = jdbcTemplate.queryForList(sql+filter); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        for (Map<String,Object> map:result){ 
			 |