1
This commit is contained in:
parent
ea38e9656c
commit
e50872e7a3
@ -558,7 +558,7 @@ namespace APT.FM.WebApi.Controllers.Api.FM
|
||||
{
|
||||
throw new Exception("岗位不允许为空!");
|
||||
}
|
||||
var isRepeat = allUsers.FirstOrDefault(t => t.CODE == entity.CODE);
|
||||
var isRepeat = allUsers.FirstOrDefault(t => t.CODE == entity.CODE && t.ID != entity.ID);
|
||||
if (isRepeat != null)
|
||||
this.ThrowError("050001");
|
||||
if (isAdd == null)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user