From cb5071bffb7ab9ed759dc86306a0250995636dc5 Mon Sep 17 00:00:00 2001 From: wangping <995664179@qq.com> Date: Mon, 22 Sep 2025 14:04:18 +0800 Subject: [PATCH] =?UTF-8?q?APP=E8=AE=A4=E8=AF=81=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CaseManagements/AppSupervisedPersonService.cs | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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(); }