|
|
@ -230,4 +230,35 @@ public class CoreHqlPack {
|
|
|
|
|
|
|
|
|
|
|
|
return result.toString();
|
|
|
|
return result.toString();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 文件资源复杂查询
|
|
|
|
|
|
|
|
* @param sysFile
|
|
|
|
|
|
|
|
* @return
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
public static String packHqlSysFile(SysFile sysFile) {
|
|
|
|
|
|
|
|
StringBuffer result = new StringBuffer();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// hql拼接
|
|
|
|
|
|
|
|
HqlPack.getStringLikerPack(sysFile.getName(),"name",result);
|
|
|
|
|
|
|
|
HqlPack.getNumEqualPack(sysFile.getFileTypeId(),"fileTypeId",result);
|
|
|
|
|
|
|
|
HqlPack.getStringLikerPack(sysFile.getCreateUser(),"createUser",result);
|
|
|
|
|
|
|
|
HqlPack.timeBuilder(sysFile.getCreateDatetime(),"createDatetime",result,false,false);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return result.toString();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 任务表达式复杂查询
|
|
|
|
|
|
|
|
* @param taskTimeExpression
|
|
|
|
|
|
|
|
* @return
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
public static String packHqlSysFile(TaskTimeExpression taskTimeExpression) {
|
|
|
|
|
|
|
|
StringBuffer result = new StringBuffer();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// hql拼接
|
|
|
|
|
|
|
|
HqlPack.getStringLikerPack(taskTimeExpression.getName(),"name",result);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return result.toString();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|