diff --git a/src/2.services/ATS.NonCustodial.Application/Impl/Business/CaseManagements/AppSupervisedPersonService.cs b/src/2.services/ATS.NonCustodial.Application/Impl/Business/CaseManagements/AppSupervisedPersonService.cs index a16d55c..cc01923 100644 --- a/src/2.services/ATS.NonCustodial.Application/Impl/Business/CaseManagements/AppSupervisedPersonService.cs +++ b/src/2.services/ATS.NonCustodial.Application/Impl/Business/CaseManagements/AppSupervisedPersonService.cs @@ -121,15 +121,17 @@ namespace ATS.NonCustodial.Application.Impl.Business.CaseManagements } //修改状态 + var propertyNameAndValues = new Dictionary>(); foreach (var (key, value) in caseProgress) { - await _appCaseManagementEfRepository.UpdateAsync(w => w.Id == key, - w => new AppCaseManagement() - { - CaseProgress = value, - CaseBeginTime = value == CaseProgressEnum.InExecution ? DateTime.Now : null - }); + propertyNameAndValues[key] = new List<(string propertyName, dynamic propertyValue)>() + { + (nameof(AppCaseManagement.CaseProgress), value), + (nameof(AppCaseManagement.CaseBeginTime), value == CaseProgressEnum.InExecution ? DateTime.Now : (DateTime?)null) + }; } + + await _appCaseManagementEfRepository.UpdateAsync(propertyNameAndValues); return ResultOutput.Ok(); }