fix: 80634 所有流程 --驳回后发起人修改流程信息提交,修改的内容没存上
This commit is contained in:
+12
-1
@@ -252,7 +252,18 @@ public class ProcessEsInitChangeServiceImpl extends ServiceImpl<ProcessEsInitCha
|
||||
String taskName = task.getName();
|
||||
if (pass) {
|
||||
if (initChangeList != null) {
|
||||
saveOrUpdateBatch(initChangeList);
|
||||
// 先删后增
|
||||
LambdaUpdateWrapper<ProcessEsInitChange> updateWrapper = new LambdaUpdateWrapper<>();
|
||||
updateWrapper.eq(ProcessEsInitChange::getProcessInstanceId, processInstanceId);
|
||||
remove(updateWrapper);
|
||||
initChangeList.forEach(e -> e.setProcessInstanceId(processInstanceId));
|
||||
saveBatch(initChangeList);
|
||||
// 根据流程实例id更新流程总表
|
||||
String prcName = commonVO.getPrcName();
|
||||
String prcMes = commonVO.getPrcMes();
|
||||
Date dueTime = commonVO.getDueTime();
|
||||
Integer prcType = ProcessTypeEnum.ES_INIT_CHANGE.getValue();
|
||||
actFlowCommonService.updateProcessAll(processInstanceId, userId, prcName, prcMes, prcType, dueTime);
|
||||
}
|
||||
if (flowUserInfoVO != null && !flowUserInfoVO.isEmpty()) {
|
||||
Map<String, Object> variables = setVariables(initChangeDataVO);
|
||||
|
||||
@@ -25,6 +25,7 @@ import com.jero.modules.activiti.vo.DelegateTaskParam;
|
||||
import com.jero.modules.activiti.vo.ResolveTaskParam;
|
||||
import com.jero.modules.laws.common.constant.MessageTemplateCodeCommon;
|
||||
import com.jero.modules.laws.common.util.CurrentUserUtil;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.activiti.engine.HistoryService;
|
||||
import org.activiti.engine.RuntimeService;
|
||||
import org.activiti.engine.TaskService;
|
||||
@@ -45,6 +46,7 @@ import java.util.stream.Collectors;
|
||||
*@date 2023-10-16 15:49
|
||||
*/
|
||||
@Service
|
||||
@Slf4j
|
||||
public class ProcessAllService extends ServiceImpl<ProcessAllMapper, ProcessAll> {
|
||||
@Resource
|
||||
private ProcessAllMapper processAllMapper;
|
||||
@@ -102,6 +104,10 @@ public class ProcessAllService extends ServiceImpl<ProcessAllMapper, ProcessAll>
|
||||
public void forcedWithdrawal(String processInstanceId) {
|
||||
//获得流程总表
|
||||
ProcessAll processAll = getByProcessInstanceId(processInstanceId);
|
||||
if (processAll == null){
|
||||
log.info("流程实例ID为{}的流程总表数据不存在,强制撤回失败", processInstanceId);
|
||||
return;
|
||||
}
|
||||
//删除流程中所有草稿(除了初始草稿)
|
||||
LambdaUpdateWrapper<ProcessDraft> processDraftUpdateWrapper = new LambdaUpdateWrapper<>();
|
||||
processDraftUpdateWrapper.eq(ProcessDraft::getProcessInstanceId, processInstanceId);
|
||||
|
||||
Reference in New Issue
Block a user