Skip to content

Commit

Permalink
perf: ⚡ 子模块更新
Browse files Browse the repository at this point in the history
  • Loading branch information
tk authored and nsnail committed Dec 31, 2024
1 parent a2de0bc commit ddac448
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ TEntity newValue //
// 默认匹配主键
whereExp ??= a => a.Id.Equals(newValue.Id);
var update = BuildUpdate(newValue, includeFields, excludeFields, ignoreVersion).Where(whereExp).Where(whereSql);
return update.ExecuteAffrowsAsync();
return update.ExecuteEffectsAsync();
}

#if DBTYPE_SQLSERVER
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
using FreeSql.Provider.SqlServer;

Check failure on line 1 in src/backend/NetAdmin/NetAdmin.Domain/Extensions/ISelectExtensions.cs

View workflow job for this annotation

GitHub Actions / build (22.x)

The type or namespace name 'SqlServer' does not exist in the namespace 'FreeSql.Provider' (are you missing an assembly reference?)

namespace NetAdmin.Domain.Extensions;

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<Import Project="$(SolutionDir)/build/copy.pkg.xml.comment.files.targets"/>
<Import Project="$(SolutionDir)/build/prebuild.targets"/>
<ItemGroup>
<PackageReference Include="NetAdmin.FreeSql.DbContext" Version="1.0.14" Label="refs"/>
<PackageReference Include="NetAdmin.FreeSql.Provider.Sqlite" Version="1.0.14" Label="refs"/>
<PackageReference Include="NetAdmin.FreeSql.DbContext" Version="1.0.17" Label="refs"/>
<PackageReference Include="NetAdmin.FreeSql.Provider.Sqlite" Version="1.0.17" Label="refs"/>
<PackageReference Include="Gurion" Version="1.2.7" Label="refs"/>
<PackageReference Include="Microsoft.Extensions.Caching.StackExchangeRedis" Version="9.0.0"/>
<PackageReference Include="Minio" Version="6.0.4"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public async Task<QueryJobRsp> EditAsync(EditJobReq req)
#if DBTYPE_SQLSERVER
return (await update.ExecuteUpdatedAsync().ConfigureAwait(false)).FirstOrDefault()?.Adapt<QueryJobRsp>();
#else
return await update.ExecuteAffrowsAsync().ConfigureAwait(false) <= 0
return await update.ExecuteEffectsAsync().ConfigureAwait(false) <= 0
? null
: await GetAsync(new QueryJobReq { Id = req.Id }).ConfigureAwait(false);
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public async Task<int> DeleteAsync(DelReq req)
{
req.ThrowIfInvalid();
var ret = await Rpo.DeleteAsync(a => a.Id == req.Id).ConfigureAwait(false);
_ = await Rpo.Orm.Delete<Sys_RoleMenu>().Where(a => a.MenuId == req.Id).ExecuteAffrowsAsync().ConfigureAwait(false);
_ = await Rpo.Orm.Delete<Sys_RoleMenu>().Where(a => a.MenuId == req.Id).ExecuteEffectsAsync().ConfigureAwait(false);
return ret;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public async Task<int> DeleteAsync(DelReq req)
var ret = await Rpo.DeleteAsync(req.Id).ConfigureAwait(false);

// 删除分表
_ = await Rpo.Orm.Delete<Sys_UserRole>(new { UserId = req.Id }).ExecuteAffrowsAsync().ConfigureAwait(false);
_ = await Rpo.Orm.Delete<Sys_UserRole>(new { UserId = req.Id }).ExecuteEffectsAsync().ConfigureAwait(false);

// 删除档案表
_ = await userProfileService.DeleteAsync(req).ConfigureAwait(false);
Expand Down
2 changes: 1 addition & 1 deletion src/backend/NetAdmin/NetAdmin.Tests/NetAdmin.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="coverlet.collector" Version="6.0.2">
<PackageReference Include="coverlet.collector" Version="6.0.3">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/admin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"aieditor": "1.3.3",
"axios": "1.7.9",
"crypto-js": "4.2.0",
"echarts": "5.5.1",
"echarts": "5.6.0",
"element-plus": "2.9.1",
"json-bigint": "1.0.0",
"markdown-it": "14.1.0",
Expand Down

0 comments on commit ddac448

Please sign in to comment.