feat: 保存草稿的时候删除draftId的那条数据

This commit is contained in:
2024-10-14 15:16:52 +08:00
parent 380aad3fae
commit 1d255901d2
@@ -38,7 +38,6 @@ import org.activiti.engine.runtime.Execution;
import org.activiti.engine.runtime.ProcessInstance;
import org.activiti.engine.task.Task;
import org.apache.commons.lang3.StringUtils;
import org.apache.poi.ss.formula.functions.T;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@@ -427,7 +426,7 @@ public class ProcessHandleServiceImpl implements IProcessHandleService {
String draftId = processInfoVO.getDraftId();
if (StringUtils.isNotBlank(draftId)) {
processDraft.setId(draftId);
//processDraftService.removeById(draftId);
processDraftService.removeById(draftId);
}
// 根据是否有taskId区分保存来源(待办、草稿)
processDraft.setProjectId(processInfoVO.getBusinessId()); // 业务id