😭开放接口给Sap修改逻辑
This commit is contained in:
parent
2095b88323
commit
0a109b93c7
@ -79,7 +79,7 @@ public class SapOpenInterfaceService : IDynamicApiController, ITransient
|
|||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
//判断是否存在客户记录
|
//判断是否存在客户记录
|
||||||
var clientExists = await _obj132Rep.AsQueryable().AnyAsync(x => x._System_objNBS == input._System_objNBS);
|
var clientExists = await _obj132Rep.AsQueryable().AnyAsync(x => x._System_objNBS == input._System_objNBS && x.deleted == false);
|
||||||
|
|
||||||
if (clientExists == false)
|
if (clientExists == false)
|
||||||
{
|
{
|
||||||
@ -116,7 +116,7 @@ public class SapOpenInterfaceService : IDynamicApiController, ITransient
|
|||||||
fld004808 = input.fld004808,
|
fld004808 = input.fld004808,
|
||||||
fld004950 = input.fld004950
|
fld004950 = input.fld004950
|
||||||
})
|
})
|
||||||
.Where(x => x._System_objNBS == input._System_objNBS)
|
.Where(x => x._System_objNBS == input._System_objNBS && x.deleted == false)
|
||||||
.ExecuteCommandHasChangeAsync();
|
.ExecuteCommandHasChangeAsync();
|
||||||
|
|
||||||
response.Success = true;
|
response.Success = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user