修改代码

Uat_Study
he 2022-04-12 18:01:40 +08:00
parent 1228c4bee6
commit 9bd129b98a
4 changed files with 29 additions and 2 deletions

View File

@ -145,6 +145,10 @@ namespace IRaCIS.Core.API.Controllers
public async Task<IResponseOutput> AddOrUpdateNoneDicomStudy(DataInspectionDto<NoneDicomStudyAddOrEdit> opt)
{
var fun = await _noneDicomStudyService.AddOrUpdateNoneDicomStudy(opt.OptCommand);
if (!fun.IsSuccess)
{
return ResponseOutput.NotOk(fun.ErrorMessage);
}
if (opt.OptCommand.Id == null)
{
Dictionary<string, object> keyValuePairs = new Dictionary<string, object>();

View File

@ -88,7 +88,14 @@
</member>
<member name="M:IRaCIS.Core.API.Controllers.InspectionController.DeleteNoneDicomStudy(IRaCIS.Core.Application.Service.Inspection.DTO.DataInspectionDto{IRaCIS.Core.Application.Contracts.IDDto})">
<summary>
删除
删除非dicom
</summary>
<param name="opt"></param>
<returns></returns>
</member>
<member name="M:IRaCIS.Core.API.Controllers.InspectionController.deleteNoneDicomStudyFile(IRaCIS.Core.Application.Service.Inspection.DTO.DataInspectionDto{IRaCIS.Core.Application.Contracts.IDDto})">
<summary>
删除非dicom文件
</summary>
<param name="opt"></param>
<returns></returns>

View File

@ -285,6 +285,14 @@
<param name="datas"></param>
<returns></returns>
</member>
<member name="M:IRaCIS.Core.Application.Service.Inspection.InspectionService.AddJsonItem(System.String,System.Collections.Generic.Dictionary{System.String,System.Object})">
<summary>
往json里面添加属性
</summary>
<param name="json">json</param>
<param name="keyValues">字典</param>
<returns></returns>
</member>
<member name="M:IRaCIS.Core.Application.Service.Inspection.InspectionService.SetEnum(IRaCIS.Core.Application.Service.Inspection.DTO.DataInspectionAddDTO)">
<summary>
处理枚举

View File

@ -332,9 +332,17 @@ namespace IRaCIS.Core.Application.Service.Inspection
{
var JsonData = JsonConvert.DeserializeObject<IDictionary<string, object>>(json);
foreach (var item in keyValues)
{
JsonData.Add(item.Key, item.Value);
if (JsonData.ContainsKey(item.Key))
{
JsonData[item.Key] = item.Value;
}
else {
JsonData.Add(item.Key, item.Value);
}
}
return JsonConvert.SerializeObject(JsonData);