|
|
|
@ -33,11 +33,9 @@ import cn.jyjz.xiaoyao.oa.from.dataobject.Flowablecc;
|
|
|
|
|
import cn.jyjz.xiaoyao.oa.from.service.*;
|
|
|
|
|
|
|
|
|
|
import cn.jyjz.xiaoyao.oa.from.vo.FlowUnionVo;
|
|
|
|
|
import cn.jyjz.xiaoyao.oa.from.vo.RepeatedTaskVo;
|
|
|
|
|
import cn.jyjz.xiaoyao.ocr.dataobject.*;
|
|
|
|
|
import cn.jyjz.xiaoyao.ocr.service.*;
|
|
|
|
|
import cn.jyjz.xiaoyao.ocr.util.SearchParaFormatting;
|
|
|
|
|
import cn.jyjz.xiaoyao.ocr.vo.OcrTaskChildPictureVo;
|
|
|
|
|
import cn.jyjz.xiaoyao.ocr.vo.OcrTaskchildPictureApproVo;
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
|
@ -456,9 +454,10 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IFlowTask
|
|
|
|
|
variables.put("approvd", approve.getResult());
|
|
|
|
|
OcrTaskchildPicture model = ocrTaskchildPictureService.getById(Long.parseLong(flowTaskInfo.getFormId()));
|
|
|
|
|
if (approve.getResult()) {
|
|
|
|
|
disposeSucceedTask(task, processDefinition, variables, model, flowTaskInfo.getFormId(), userToken);
|
|
|
|
|
disposeSucceedTask(task, processDefinition, variables, model, flowTaskInfo.getFormId(), userToken, approve);
|
|
|
|
|
} else {
|
|
|
|
|
disposeFailureTask(task, flowTaskInfo.getFormId(), variables);
|
|
|
|
|
disposeFailureTask(task, flowTaskInfo.getFormId(), variables, approve);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
userapproveService.save(userToken, approve, task, flowTaskInfo.getFormId());
|
|
|
|
|
successCount++;
|
|
|
|
@ -475,7 +474,7 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IFlowTask
|
|
|
|
|
/**
|
|
|
|
|
* 处理审批成功任务
|
|
|
|
|
*/
|
|
|
|
|
private void disposeSucceedTask(Task task, ProcessDefinition processDefinition, Map<String, Object> variables, OcrTaskchildPicture model, String formId, UserToken userToken) {
|
|
|
|
|
private void disposeSucceedTask(Task task, ProcessDefinition processDefinition, Map<String, Object> variables, OcrTaskchildPicture model, String formId, UserToken userToken, FlowApprove approve) throws Exception {
|
|
|
|
|
//进入下一个节点
|
|
|
|
|
taskService.complete(task.getId(), variables);
|
|
|
|
|
updateAssignee(task.getProcessInstanceId(), task.getProcessDefinitionId(), processDefinition);
|
|
|
|
@ -488,17 +487,19 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IFlowTask
|
|
|
|
|
if (null != taskList && !taskList.isEmpty()) {
|
|
|
|
|
taskData = taskList.get(0);
|
|
|
|
|
}
|
|
|
|
|
OcrTaskchildPicture childPicture = ocrTaskchildPictureService.getById(Long.parseLong(formId));
|
|
|
|
|
if (ObjectUtils.isEmpty(taskData)) {
|
|
|
|
|
model.setFinishtime(System.currentTimeMillis());
|
|
|
|
|
model.setStates(SystemConstantsOa.OA_STATUS_TYPE_END);
|
|
|
|
|
ocrTaskchildPictureService.updateById(model);
|
|
|
|
|
OcrPicture picture = ocrPictureService.getById(model.getPictureid());
|
|
|
|
|
ocrTaskchildPictureService.sendFlowTaskResult(childPicture, picture, approve);
|
|
|
|
|
} else {
|
|
|
|
|
//判断节点上的描述字段,是否伟finale_judgment,如果是,记录到终审表中,如果终审表已经存在,不再重复记录
|
|
|
|
|
if (StringUtils.isNotBlank(taskData.getDescription()) && taskData.getDescription().equals(SystemConstantsOa.OA_TASK_COMPLETE_FINALE_FORM)) {
|
|
|
|
|
User user = userService.findByLoginname(formData.getAssignee());
|
|
|
|
|
userFinalService.save(user.getId().toString(), formId);
|
|
|
|
|
}
|
|
|
|
|
OcrTaskchildPicture childPicture = ocrTaskchildPictureService.getById(Long.parseLong(formId));
|
|
|
|
|
this.sendMsg(childPicture, userToken);
|
|
|
|
|
childPicture.setTaskId(taskData.getId());
|
|
|
|
|
childPicture.setTaskname(taskData.getName());
|
|
|
|
@ -512,7 +513,7 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IFlowTask
|
|
|
|
|
/**
|
|
|
|
|
* 处理失败任务
|
|
|
|
|
*/
|
|
|
|
|
private void disposeFailureTask(Task task, String formId, Map<String, Object> variables) {
|
|
|
|
|
private void disposeFailureTask(Task task, String formId, Map<String, Object> variables, FlowApprove approve) throws Exception {
|
|
|
|
|
ProcessInstance processInstance = runtimeService.createProcessInstanceQuery().processInstanceId(task.getProcessInstanceId()).singleResult();
|
|
|
|
|
//我这里以 流程定义key(oa_category_t定义的关键字,逻辑唯一) + 业务表主键(请假表、调岗表等) + 业务表对应的servicename
|
|
|
|
|
String businesskey = processInstance.getBusinessKey();
|
|
|
|
@ -535,8 +536,6 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IFlowTask
|
|
|
|
|
//设置流程结束状态
|
|
|
|
|
iFormCustomService.endForm(busskey[1], SystemConstantsOa.OA_STATUS_TYPE_REFUSE, assignee, task.getProcessInstanceId(), task.getName());
|
|
|
|
|
}
|
|
|
|
|
//1、获取终止节点
|
|
|
|
|
List<EndEvent> endNodes = findEndFlowElement(task.getProcessDefinitionId());
|
|
|
|
|
//2、执行终止
|
|
|
|
|
List<Execution> executions = runtimeService.createExecutionQuery().parentId(task.getProcessInstanceId()).list();
|
|
|
|
|
List<String> executionIds = new ArrayList<>();
|
|
|
|
@ -544,6 +543,9 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IFlowTask
|
|
|
|
|
OcrTaskchildPicture taskchildPicture = ocrTaskchildPictureService.getById(Long.parseLong(formId));
|
|
|
|
|
taskchildPicture.setFinishtime(System.currentTimeMillis());
|
|
|
|
|
ocrTaskchildPictureService.updateById(taskchildPicture);
|
|
|
|
|
OcrPicture picture = ocrPictureService.getById(taskchildPicture.getPictureid());
|
|
|
|
|
ocrTaskchildPictureService.sendFlowTaskResult(taskchildPicture, picture, approve);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//发送消息
|
|
|
|
@ -559,6 +561,7 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IFlowTask
|
|
|
|
|
jsonObject.put("taskId", model.getFromtaskid());
|
|
|
|
|
jsonObject.put("nodeName", model.getTaskname());
|
|
|
|
|
jsonObject.put("states", 1);
|
|
|
|
|
jsonObject.put("statesName", "待审批");
|
|
|
|
|
jsonObject.put("sendUserId", userToken.getUserid());
|
|
|
|
|
jsonObject.put("sendUserName", userToken.getUsername());
|
|
|
|
|
jsonObject.put("sendTime", System.currentTimeMillis());
|
|
|
|
@ -1317,14 +1320,14 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IFlowTask
|
|
|
|
|
query.put("searchassignee", user.getLoginname());
|
|
|
|
|
query.putAll(searchQuery);
|
|
|
|
|
|
|
|
|
|
// if (!StringUtils.isBlank(userSearchId)) {
|
|
|
|
|
// OcrUsersearch ocrUsersearch = ocrUsersearchService.selectByUserSearchId(userSearchId);
|
|
|
|
|
// SearchQuery additionalQuery = new SearchQuery();
|
|
|
|
|
// for (OcrUsersearchchild usersearchchild : ocrUsersearch.getOcrUsersearchchildList()) {
|
|
|
|
|
// this.formattingSearchChild1(additionalQuery, usersearchchild);
|
|
|
|
|
// }
|
|
|
|
|
// query.putAll(additionalQuery.getQuery());
|
|
|
|
|
// }
|
|
|
|
|
if (!StringUtils.isBlank(userSearchId)) {
|
|
|
|
|
OcrUsersearch ocrUsersearch = ocrUsersearchService.selectByUserSearchId(userSearchId);
|
|
|
|
|
SearchQuery additionalQuery = new SearchQuery();
|
|
|
|
|
for (OcrUsersearchchild usersearchchild : ocrUsersearch.getOcrUsersearchchildList()) {
|
|
|
|
|
this.formattingSearchChild1(additionalQuery, usersearchchild);
|
|
|
|
|
}
|
|
|
|
|
query.putAll(additionalQuery.getQuery());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Long count = ocrTaskchildPictureService.listmytaskCount(query);
|
|
|
|
|
|
|
|
|
@ -1953,132 +1956,134 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IFlowTask
|
|
|
|
|
return queryWrapper;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// private SearchQuery formattingSearchChild1(SearchQuery searchQuery, OcrUsersearchchild usersearchchild) {
|
|
|
|
|
// switch (usersearchchild.getSearchRelationType()) {
|
|
|
|
|
// case "where":
|
|
|
|
|
// // 添加 "where" 查询条件
|
|
|
|
|
// this.formattingSearchType1(searchQuery, usersearchchild);
|
|
|
|
|
// break;
|
|
|
|
|
// case "and":
|
|
|
|
|
// // 添加 "and" 查询条件
|
|
|
|
|
// searchQuery.addRulesOp(usersearchchild.getSearchfield(),"and");
|
|
|
|
|
// SearchQuery andQuery = this.formattingSearchType1(searchQuery, usersearchchild);
|
|
|
|
|
// searchQuery.setSearchQuery(andQuery);
|
|
|
|
|
// break;
|
|
|
|
|
// case "or":
|
|
|
|
|
// // 添加 "or" 查询条件
|
|
|
|
|
// searchQuery.addRulesOp(usersearchchild.getSearchfield(),"or");
|
|
|
|
|
// SearchQuery orQuery = this.formattingSearchType1(searchQuery, usersearchchild);
|
|
|
|
|
// searchQuery.setSearchQuery(orQuery);
|
|
|
|
|
// break;
|
|
|
|
|
// default:
|
|
|
|
|
// break;
|
|
|
|
|
// }
|
|
|
|
|
// return searchQuery;
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// private SearchQuery formattingSearchType1(SearchQuery searchQuery, OcrUsersearchchild usersearchchild) {
|
|
|
|
|
// //查询类型 相等true 不相等fase
|
|
|
|
|
// boolean queryType = "eq".equals(usersearchchild.getSearchtype());
|
|
|
|
|
//
|
|
|
|
|
// // 1.获取检查数据,确定数据类型
|
|
|
|
|
// String valueType = SearchParaFormatting.clickSearchValue(usersearchchild.getSearchvalue());
|
|
|
|
|
// List<String> arrayData = null; //集合型数据
|
|
|
|
|
// List<Integer> sectionInts = null; //纯数字区间型数据
|
|
|
|
|
// String[] sections = null; //字符串区间型数据
|
|
|
|
|
// DateTime beginTime = null; //日期时间区间型数据
|
|
|
|
|
// DateTime endTime = null; //日期时间区间型数据
|
|
|
|
|
//
|
|
|
|
|
// // 2.根据数据类型,解构数据
|
|
|
|
|
// switch (valueType) {
|
|
|
|
|
// case "array":
|
|
|
|
|
// //处理多文件
|
|
|
|
|
// String[] datas = usersearchchild.getSearchvalue().split(",");
|
|
|
|
|
// arrayData = Arrays.asList(datas);
|
|
|
|
|
// break;
|
|
|
|
|
// case "section":
|
|
|
|
|
// //格式化数据,仅在做区间的时候去除空格,其他地方不进行空格去除.
|
|
|
|
|
// sections = usersearchchild.getSearchvalue().trim().replaceAll("\\s+", "").split("-");
|
|
|
|
|
// //校验是否纯数字,纯数字的话,要转成int,否则比对时会有问题
|
|
|
|
|
// sectionInts = new ArrayList<>();
|
|
|
|
|
// for (String data : sections) {
|
|
|
|
|
// if (data.matches("\\d+")) {
|
|
|
|
|
// sectionInts.add(Integer.parseInt(data));
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// break;
|
|
|
|
|
// case "time":
|
|
|
|
|
// //格式化时间数据
|
|
|
|
|
// String[] times = usersearchchild.getSearchvalue().trim().replaceAll("\\s+", "").split("-");
|
|
|
|
|
// beginTime = DateUtil.parse(times[0], "yyyy/MM/dd");
|
|
|
|
|
// endTime = DateUtil.parse(times[1], "yyyy/MM/dd");
|
|
|
|
|
// break;
|
|
|
|
|
// default:
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// // 3.根据查询类型 组装查询条件 相等
|
|
|
|
|
// switch (valueType) {
|
|
|
|
|
// case "array":
|
|
|
|
|
// //集合数据
|
|
|
|
|
// //相等
|
|
|
|
|
// if (queryType) {
|
|
|
|
|
// searchQuery.addIn(usersearchchild.getSearchfield(), arrayData);
|
|
|
|
|
// break;
|
|
|
|
|
// }
|
|
|
|
|
// //不相等
|
|
|
|
|
// searchQuery.addNotIn(usersearchchild.getSearchfield(), arrayData);
|
|
|
|
|
// break;
|
|
|
|
|
//
|
|
|
|
|
// case "section":
|
|
|
|
|
// //数字区间查询
|
|
|
|
|
// if (sectionInts != null && sectionInts.size() == 2) {
|
|
|
|
|
// if (queryType) {
|
|
|
|
|
// //相等
|
|
|
|
|
// searchQuery.addGreaterEqual(usersearchchild.getSearchfield(), sectionInts.get(0));
|
|
|
|
|
// searchQuery.addLessEqual(usersearchchild.getSearchfield(), sectionInts.get(1));
|
|
|
|
|
// break;
|
|
|
|
|
// }
|
|
|
|
|
// //不相等
|
|
|
|
|
// searchQuery.addLess(usersearchchild.getSearchfield(), sectionInts.get(0));
|
|
|
|
|
// searchQuery.addGreater(usersearchchild.getSearchfield(), sectionInts.get(1));
|
|
|
|
|
// break;
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// //字符串区间查询
|
|
|
|
|
// if (queryType) {
|
|
|
|
|
// //相等
|
|
|
|
|
// searchQuery.addGreaterEqual(usersearchchild.getSearchfield(), sections[0]);
|
|
|
|
|
// searchQuery.addLessEqual(usersearchchild.getSearchfield(), sections[1]);
|
|
|
|
|
// break;
|
|
|
|
|
// }
|
|
|
|
|
// //不相等
|
|
|
|
|
// searchQuery.addLess(usersearchchild.getSearchfield(), sections[0]);
|
|
|
|
|
// searchQuery.addGreater(usersearchchild.getSearchfield(), sections[1]);
|
|
|
|
|
// break;
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
// case "time":
|
|
|
|
|
// //时间区间数据
|
|
|
|
|
// //相等
|
|
|
|
|
// if (queryType) {
|
|
|
|
|
// searchQuery.addGreaterEqual(usersearchchild.getSearchfield(), beginTime);
|
|
|
|
|
// searchQuery.addLessEqual(usersearchchild.getSearchfield(), endTime);
|
|
|
|
|
// break;
|
|
|
|
|
// }
|
|
|
|
|
// //不相等
|
|
|
|
|
// searchQuery.addLess(usersearchchild.getSearchfield(), beginTime);
|
|
|
|
|
// searchQuery.addGreater(usersearchchild.getSearchfield(), endTime);
|
|
|
|
|
// break;
|
|
|
|
|
//
|
|
|
|
|
// default:
|
|
|
|
|
// if (queryType) {
|
|
|
|
|
// searchQuery.addEqual(usersearchchild.getSearchfield(), usersearchchild.getSearchvalue());
|
|
|
|
|
// break;
|
|
|
|
|
// }
|
|
|
|
|
// searchQuery.addNotEqual(usersearchchild.getSearchfield(), usersearchchild.getSearchvalue());
|
|
|
|
|
// }
|
|
|
|
|
// return searchQuery;
|
|
|
|
|
// }
|
|
|
|
|
private SearchQuery formattingSearchChild1(SearchQuery searchQuery, OcrUsersearchchild usersearchchild) {
|
|
|
|
|
switch (usersearchchild.getSearchRelationType()) {
|
|
|
|
|
case "where":
|
|
|
|
|
// 添加 "where" 查询条件
|
|
|
|
|
this.formattingSearchType1(searchQuery, usersearchchild);
|
|
|
|
|
break;
|
|
|
|
|
case "and":
|
|
|
|
|
// 添加 "and" 查询条件
|
|
|
|
|
searchQuery.addRulesOp(usersearchchild.getSearchfield(), "and");
|
|
|
|
|
SearchQuery andQuery = this.formattingSearchType1(searchQuery, usersearchchild);
|
|
|
|
|
searchQuery.setSearchQuery(andQuery);
|
|
|
|
|
break;
|
|
|
|
|
case "or":
|
|
|
|
|
// 添加 "or" 查询条件
|
|
|
|
|
searchQuery.addRulesOp(usersearchchild.getSearchfield(), "or");
|
|
|
|
|
SearchQuery orQuery = this.formattingSearchType1(searchQuery, usersearchchild);
|
|
|
|
|
searchQuery.setSearchQuery(orQuery);
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
return searchQuery;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private SearchQuery formattingSearchType1(SearchQuery searchQuery, OcrUsersearchchild usersearchchild) {
|
|
|
|
|
//查询类型 相等true 不相等fase
|
|
|
|
|
boolean queryType = "eq".equals(usersearchchild.getSearchtype());
|
|
|
|
|
|
|
|
|
|
// 1.获取检查数据,确定数据类型
|
|
|
|
|
String valueType = SearchParaFormatting.clickSearchValue(usersearchchild.getSearchvalue());
|
|
|
|
|
List<String> arrayData = null; //集合型数据
|
|
|
|
|
List<Integer> sectionInts = null; //纯数字区间型数据
|
|
|
|
|
String[] sections = null; //字符串区间型数据
|
|
|
|
|
DateTime beginTime = null; //日期时间区间型数据
|
|
|
|
|
DateTime endTime = null; //日期时间区间型数据
|
|
|
|
|
|
|
|
|
|
// 2.根据数据类型,解构数据
|
|
|
|
|
switch (valueType) {
|
|
|
|
|
case "array":
|
|
|
|
|
//处理多文件
|
|
|
|
|
String[] datas = usersearchchild.getSearchvalue().split(",");
|
|
|
|
|
arrayData = Arrays.asList(datas);
|
|
|
|
|
break;
|
|
|
|
|
case "section":
|
|
|
|
|
//格式化数据,仅在做区间的时候去除空格,其他地方不进行空格去除.
|
|
|
|
|
sections = usersearchchild.getSearchvalue().trim().replaceAll("\\s+", "").split("-");
|
|
|
|
|
//校验是否纯数字,纯数字的话,要转成int,否则比对时会有问题
|
|
|
|
|
sectionInts = new ArrayList<>();
|
|
|
|
|
for (String data : sections) {
|
|
|
|
|
if (data.matches("\\d+")) {
|
|
|
|
|
sectionInts.add(Integer.parseInt(data));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case "time":
|
|
|
|
|
//格式化时间数据
|
|
|
|
|
String[] times = usersearchchild.getSearchvalue().trim().replaceAll("\\s+", "").split("-");
|
|
|
|
|
beginTime = DateUtil.parse(times[0] + " 00:00:00", "yyyy/MM/dd HH:mm:ss");
|
|
|
|
|
endTime = DateUtil.parse(times[1] + " 23:59:59", "yyyy/MM/dd HH:mm:ss");
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 3.根据查询类型 组装查询条件 相等
|
|
|
|
|
switch (valueType) {
|
|
|
|
|
case "array":
|
|
|
|
|
//集合数据
|
|
|
|
|
//相等
|
|
|
|
|
if (queryType) {
|
|
|
|
|
searchQuery.addIn(usersearchchild.getSearchfield(), arrayData);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
//不相等
|
|
|
|
|
searchQuery.addNotIn(usersearchchild.getSearchfield(), arrayData);
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case "section":
|
|
|
|
|
//数字区间查询
|
|
|
|
|
if (sectionInts != null && sectionInts.size() == 2) {
|
|
|
|
|
if (queryType) {
|
|
|
|
|
//相等
|
|
|
|
|
searchQuery.addGreaterEqual(usersearchchild.getSearchfield(), sectionInts.get(0));
|
|
|
|
|
searchQuery.addLessEqual(usersearchchild.getSearchfield(), sectionInts.get(1));
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
//不相等
|
|
|
|
|
|
|
|
|
|
searchQuery.addLess(usersearchchild.getSearchfield(), sectionInts.get(0));
|
|
|
|
|
searchQuery.addGreater(usersearchchild.getSearchfield(), sectionInts.get(1));
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//字符串区间查询
|
|
|
|
|
if (queryType) {
|
|
|
|
|
//相等
|
|
|
|
|
searchQuery.addGreaterEqual(usersearchchild.getSearchfield(), sections[0]);
|
|
|
|
|
searchQuery.addLessEqual(usersearchchild.getSearchfield(), sections[1]);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
//不相等
|
|
|
|
|
searchQuery.addLess(usersearchchild.getSearchfield(), sections[0]);
|
|
|
|
|
searchQuery.addGreater(usersearchchild.getSearchfield(), sections[1]);
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case "time":
|
|
|
|
|
//时间区间数据
|
|
|
|
|
//相等
|
|
|
|
|
if (queryType) {
|
|
|
|
|
searchQuery.addGreaterEqual(usersearchchild.getSearchfield() + "Start", beginTime.getTime());
|
|
|
|
|
searchQuery.addLessEqual(usersearchchild.getSearchfield() + "End", endTime.getTime());
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
//不相等
|
|
|
|
|
searchQuery.addRulesOp(usersearchchild.getSearchfield() + "Start", "or");
|
|
|
|
|
searchQuery.addLess(usersearchchild.getSearchfield() + "Start", beginTime.getTime());
|
|
|
|
|
searchQuery.addGreater(usersearchchild.getSearchfield() + "End", endTime.getTime());
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
if (queryType) {
|
|
|
|
|
searchQuery.addEqual(usersearchchild.getSearchfield(), usersearchchild.getSearchvalue());
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
searchQuery.addNotEqual(usersearchchild.getSearchfield(), usersearchchild.getSearchvalue());
|
|
|
|
|
}
|
|
|
|
|
return searchQuery;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|