|
|
|
@ -339,6 +339,22 @@ public class CoreHqlPack {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 查询字典值是否重复
|
|
|
|
|
* @param dictionary
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
public static String packHqlSysDictionaryValue(SysDictionary dictionary){
|
|
|
|
|
StringBuffer result = new StringBuffer();
|
|
|
|
|
|
|
|
|
|
// and
|
|
|
|
|
HqlPack.getStringEqualPack(dictionary.getDictionaryValue(),"dictionaryValue",result);
|
|
|
|
|
// not
|
|
|
|
|
HqlPack.getNumNOEqualPack(dictionary.getId(),"id",result);
|
|
|
|
|
|
|
|
|
|
return result.toString();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 用户信息 复杂查询拼接
|
|
|
|
|
* @param userInfo
|
|
|
|
|
* @return
|
|
|
|
|