|
|
|
@ -263,6 +263,7 @@ public class CoreHqlPack {
|
|
|
|
|
HqlPack.getStringLikerPack(message.getMessageSenderNameRdd(),"messageSenderNameRdd",result);
|
|
|
|
|
HqlPack.getStringLikerPack(message.getMessageReceiversNameRdd(),"messageReceiversNameRdd",result);
|
|
|
|
|
HqlPack.timeBuilder(message.getMessageSendTime(),"messageSendTime", result, false,false);
|
|
|
|
|
HqlPack.getNumEqualPack(message.getMessageSenderId(),"messageSenderId",result);
|
|
|
|
|
|
|
|
|
|
return result.toString();
|
|
|
|
|
}
|
|
|
|
@ -276,7 +277,7 @@ public class CoreHqlPack {
|
|
|
|
|
StringBuffer result = new StringBuffer();
|
|
|
|
|
|
|
|
|
|
// hql拼接
|
|
|
|
|
HqlPack.getStringLikerPack(file.getName(),"name",result);
|
|
|
|
|
HqlPack.getStringLikerPack(file.getFileOriginalName(),"fileOriginalName",result);
|
|
|
|
|
HqlPack.getNumEqualPack(file.getFileTypeId(),"fileTypeId",result);
|
|
|
|
|
HqlPack.getStringLikerPack(file.getCreateUser(),"createUser",result);
|
|
|
|
|
HqlPack.timeBuilder(file.getCreateDatetime(),"createDatetime",result,false,false);
|
|
|
|
@ -285,11 +286,11 @@ public class CoreHqlPack {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 任务表达式复杂查询
|
|
|
|
|
* 任务周期复杂查询
|
|
|
|
|
* @param taskTimeExpression
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
public static String packHqlSysTaskTimeExpression(SysTaskTimeExpression taskTimeExpression) {
|
|
|
|
|
public static String packHqlSysTaskCycle(SysTaskCycle taskTimeExpression) {
|
|
|
|
|
StringBuffer result = new StringBuffer();
|
|
|
|
|
|
|
|
|
|
// hql拼接
|
|
|
|
@ -303,13 +304,13 @@ public class CoreHqlPack {
|
|
|
|
|
* @param taskTime
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
public static String packHqlSysTaskTime(SysTaskTime taskTime){
|
|
|
|
|
public static String packHqlSysTaskPlan(SysTaskPlan taskTime){
|
|
|
|
|
StringBuffer result = new StringBuffer();
|
|
|
|
|
|
|
|
|
|
// hql拼接
|
|
|
|
|
HqlPack.getStringLikerPack(taskTime.getName(),"name",result);
|
|
|
|
|
HqlPack.getNumEqualPack(taskTime.getTaskStatus(),"taskStatus",result);
|
|
|
|
|
HqlPack.getNumEqualPack(taskTime.getTimeExpressionId(),"timeExpressionId",result);
|
|
|
|
|
HqlPack.getNumEqualPack(taskTime.getTaskPlanStatus(),"taskPlanStatus",result);
|
|
|
|
|
HqlPack.getNumEqualPack(taskTime.getTaskCycleId(),"taskCycleId",result);
|
|
|
|
|
|
|
|
|
|
return result.toString();
|
|
|
|
|
}
|
|
|
|
@ -366,6 +367,7 @@ public class CoreHqlPack {
|
|
|
|
|
|
|
|
|
|
// and
|
|
|
|
|
HqlPack.getStringEqualPack(dictionary.getDictionaryValue(),"dictionaryValue",result);
|
|
|
|
|
HqlPack.getNumEqualPack(dictionary.getParentId(),"parentId",result);
|
|
|
|
|
// not
|
|
|
|
|
HqlPack.getNumNOEqualPack(dictionary.getId(),"id",result);
|
|
|
|
|
|
|
|
|
@ -488,7 +490,21 @@ public class CoreHqlPack {
|
|
|
|
|
HqlPack.getStringLikerPack(sysRefUserMessage.getMessageSenderNameRdd(),"messageSenderNameRdd",result);
|
|
|
|
|
HqlPack.getNumEqualPack(sysRefUserMessage.getMessageStatus(),"messageStatus",result);
|
|
|
|
|
HqlPack.getStringLikerPack(sysRefUserMessage.getReceiverTime(),"receiverTime",result);
|
|
|
|
|
HqlPack.getNumEqualPack(sysRefUserMessage.getReceiverId(),"receiverId",result);
|
|
|
|
|
|
|
|
|
|
return result.toString();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 任务复杂查询
|
|
|
|
|
* @param sysTask
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
public static String packHqlSysTask(SysTask sysTask){
|
|
|
|
|
StringBuffer result = new StringBuffer();
|
|
|
|
|
|
|
|
|
|
HqlPack.getStringLikerPack(sysTask.getName(),"name",result);
|
|
|
|
|
|
|
|
|
|
return result.toString();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|