sunpengfei
2025-08-07 59e73ad4283491cd407854874879e0ddc8dafaba
FlexJobApi.Application/Dictionaries/Commands/DictionaryDataCommandHandler.cs
@@ -21,7 +21,8 @@
            IRepository<DictionaryCategory> repDictionaryCategory
        ) :
        IRequestHandler<SaveDictionaryDataCommand, Guid>,
        IRequestHandler<SetDictionaryDataIsDisabledCommand, int>
        IRequestHandler<SetDictionaryDataIsDisabledCommand, int>,
        IRequestHandler<SyncHumanResourcesAreaDictionaryDataCommand, int>
    {
        private readonly IRepository<DictionaryData> rep = rep;
@@ -78,5 +79,15 @@
        {
            return request.SetIsDisabled<DictionaryData>(cancellationToken: cancellationToken);
        }
        public async Task<int> Handle(SyncHumanResourcesAreaDictionaryDataCommand request, CancellationToken cancellationToken)
        {
            var rep = Db.GetRepository<BaseArea, HumanResourcesDbContextLocator>();
            var areas = await rep.AsQueryable().AsNoTracking()
                .Take(10)
                .ToListAsync();
            Console.WriteLine();
            return 1;
        }
    }
}