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)
{
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();
}

Loading…
Cancel
Save