🐛fix: #ICI0GZ

This commit is contained in:
yubaolee
2025-06-26 21:02:11 +08:00
parent 220f49743f
commit a44ca9ae16
3 changed files with 15 additions and 4 deletions

View File

@@ -13,7 +13,7 @@ namespace OpenAuth.App
/// SqlSugar基础类
/// </summary>
/// <typeparam name="T"></typeparam>
public abstract class SqlSugarBaseApp<T> where T : class, new()
public abstract class SqlSugarBaseApp<T> where T : BaseEntity, new()
{
protected ISqlSugarClient SugarClient;

View File

@@ -69,7 +69,7 @@ namespace OpenAuth.App
var user = _auth.GetCurrentUser().User;
obj.CreateUserId = user.Id;
obj.CreateUserName = user.Name;
await SugarClient.Insertable(obj).ExecuteCommandAsync();
Repository.Insert(obj);
}
public void Update(AddOrUpdateCategoryReq obj)