😎修改SAP开放接口,返回Success状态
This commit is contained in:
parent
a2e5b55f1d
commit
3e5ea8e730
@ -53,7 +53,7 @@ public class SapOpenInterfaceService : IDynamicApiController, ITransient
|
||||
|
||||
if (string.IsNullOrWhiteSpace(input._System_objNBS) || string.IsNullOrWhiteSpace(input._System_objDescription))
|
||||
{
|
||||
response.Success = true;
|
||||
response.Success = false;
|
||||
response.Message = "请输入必填字段";
|
||||
return response;
|
||||
}
|
||||
@ -98,7 +98,7 @@ public class SapOpenInterfaceService : IDynamicApiController, ITransient
|
||||
.Where(x => x._System_objNBS == input._System_objNBS && x.deleted == false)
|
||||
.ExecuteCommandHasChangeAsync();
|
||||
|
||||
response.Success = true;
|
||||
response.Success = updateable;
|
||||
response.Message = updateable ? "修改成功" : "修改失败";
|
||||
return response;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user