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