fix(workflow): 修复工作流归档和审核注释逻辑
- 将归档完成注释简化为归档 - 修复汇总节点审核通过时的注释显示逻辑 - 优化审核结果处理中的注释赋值条件 - 修正归档完成状态下的注释设置 - 调整审核不通过时的默认注释内容main
parent
af208c5eff
commit
3e7a06fe2b
|
|
@ -325,9 +325,8 @@ public class WorkflowEngineApp : SqlSugarBaseApp<SysCategoryType, SugarDbContext
|
|||
case "Branch" when currentNode.NodeName == "汇总判断":
|
||||
if (requestDto.AuditResult == "Pass")
|
||||
{
|
||||
comment = "归档完成";
|
||||
comment = "归档";
|
||||
}
|
||||
|
||||
ProcessSummaryNode(flowInstance, currentNode, userId, userName, requestDto);
|
||||
break;
|
||||
|
||||
|
|
@ -931,13 +930,16 @@ public class WorkflowEngineApp : SqlSugarBaseApp<SysCategoryType, SugarDbContext
|
|||
Status = isAllPass ? "Done" : "ToDo",
|
||||
ReceiveTime = DateTime.Now,
|
||||
HandleTime = DateTime.Now,
|
||||
Comment = isAllPass ? requestDto.Comment : "审核不通过,退回区县修改补充材料"
|
||||
Comment = isAllPass
|
||||
? (string.IsNullOrEmpty(requestDto.Comment) ? "审核不通过,退回区县修改补充材料" : requestDto.Comment)
|
||||
: "归档完成"
|
||||
};
|
||||
if (roleId != 0)
|
||||
{
|
||||
summaryWorkitem.OrgId = dept.Id;
|
||||
summaryWorkitem.OrgName = dept.Name;
|
||||
}
|
||||
|
||||
_sqlSugar.Insertable(summaryWorkitem).ExecuteCommand();
|
||||
|
||||
// 步骤5:更新流程实例最终状态
|
||||
|
|
|
|||
Loading…
Reference in New Issue