From 963f2f00f033d3fdd3d18ab71beb28d9f0e179bf Mon Sep 17 00:00:00 2001 From: Demo <Demo@DESKTOP-CPA90BF> Date: 星期一, 01 四月 2024 10:08:10 +0800 Subject: [PATCH] 修改类型 --- Wms/WMS.BLL/BllPdaServer/PdaCrServer.cs | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Wms/WMS.BLL/BllPdaServer/PdaCrServer.cs b/Wms/WMS.BLL/BllPdaServer/PdaCrServer.cs index 063f080..f2b8b13 100644 --- a/Wms/WMS.BLL/BllPdaServer/PdaCrServer.cs +++ b/Wms/WMS.BLL/BllPdaServer/PdaCrServer.cs @@ -171,7 +171,7 @@ } } - public void CrSetCheck(string crNo, string crDetail, string palletNo, string boxNo, string boxNo3, string result, int? qty, string isContinue, int userId) + public void CrSetCheck(string crNo, string crDetail, string palletNo, string boxNo, string boxNo3, string result, decimal? qty, string isContinue, int userId) { try { @@ -276,14 +276,14 @@ var list = checkLog.ToList(); - decimal num = 0; + var num = 0; foreach (var l in list) { l.RealQty = 0; l.CheckResult = 1; l.CheckDate = time; l.CheckUserId = userId; - num -= (decimal)l.RealQty; + num -= int.Parse(l.RealQty.ToString()); } if (checkDetail.RealQty == null) { -- Gitblit v1.8.0