if(dates!=null)
tq.archiveTimeBefore(dates);
if(datee!=null)
tq.archiveTimeAfter(datee);
String processDefinitionKey = StringUtil.getString(filter.get("processDefinitionKey")); //流程定义
if(StringUtil.isNotEmpty(processDefinitionKey))
tq.processDefinitionKey(processDefinitionKey);