|
|
@@ -122,8 +122,8 @@ namespace OASystem.Domain.Entities.Groups
|
|
|
/// <summary>
|
|
|
/// 参与人
|
|
|
/// </summary>
|
|
|
- [SugarColumn(ColumnName = "Participator", ColumnDescription = "参与人 [1,2,3]", IsNullable = true, ColumnDataType = "varchar(200)")]
|
|
|
- public string Participator { get; set; }
|
|
|
+ [SugarColumn(ColumnName = "Participators", ColumnDescription = "参与人 [1,2,3]", IsNullable = true, IsJson = true, ColumnDataType = "varchar(300)")]
|
|
|
+ public List<int> Participators { get; set; } = new List<int>() { 213 /*李新江*/ };
|
|
|
|
|
|
/// <summary>
|
|
|
/// 操作人
|
|
|
@@ -157,6 +157,13 @@ namespace OASystem.Domain.Entities.Groups
|
|
|
[DefaultValue(false)]
|
|
|
public bool IsFileUp { get; set; }
|
|
|
|
|
|
+ /// <summary>
|
|
|
+ /// 节点操作权限
|
|
|
+ /// </summary>
|
|
|
+ [SugarColumn(ColumnName = "OpUserList", ColumnDescription = "节点操作权限", IsJson = true, ColumnDataType = "varchar(300)")]
|
|
|
+ [DefaultValue(false)]
|
|
|
+ public List<int> OpUserList { get; set; } = new List<int>();
|
|
|
+
|
|
|
public Grp_ConfProcessNode() { }
|
|
|
|
|
|
/// <summary>
|
|
|
@@ -165,12 +172,6 @@ namespace OASystem.Domain.Entities.Groups
|
|
|
[SugarColumn(IsIgnore = true)]
|
|
|
public bool IsEnaFileUpBtn { get; set; }
|
|
|
|
|
|
- /// <summary>
|
|
|
- /// 参与人
|
|
|
- /// </summary>
|
|
|
- [SugarColumn(IsIgnore = true)]
|
|
|
- public List<int> Participators { get; set; }
|
|
|
-
|
|
|
/// <summary>
|
|
|
/// Create
|
|
|
/// </summary>
|
|
|
@@ -182,10 +183,11 @@ namespace OASystem.Domain.Entities.Groups
|
|
|
/// <param name="isFileUp">是否上传文件</param>
|
|
|
/// <param name="currUserId">当前用户Id</param>
|
|
|
/// <param name="participators">参与人</param>
|
|
|
+ /// <param name="opUserList">节点操作权限</param>
|
|
|
/// <param name="remark">备注</param>
|
|
|
/// <returns></returns>
|
|
|
public static Grp_ConfProcessNode Create(int nodeOrder, string nodeName, string nodeDescTips, ProcessStatus status, bool isCurrent, bool isFileUp, int currUserId,
|
|
|
- List<int> participators, string remark = null)
|
|
|
+ List<int> participators, List<int> opUserList, string? remark = null)
|
|
|
{
|
|
|
bool isEnaFileUpBtn = isFileUp;
|
|
|
|
|
|
@@ -199,6 +201,7 @@ namespace OASystem.Domain.Entities.Groups
|
|
|
Participators = participators,
|
|
|
IsEnaFileUpBtn = isEnaFileUpBtn,
|
|
|
IsFileUp = isFileUp,
|
|
|
+ OpUserList = opUserList,
|
|
|
CreateUserId = currUserId,
|
|
|
Remark = remark
|
|
|
};
|