Browse Source

APP认证报错

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

12
src/2.services/ATS.NonCustodial.Application/Impl/Business/CaseManagements/AppSupervisedPersonService.cs

@ -121,16 +121,18 @@ 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()
propertyNameAndValues[key] = new List<(string propertyName, dynamic propertyValue)>()
{
CaseProgress = value,
CaseBeginTime = value == CaseProgressEnum.InExecution ? DateTime.Now : null
});
(nameof(AppCaseManagement.CaseProgress), value),
(nameof(AppCaseManagement.CaseBeginTime), value == CaseProgressEnum.InExecution ? DateTime.Now : (DateTime?)null)
};
}
await _appCaseManagementEfRepository.UpdateAsync(propertyNameAndValues);
return ResultOutput.Ok();
}
}

Loading…
Cancel
Save