提交 efa7d266 编写于 作者: TANGYAOLONG's avatar TANGYAOLONG

标准rt新增已办办结的查询

上级 0478c934
......@@ -2112,13 +2112,17 @@ public class WFCoreService
String strTaskType = context.getSrfWF();
if (strTaskType == null) {
tasks = wfCoreMapper.searchMyTask(context.getPages(),context,context.getSelectCond());
}else {
String tasktype = strTaskType.toUpperCase();
if (TaskType.DONE.name().equals(tasktype)) {
} else {
if (TaskType.TODO.name().equalsIgnoreCase(strTaskType)) {
tasks = wfCoreMapper.searchMyTask(context.getPages(), context, context.getSelectCond());
} else if (TaskType.DONE.name().equalsIgnoreCase(strTaskType)) {
tasks = wfCoreMapper.searchDoneTask(context.getPages(), context, context.getSelectCond());
} else if (TaskType.FINISH.name().equals(tasktype)) {
} else if (TaskType.FINISH.name().equalsIgnoreCase(strTaskType)) {
tasks = wfCoreMapper.searchFinishTask(context.getPages(), context, context.getSelectCond());
} else if (TaskType.ALL.name().equalsIgnoreCase(strTaskType)) {
tasks = wfCoreMapper.searchMyAllTask(context.getPages(), context, context.getSelectCond());
} else {
throw new BadRequestAlertException(String.format("未能识别的待办类型[%s]", strTaskType), "", "");
}
}
......
......@@ -8,6 +8,10 @@ public enum TaskType {
* 待办
*/
WORK,
/**
* 待办
*/
TODO,
/**
* 待阅
*/
......@@ -23,5 +27,13 @@ public enum TaskType {
/**
* 全部
*/
ALL;
ALL,
/**
* 抄送
*/
CC,
/**
* 抄送已读
*/
HAVEREAD;
}
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册