| 
					
				 | 
			
			
				@ -722,21 +722,30 @@ public class JMJkEduArticleService extends BaseService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if (!StringUtils.isEmpty(labelHealth) || !StringUtils.isEmpty(labelDisease)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            tableSql += " left join wlyy_sign_patient_label_info l on w.patient=l.patient "; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            whereSql += " and l.status=1 "; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            whereSql += " and ( "; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if (!StringUtils.isEmpty(labelHealth)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            whereSql += " (l.label_type = 2 AND l.label in (" + labelHealth + ")) "; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if (!StringUtils.isEmpty(labelDisease)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if (!whereSql.endsWith(" and ( ")) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                whereSql += " or (l.label_type = 3 AND l.label in (" + labelDisease + ")) "; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                whereSql += " l.label_type = 1 AND l.label in (" + labelDisease + ")) "; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if (!StringUtils.isEmpty(labelHealth) && !StringUtils.isEmpty(labelDisease)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                whereSql += " and ( (l.label_type = 2 AND l.label in (" + labelHealth + ") ) or (l.label_type = 3 AND l.label in (" + labelDisease + ") ))"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            }else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                if(!StringUtils.isEmpty(labelHealth)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    whereSql += " and (l.label_type = 2 AND l.label in (" + labelHealth + "))"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                if(!StringUtils.isEmpty(labelDisease)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    whereSql += " and (l.label_type = 3 AND l.label in (" + labelDisease + "))"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if (!StringUtils.isEmpty(labelHealth) || !StringUtils.isEmpty(labelDisease)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            whereSql += ")"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//        if (!StringUtils.isEmpty(labelDisease)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            if (!whereSql.endsWith(" and ( ")) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                whereSql += " or (l.label_type = 3 AND l.label in (" + labelDisease + "))) "; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                whereSql += " l.label_type = 3 AND l.label in (" + labelDisease + ")) "; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//        if (!StringUtils.isEmpty(labelHealth) || !StringUtils.isEmpty(labelDisease)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            whereSql += ")"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        tableSql += " left join wlyy_patient p on p.code=w.patient AND p.openid IS NOT NULL and p.openid <>''"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if (!StringUtils.isEmpty(labelSex)) { 
			 |