|
|
@@ -853,7 +853,10 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
|
|
|
|
#region 会务流程
|
|
|
//参与人 participators
|
|
|
- var defaultParticipators = new List<ParticipatorInfo>() { new() { UserId = 213, UserName = "李新江" } };
|
|
|
+ var defaultParticipators = new List<int>()
|
|
|
+ {
|
|
|
+ 213, //李新江
|
|
|
+ };
|
|
|
|
|
|
var defaultPorc1 = new List<Grp_ConfProcessNode>() {
|
|
|
Grp_ConfProcessNode.Create(1,"方案/报价(含成本)","", ProcessStatus.InProgress,true,false, currUserId,defaultParticipators),
|
|
|
@@ -935,7 +938,7 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
|
ProcessId = processId,
|
|
|
NodeName = nodeDto.NodeName,
|
|
|
NodeOrder = nodeDto.NodeOrder,
|
|
|
- Participator = JsonConvert.SerializeObject(nodeDto.Participators.Select(p => p.UserId).ToList()),
|
|
|
+ Participator = JsonConvert.SerializeObject(nodeDto.Participators),
|
|
|
OverallStatus = nodeDto.OverallStatus,
|
|
|
NodeDescTips = nodeDto.NodeDescTips,
|
|
|
//Country = nodeDto.Country,
|
|
|
@@ -1031,24 +1034,6 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
|
// isEnaFileUpBtn = true;
|
|
|
//}
|
|
|
|
|
|
- //获取参与人姓名
|
|
|
- var participators = new List<ParticipatorInfo>();
|
|
|
- var participatorArray = JsonConvert.DeserializeObject<List<int>>(n.Participator);
|
|
|
- if (participatorArray?.Count > 0)
|
|
|
- {
|
|
|
- foreach (var item in participatorArray)
|
|
|
- {
|
|
|
- if (userDict.TryGetValue(item, out var userName))
|
|
|
- {
|
|
|
- participators.Add(new ParticipatorInfo
|
|
|
- {
|
|
|
- UserId = item,
|
|
|
- UserName = userName
|
|
|
- });
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
// 获取操作人姓名(使用字典提升性能)
|
|
|
string operatorName = "-";
|
|
|
if (n.Operator.HasValue && userDict.TryGetValue(n.Operator.Value, out var name))
|
|
|
@@ -1064,7 +1049,7 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
|
NodeName = n.NodeName,
|
|
|
NodeDescTips = n.NodeDescTips,
|
|
|
OverallStatus = n.OverallStatus,
|
|
|
- Participators = participators,
|
|
|
+ Participators = JsonConvert.DeserializeObject<List<int>>(n.Participator),
|
|
|
StatusText = n.OverallStatus.GetEnumDescription(),
|
|
|
Operator = operatorName,
|
|
|
OpeateTime = n.OperationTime?.ToString("yyyy-MM-dd HH:mm:ss") ?? "-",
|
|
|
@@ -1432,7 +1417,7 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
|
}
|
|
|
|
|
|
node.IsFileUp = isFileUp;
|
|
|
- node.Participator = JsonConvert.SerializeObject(node.Participators.Select(x => x.UserId).ToList());
|
|
|
+ node.Participator = JsonConvert.SerializeObject(node.Participators);
|
|
|
|
|
|
// 3. 保存节点更新
|
|
|
await _sqlSugar.Updateable(node)
|