Merge branch 'Insight' of http://123.132.248.154:10000/HC_YFZX/Infrastructure into Insight
commit
a47d0b8ffe
|
|
@ -193,7 +193,7 @@ namespace OpenAuth.App.BaseApp.SysGroupManager
|
|||
throw new Exception("成员" + names + "已分配小组,勿重复分配");
|
||||
}
|
||||
await uwo.SysGroupuser.DeleteAsync(r => r.GroupId == model.GroupId);
|
||||
await uwo.SysGroupuser.InsertRangeAsync(model.UserIds.Select(a => new SysGroupuser { GroupId = model.GroupId, UserId = a }).ToList());
|
||||
await uwo.SysGroupuser.InsertRangeAsync(model.UserIds.Distinct().Select(a => new SysGroupuser { GroupId = model.GroupId, UserId = a }).ToList());
|
||||
var flag = uwo.Commit();
|
||||
return new Response<bool>
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue