|
@@ -238,12 +238,12 @@ public class IndustryApplication : IIndustryApplication, IScopeDependency
|
|
|
/// </summary>
|
|
|
/// <param name="id"></param>
|
|
|
/// <returns></returns>
|
|
|
- public async Task DeletePractitionerAsync(string id)
|
|
|
+ public async Task DeletePractitionerAsync(IList<string> id)
|
|
|
{
|
|
|
- var entity = await _practitionerRepository.GetAsync(id)
|
|
|
- ?? throw UserFriendlyException.SameMessage($"区域从业人员不存在 {id}");
|
|
|
- entity.IsDeleted = true;
|
|
|
- await _practitionerRepository.UpdateAsync(entity);
|
|
|
+ await _practitionerRepository.Updateable()
|
|
|
+ .SetColumns(m => m.IsDeleted, true)
|
|
|
+ .Where(m => id.Contains(m.Id))
|
|
|
+ .ExecuteCommandAsync();
|
|
|
}
|
|
|
#endregion
|
|
|
}
|