[Bug][force-success] force success add end time (#15144)

Co-authored-by: Rick Cheng <rickchengx@gmail.com>
This commit is contained in:
小可耐 2024-02-05 14:23:16 +08:00 committed by GitHub
parent d8e820c4b9
commit e5a208f363
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -255,6 +255,7 @@ public class TaskInstanceServiceImpl extends BaseServiceImpl implements TaskInst
// change the state of the task instance
task.setState(TaskExecutionStatus.FORCED_SUCCESS);
task.setEndTime(new Date());
int changedNum = taskInstanceMapper.updateById(task);
if (changedNum > 0) {
processService.forceProcessInstanceSuccessByTaskInstanceId(taskInstanceId);