😎修改SAP开放接口,返回Success状态

This commit is contained in:
bairubing 2024-11-07 13:39:39 +08:00
parent a2e5b55f1d
commit 3e5ea8e730

View File

@ -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;
}