修改台账查询

optimize
jianghaiqing 1 year ago
parent 912b56900d
commit 127443cb4c

@ -634,18 +634,27 @@ namespace Myshipping.Application
{ {
if (currStatusList.Any(a => a.StatusSKUCode.Equals("YFVGM", StringComparison.OrdinalIgnoreCase) && a.IsYield)) if (currStatusList.Any(a => a.StatusSKUCode.Equals("YFVGM", StringComparison.OrdinalIgnoreCase) && a.IsYield))
{ {
item.IsVGM = currStatusList.FirstOrDefault(a => var currStus = currStatusList.FirstOrDefault(a =>
a.StatusSKUCode.Equals("YFVGM", StringComparison.OrdinalIgnoreCase) && a.IsYield).ActDate.Value; a.StatusSKUCode.Equals("YFVGM", StringComparison.OrdinalIgnoreCase) && a.IsYield);
if(currStus != null)
item.IsVGM = currStus?.ActDate.Value;
} }
if (currStatusList.Any(a => a.StatusSKUCode.Equals("YFCD", StringComparison.OrdinalIgnoreCase) && a.IsYield)) if (currStatusList.Any(a => a.StatusSKUCode.Equals("YFCD", StringComparison.OrdinalIgnoreCase) && a.IsYield))
{ {
item.IsCanDan = currStatusList.FirstOrDefault(a => var currStus = currStatusList.FirstOrDefault(a =>
a.StatusSKUCode.Equals("YFCD", StringComparison.OrdinalIgnoreCase) && a.IsYield).ActDate.Value; a.StatusSKUCode.Equals("YFCD", StringComparison.OrdinalIgnoreCase) && a.IsYield);
if (currStus != null)
item.IsCanDan = currStus?.ActDate.Value;
} }
if (currStatusList.Any(a => a.StatusSKUCode.Equals("ZZFX", StringComparison.OrdinalIgnoreCase) && a.IsYield)) if (currStatusList.Any(a => a.StatusSKUCode.Equals("ZZFX", StringComparison.OrdinalIgnoreCase) && a.IsYield))
{ {
item.IsZZFX = currStatusList.FirstOrDefault(a => var currStus = currStatusList.FirstOrDefault(a =>
a.StatusSKUCode.Equals("ZZFX", StringComparison.OrdinalIgnoreCase) && a.IsYield).ActDate.Value; a.StatusSKUCode.Equals("ZZFX", StringComparison.OrdinalIgnoreCase) && a.IsYield);
if (currStus != null)
item.IsZZFX = currStus?.ActDate.Value;
} }
item.GoodsStatusList = currStatusList.OrderBy(a => a.CalcSortNo) item.GoodsStatusList = currStatusList.OrderBy(a => a.CalcSortNo)

Loading…
Cancel
Save