fix: 会签节点驳回之后不删除其余待办
This commit is contained in:
+5
@@ -340,6 +340,11 @@ public class MyGlobalEventListener implements ActivitiEventListener {
|
|||||||
ProcessApprovalRecord approvalRecord = recordService.getOne(wrapper);
|
ProcessApprovalRecord approvalRecord = recordService.getOne(wrapper);
|
||||||
if (approvalRecord == null) {
|
if (approvalRecord == null) {
|
||||||
return;
|
return;
|
||||||
|
} else {
|
||||||
|
LambdaUpdateWrapper<ProcessApprovalRecord> updateWrapper = new LambdaUpdateWrapper<>();
|
||||||
|
updateWrapper.eq(ProcessApprovalRecord::getTaskId, taskId);
|
||||||
|
updateWrapper.set(ProcessApprovalRecord::getFinishFlag, FinishFlagEnum.COMPLETE.getValue());
|
||||||
|
recordService.update(updateWrapper);
|
||||||
}
|
}
|
||||||
Integer finishFlag = approvalRecord.getFinishFlag();
|
Integer finishFlag = approvalRecord.getFinishFlag();
|
||||||
if (FinishFlagEnum.COMPLETE.getValue().equals(finishFlag)) {
|
if (FinishFlagEnum.COMPLETE.getValue().equals(finishFlag)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user