This commit is contained in:
2026-06-10 12:32:12 +08:00
parent ac6777e5f4
commit 403833e4b6
4 changed files with 165 additions and 58 deletions
+28
View File
@@ -309,6 +309,34 @@ namespace BLL
return workPostName;
}
/// <summary>
/// 根据多岗位ID得到岗位名称字符串
/// </summary>
/// <param name="bigType"></param>
/// <returns></returns>
public static string getWorkPostNamesWorkPostIds(Model.SGGLDB db, object workPostIds)
{
string workPostName = string.Empty;
if (workPostIds != null)
{
string[] ids = workPostIds.ToString().Split(',');
foreach (string id in ids)
{
var q = db.Base_WorkPost.FirstOrDefault(e => e.WorkPostId == id);
if (q != null)
{
workPostName += q.WorkPostName + ",";
}
}
if (workPostName != string.Empty)
{
workPostName = workPostName.Substring(0, workPostName.Length - 1); ;
}
}
return workPostName;
}
#endregion
}
}