|
|
@ -179,8 +179,11 @@ namespace Myshipping.Application
|
|
|
|
|
|
|
|
|
|
|
|
var longContainerStatus = result.resultData.containerInfoList.FirstOrDefault(a => a.containerNo.Equals(ctnNo, StringComparison.OrdinalIgnoreCase));
|
|
|
|
var longContainerStatus = result.resultData.containerInfoList.FirstOrDefault(a => a.containerNo.Equals(ctnNo, StringComparison.OrdinalIgnoreCase));
|
|
|
|
|
|
|
|
|
|
|
|
var longContainerStatusList = longContainerStatus.containerStatusInfoList;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(longContainerStatus != null)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
var longContainerStatusList = longContainerStatus.containerStatusInfoList;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var takeList = result.resultData.containerInfoList.SelectMany(p => p.containerStatusInfoList).GroupBy(a => a.statusCd).Select(a =>
|
|
|
|
var takeList = result.resultData.containerInfoList.SelectMany(p => p.containerStatusInfoList).GroupBy(a => a.statusCd).Select(a =>
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -262,7 +265,7 @@ namespace Myshipping.Application
|
|
|
|
if (currStatus.statusCd.Equals("APOD", StringComparison.OrdinalIgnoreCase))
|
|
|
|
if (currStatus.statusCd.Equals("APOD", StringComparison.OrdinalIgnoreCase))
|
|
|
|
currStatus.isSplitEnd = true;
|
|
|
|
currStatus.isSplitEnd = true;
|
|
|
|
|
|
|
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(longContainerStatus.currentNodeCd) && longContainerStatus.currentNodeCd.Equals(kvp.Key, StringComparison.OrdinalIgnoreCase))
|
|
|
|
if (longContainerStatus != null && !string.IsNullOrWhiteSpace(longContainerStatus.currentNodeCd) && longContainerStatus.currentNodeCd.Equals(kvp.Key, StringComparison.OrdinalIgnoreCase))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
currStatus.isCurrentStatus = true;
|
|
|
|
currStatus.isCurrentStatus = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|