fix 并发执行问题,保密人员余额迁移
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
using Dlhis.Entity.Basic.Entity;
|
||||
using Dlhis.ScheduledTask.Attributes;
|
||||
using Dlhis.ScheduledTask.Common.Services;
|
||||
using Hangfire;
|
||||
using Kurisu.AspNetCore.Utils.Extensions;
|
||||
using Kurisu.Scheduled;
|
||||
using Kurisu.Scheduled.Attributes;
|
||||
|
||||
namespace Dlhis.ScheduledTask.Jobs;
|
||||
|
||||
@@ -17,7 +16,7 @@ public class SyncPersonJob : BaseJob
|
||||
{
|
||||
}
|
||||
|
||||
public override async Task RunAsync(IServiceProvider serviceProvider)
|
||||
protected override async Task RunAsync(IServiceProvider serviceProvider)
|
||||
{
|
||||
var werks = await DbContext.Queryable<WerkEntity>()
|
||||
.Where(x => x.Enable)
|
||||
|
||||
Reference in New Issue
Block a user