|
|
|
@ -52,6 +52,10 @@ namespace Shentun.Peis.PlugIns |
|
|
|
var createImportLisResultDtos = new List<CreateImportLisResultDto>(); |
|
|
|
foreach (var lisRequest in lisRequests) |
|
|
|
{ |
|
|
|
//if (lisRequest.LisRequestNo == "2405090117")
|
|
|
|
//{
|
|
|
|
// ;
|
|
|
|
//}
|
|
|
|
createImportLisResultDtos.Clear(); |
|
|
|
string sql; |
|
|
|
sql = InterfaceSql + " where " + InterfaceSqlKeyColumn + " = '" + lisRequest.LisRequestNo + "'"; |
|
|
|
@ -60,6 +64,15 @@ namespace Shentun.Peis.PlugIns |
|
|
|
{ |
|
|
|
foreach (var lisResult in lisResultFromInterfaces) |
|
|
|
{ |
|
|
|
if(string.IsNullOrWhiteSpace(lisResult.Result)) |
|
|
|
{ |
|
|
|
continue; |
|
|
|
} |
|
|
|
if (string.IsNullOrWhiteSpace(lisResult.ItemId)) |
|
|
|
{ |
|
|
|
throw new Exception("第三方接口数据项目编码不能为空"); |
|
|
|
} |
|
|
|
|
|
|
|
if (string.IsNullOrWhiteSpace(lisResult.ItemName)) |
|
|
|
{ |
|
|
|
throw new Exception("第三方接口数据项目名称不能为空"); |
|
|
|
@ -68,6 +81,11 @@ namespace Shentun.Peis.PlugIns |
|
|
|
{ |
|
|
|
throw new Exception("检验医生不能为空"); |
|
|
|
} |
|
|
|
|
|
|
|
//if(lisResult.ItemId == "435")
|
|
|
|
//{
|
|
|
|
// ;
|
|
|
|
//}
|
|
|
|
var columnReferenceCodes = await GetColumnReferenceCodeValuesAsync(ItemColumnReferenceId, lisResult.ItemId); |
|
|
|
if (columnReferenceCodes == null || !columnReferenceCodes.Any()) |
|
|
|
{ |
|
|
|
@ -108,7 +126,7 @@ namespace Shentun.Peis.PlugIns |
|
|
|
} |
|
|
|
if (!createImportLisResultDtos.Any()) |
|
|
|
{ |
|
|
|
return result; |
|
|
|
continue; |
|
|
|
} |
|
|
|
|
|
|
|
var callResult = await CallAppServiceAsync<List<CreateImportLisResultDto>, object>("api/app/ImportLisResult/ImportResult", createImportLisResultDtos); |
|
|
|
|