This commit is contained in:
2024-09-25 09:16:30 +08:00
parent 887270cacb
commit d316e10992

View File

@@ -3,6 +3,7 @@ using JNPF.Common.Enums;
using JNPF.DependencyInjection;
using JNPF.DynamicApiController;
using JNPF.FriendlyException;
using JNPF.Logging;
using Microsoft.AspNetCore.Mvc;
using SqlSugar;
using Tnb.EquipMgr.Entities;
@@ -141,7 +142,12 @@ namespace Tnb.PerMgr
}
});
if (!result.IsSuccess) throw Oops.Oh(ErrorCode.COM1008);
if (!result.IsSuccess)
{
Log.Error(result.ErrorMessage);
throw Oops.Oh(result.ErrorMessage);
}
return result.IsSuccess ? "保存成功" : result.ErrorMessage;
}