20250704 项目单位重复
This commit is contained in:
parent
3f34ab5da2
commit
b9817b23df
|
@ -259,6 +259,9 @@ namespace BLL
|
|||
if (unitItemList.Count > 0)
|
||||
{
|
||||
foreach (var item in unitItemList)
|
||||
{
|
||||
var projectUnit = from x in Funs.DB.Project_Unit where x.ProjectId == projectid && x.UnitId == item.UnitId select x;
|
||||
if (projectUnit == null)
|
||||
{
|
||||
var pUnit = new Model.Project_Unit();
|
||||
pUnit.ProjectUnitId = Guid.NewGuid().ToString();
|
||||
|
@ -274,6 +277,7 @@ namespace BLL
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//添加
|
||||
Funs.DB.Project_User.InsertAllOnSubmit(AddProject_UserList);
|
||||
|
|
Loading…
Reference in New Issue