From b1e83ca4c4d4defa6548a7e041023e6b91cae2b2 Mon Sep 17 00:00:00 2001 From: hanxuntao <641739520@qq.com> Date: Mon, 26 Sep 2022 09:57:41 +0800 Subject: [PATCH] 1 --- DSWeb/Areas/MvcShipping/Controllers/MsOpSeaeController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DSWeb/Areas/MvcShipping/Controllers/MsOpSeaeController.cs b/DSWeb/Areas/MvcShipping/Controllers/MsOpSeaeController.cs index 01bfe910..b604ad02 100644 --- a/DSWeb/Areas/MvcShipping/Controllers/MsOpSeaeController.cs +++ b/DSWeb/Areas/MvcShipping/Controllers/MsOpSeaeController.cs @@ -13892,7 +13892,7 @@ namespace DSWeb.MvcShipping.Controllers //20220922 var cdc = new CommonDataContext(); - var ctnlist = cdc.OP_CTN.Where(x => x.BSNO == item.BSNO).ToList(); + var ctnlist = MsOpSeaeEdiPortDAL.GetCtnTTLSum("BSNO='"+ item.BSNO + "'"); var 单量 = 0; if (ctnlist == null || ctnlist.Count == 0) { @@ -13900,7 +13900,7 @@ namespace DSWeb.MvcShipping.Controllers } else { - 单量 = ctnlist.Count; + 单量 = ctnlist[0].CTNNUM; } MsChFeeDAL.MakeNewFee(USERID, item.BSNO, VGMPriceInfo.DJYName, "其它", 2, "VGM费", amount * 单量, "单票", 单量);