企标复审流程 待办中心的不展示 通过流程实例进行优化
This commit is contained in:
+4
-4
@@ -228,8 +228,8 @@ public class BusProcessNewServiceImpl extends ServiceImpl<BusProcessNewMapper, B
|
||||
if (StringUtils.isNotBlank(standId)) {
|
||||
if (data.getStandId().equals(standId)) {
|
||||
//如果相等 则判断task表示否有待办任务
|
||||
List<Task> list = taskService.createTaskQuery().taskId(busProcessNew.getTaskId()).list();
|
||||
if (!list.isEmpty()) {
|
||||
ProcessInstance processInstance = runtimeService.createProcessInstanceQuery().processInstanceId(busProcessNew.getPId()).singleResult();
|
||||
if (processInstance!=null) {
|
||||
count = count+1;
|
||||
}
|
||||
}
|
||||
@@ -272,7 +272,7 @@ public class BusProcessNewServiceImpl extends ServiceImpl<BusProcessNewMapper, B
|
||||
String[] split = esIdMesg.split(",");
|
||||
for (String esById : split){
|
||||
if(esId.equals(esById)){
|
||||
webServiceOAService.deleteOAByPid(newData.getPId());
|
||||
//webServiceOAService.deleteOAByPid(newData.getPId());
|
||||
ProcessInstance processInstance = runtimeService.createProcessInstanceQuery().processInstanceId(newData.getPId()).singleResult();
|
||||
if(processInstance!=null) {
|
||||
runtimeService.deleteProcessInstance(newData.getPId(), "原始数据已被更改");
|
||||
@@ -283,7 +283,7 @@ public class BusProcessNewServiceImpl extends ServiceImpl<BusProcessNewMapper, B
|
||||
}
|
||||
}else {
|
||||
if(esId.equals(esIdMesg)){
|
||||
webServiceOAService.deleteOAByPid(newData.getPId());
|
||||
//webServiceOAService.deleteOAByPid(newData.getPId());
|
||||
ProcessInstance processInstance = runtimeService.createProcessInstanceQuery().processInstanceId(newData.getPId()).singleResult();
|
||||
if(processInstance!=null) {
|
||||
runtimeService.deleteProcessInstance(newData.getPId(), "原始数据已被更改");
|
||||
|
||||
Reference in New Issue
Block a user