/get_gather_by_instance
返回汇总数组下标
This commit is contained in:
@@ -185,6 +185,7 @@ public class TaskController {
|
||||
QueryWrapper queryWrapper = new QueryWrapper();
|
||||
queryWrapper.eq("PRC_NUM",prcNum);
|
||||
Boolean isGather=false;
|
||||
Integer index=0;
|
||||
BusProcessName one = iBusProcessNameService.getOne(queryWrapper);
|
||||
HistoricTaskInstanceQuery historicTaskInstanceQuery = historyService.createHistoricTaskInstanceQuery()
|
||||
.processInstanceId(one.getPrcId()).orderByHistoricTaskInstanceEndTime().asc();
|
||||
@@ -198,7 +199,8 @@ public class TaskController {
|
||||
list2.removeAll(middle);
|
||||
list2.addAll(middle);
|
||||
List<Map<String,Object>> list = ActivitiTools.turnHistoricTaskInstance(list2);
|
||||
for (Map<String, Object> historicTaskInstance : list) {
|
||||
for(int i=0;i<list.size();i++){
|
||||
Map<String, Object> historicTaskInstance= list.get(i);
|
||||
// if(ChkUtil.isNull(historicTaskInstance.get("assignee"))) {
|
||||
// continue;
|
||||
// }
|
||||
@@ -260,51 +262,67 @@ public class TaskController {
|
||||
if (prcType.equals("1") && name.equals("起草") && endTime) {
|
||||
// 标准入库流程数据
|
||||
isGather=true;
|
||||
index=i;
|
||||
}else if(prcType.equals("buss1")&& name.equals("批准") && endTime){
|
||||
//企标入库
|
||||
isGather=true;
|
||||
index=i;
|
||||
}else if(prcType.equals("buss2")&& name.equals("意见汇总修订") && endTime){
|
||||
//企标入库
|
||||
isGather=true;
|
||||
index=i;
|
||||
}else if(prcType.equals("buss3")&& name.equals("汇总") && endTime){
|
||||
//企标复审
|
||||
isGather=true;
|
||||
index=i;
|
||||
}else if(prcType.equals("4")&& name.equals("起草") && endTime){
|
||||
//标准清单发布流程数据
|
||||
isGather=true;
|
||||
index=i;
|
||||
}else if (prcType.equals("5")&& name.equals("批准") && endTime){
|
||||
//标准项目合规评估
|
||||
isGather=true;
|
||||
index=i;
|
||||
}else if(prcType.equals("6")&& name.equals("批准") && endTime){
|
||||
//标准项目合规评估 项目维度
|
||||
isGather=true;
|
||||
index=i;
|
||||
} else if (prcType.equals("8")&& name.equals("合规排查(上传合规举证材料)") && endTime) {
|
||||
// 未符合项整改
|
||||
isGather=true;
|
||||
index=i;
|
||||
} else if(prcType.equals("9") && name.equals("批准") && endTime){
|
||||
// 标准解读流程
|
||||
isGather=true;
|
||||
index=i;
|
||||
}else if(prcType.equals("2")&& name.equals("调研结果处理") && endTime){
|
||||
//标准调研流程
|
||||
isGather=true;
|
||||
index=i;
|
||||
}else if(prcType.equals("3")&& name.equals("意见处理") && endTime){
|
||||
//标准征求意见
|
||||
isGather=true;
|
||||
index=i;
|
||||
}else if(prcType.equals("10")&& name.equals("清单发布") && endTime){
|
||||
//项目清单确认
|
||||
isGather=true;
|
||||
index=i;
|
||||
}else if(prcType.equals("24")&& name.equals("起草人修改标准状态") && endTime){
|
||||
//企标废止
|
||||
isGather=true;
|
||||
index=i;
|
||||
}else if(prcType.equals("25")&& name.equals("起草") && endTime){
|
||||
//企标制修订计划管控
|
||||
isGather=true;
|
||||
index=i;
|
||||
}else if(prcType.equals("26")&& name.equals("起草") && endTime){
|
||||
//企标制修订立项计划
|
||||
isGather=true;
|
||||
index=i;
|
||||
} else if(prcType.equals("23")&& name.equals("汇总") && endTime){
|
||||
//企标复审
|
||||
isGather=true;
|
||||
index=i;
|
||||
}
|
||||
}
|
||||
if(StringUtils.isNotBlank(sortWord)){
|
||||
@@ -330,6 +348,7 @@ public class TaskController {
|
||||
}
|
||||
Map<String,Object> m=new HashMap<>();
|
||||
m.put("isGather",isGather);
|
||||
m.put("index",index);
|
||||
list.add(m);
|
||||
return list;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user