|  |  | @ -1,5 +1,6 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  | package cn.estsh.i3plus.pojo.platform.sqlpack; |  |  |  | package cn.estsh.i3plus.pojo.platform.sqlpack; | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | import cn.estsh.i3plus.pojo.base.enumutil.CommonEnumUtil; | 
			
		
	
		
		
			
				
					
					|  |  |  | import cn.estsh.i3plus.pojo.base.tool.HqlPack; |  |  |  | import cn.estsh.i3plus.pojo.base.tool.HqlPack; | 
			
		
	
		
		
			
				
					
					|  |  |  | import cn.estsh.i3plus.pojo.platform.bean.*; |  |  |  | import cn.estsh.i3plus.pojo.platform.bean.*; | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  |  | @ -172,6 +173,10 @@ public class CoreHqlPack { | 
			
		
	
		
		
			
				
					
					|  |  |  |         // hql拼接
 |  |  |  |         // hql拼接
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         HqlPack.getStringLikerPack(sysDictionary.getName(),"name",result); |  |  |  |         HqlPack.getStringLikerPack(sysDictionary.getName(),"name",result); | 
			
		
	
		
		
			
				
					
					|  |  |  |         HqlPack.getStringLikerPack(sysDictionary.getDictionaryCode(),"dictionaryCode",result); |  |  |  |         HqlPack.getStringLikerPack(sysDictionary.getDictionaryCode(),"dictionaryCode",result); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         // 默认查询非顶级字典
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         if(sysDictionary.getParentId() == null || sysDictionary.getParentId() < 1){ | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             HqlPack.getNumNOEqualPack(CommonEnumUtil.PARENT.DEFAULT.getValue(),"parentId",result); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |         HqlPack.getNumEqualPack(sysDictionary.getParentId(),"parentId",result); |  |  |  |         HqlPack.getNumEqualPack(sysDictionary.getParentId(),"parentId",result); | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         return result.toString(); |  |  |  |         return result.toString(); | 
			
		
	
	
		
		
			
				
					|  |  | @ -301,4 +306,15 @@ public class CoreHqlPack { | 
			
		
	
		
		
			
				
					
					|  |  |  |         return  result.toString(); |  |  |  |         return  result.toString(); | 
			
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     public static String packHqlSysDictionaryCode(SysDictionary sysDictionary){ | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         StringBuffer result = new StringBuffer(); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         // and
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         HqlPack.getStringEqualPack(sysDictionary.getDictionaryCode(),"dictionaryCode",result); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         // not
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         HqlPack.getNumNOEqualPack(sysDictionary.getId(),"id",result); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         return result.toString(); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | } |  |  |  | } |