|
|
|
@ -4,6 +4,7 @@ using Tiobon.Core.Model.Models; |
|
|
|
|
using Tiobon.Core.Services.BASE; |
|
|
|
|
using Tiobon.Core.IRepository.Base; |
|
|
|
|
using Tiobon.Core.Common.Caches; |
|
|
|
|
using Tiobon.Core.Model; |
|
|
|
|
|
|
|
|
|
namespace Tiobon.Core.Services |
|
|
|
|
{ |
|
|
|
@ -19,5 +20,19 @@ namespace Tiobon.Core.Services |
|
|
|
|
base.BaseDal = dal; |
|
|
|
|
base._caching = caching; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public async Task<ServiceResult> BulkUpdateValue(List<Ghre_ConfigDto> entitys) |
|
|
|
|
{ |
|
|
|
|
for (int i = 0; i < entitys.Count; i++) |
|
|
|
|
{ |
|
|
|
|
await Db.Updateable<Ghre_Config>() |
|
|
|
|
.SetColumns(it => new Ghre_Config() |
|
|
|
|
{ |
|
|
|
|
ConfigValue = entitys[i].ConfigValue |
|
|
|
|
}) |
|
|
|
|
.Where(x => x.Id == entitys[i].Id).ExecuteCommandAsync(); |
|
|
|
|
} |
|
|
|
|
return ServiceResult.OprateSuccess(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |