Browse Source

APP认证报错

dev_wp
wangping 3 months ago
parent
commit
cb5071bffb
  1. 14
      src/2.services/ATS.NonCustodial.Application/Impl/Business/CaseManagements/AppSupervisedPersonService.cs

14
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<long, List<(string propertyName, dynamic propertyValue)>>();
foreach (var (key, value) in caseProgress) foreach (var (key, value) in caseProgress)
{ {
await _appCaseManagementEfRepository.UpdateAsync(w => w.Id == key, propertyNameAndValues[key] = new List<(string propertyName, dynamic propertyValue)>()
w => new AppCaseManagement() {
{ (nameof(AppCaseManagement.CaseProgress), value),
CaseProgress = value, (nameof(AppCaseManagement.CaseBeginTime), value == CaseProgressEnum.InExecution ? DateTime.Now : (DateTime?)null)
CaseBeginTime = value == CaseProgressEnum.InExecution ? DateTime.Now : null };
});
} }
await _appCaseManagementEfRepository.UpdateAsync(propertyNameAndValues);
return ResultOutput.Ok(); return ResultOutput.Ok();
} }

Loading…
Cancel
Save