namespace Tiobon.Core.Services;
///
/// 招聘参数配置 (服务)
///
public class Ghrh_ConfigServices : BaseServices, IGhrh_ConfigServices
{
private readonly IBaseRepository _dal;
public Ghrh_ConfigServices(ICaching caching, IBaseRepository dal)
{
this._dal = dal;
base.BaseDal = dal;
base._caching = caching;
}
public async Task BulkUpdateValue(List entitys)
{
for (int i = 0; i < entitys.Count; i++)
{
await Db.Updateable()
.SetColumns(it => new Ghrh_Config()
{
ConfigValue = entitys[i].ConfigValue
})
.Where(x => x.Id == entitys[i].Id).ExecuteCommandAsync();
}
return ServiceResult.OprateSuccess();
}
}