|
@@ -239,7 +239,7 @@ public class IndustryApplication : IIndustryApplication, IScopeDependency
|
|
|
/// </summary>
|
|
|
/// <param name="dto"></param>
|
|
|
/// <returns></returns>
|
|
|
- public async Task<string> AddPractitionerAsync(AddBatchPractitionerInDto dto)
|
|
|
+ public async Task<string> AddPractitionerAsync(AddPractitionerInDto dto)
|
|
|
{
|
|
|
dto.ValidateObject();
|
|
|
var entity = dto.Adapt<Practitioner>();
|
|
@@ -268,5 +268,20 @@ public class IndustryApplication : IIndustryApplication, IScopeDependency
|
|
|
.Where(m => id.Contains(m.Id))
|
|
|
.ExecuteCommandAsync();
|
|
|
}
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 修改区域从业人员
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="dto"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ public async Task UpdatePractitionerAsync(UpdatePractitionerInDto dto)
|
|
|
+ {
|
|
|
+ dto.ValidateObject();
|
|
|
+ var entity = dto.Adapt<Practitioner>();
|
|
|
+ await _practitionerRepository.UpdateAsync(entity);
|
|
|
+ }
|
|
|
+ #endregion
|
|
|
+
|
|
|
+ #region 志愿者
|
|
|
#endregion
|
|
|
}
|