|
|
|
@ -26,4 +26,21 @@ public class Ghrh_ConfigGroupServices : BaseServices<Ghrh_ConfigGroup, Ghrh_Conf |
|
|
|
|
}); |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
public async Task<ServiceResult> BulkUpdateValue(List<Ghrh_ConfigGroupDto> entitys) |
|
|
|
|
{ |
|
|
|
|
for (int i = 0; i < entitys.Count; i++) |
|
|
|
|
{ |
|
|
|
|
for (int j = 0; j < entitys[i].Configs.Count; j++) |
|
|
|
|
{ |
|
|
|
|
await Db.Updateable<Ghrh_Config>() |
|
|
|
|
.SetColumns(it => new Ghrh_Config() |
|
|
|
|
{ |
|
|
|
|
ConfigValue = entitys[i].Configs[j].ConfigValue |
|
|
|
|
}, true) |
|
|
|
|
.Where(x => x.Id == entitys[i].Configs[j].Id) |
|
|
|
|
.ExecuteCommandAsync(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return ServiceResult.OprateSuccess(); |
|
|
|
|
} |
|
|
|
|
} |