From d661c5861244e6366a0ceffa4038139b5e4915d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A6=20=E8=B5=B5?= <89237069@qq.com> Date: Mon, 2 Nov 2020 14:11:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- UniApiGroup/Controller/OdbcApiWmsController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UniApiGroup/Controller/OdbcApiWmsController.cs b/UniApiGroup/Controller/OdbcApiWmsController.cs index 4c96ff5..9052f99 100644 --- a/UniApiGroup/Controller/OdbcApiWmsController.cs +++ b/UniApiGroup/Controller/OdbcApiWmsController.cs @@ -375,7 +375,7 @@ string _recvQty = "SELECT RecQty, AsnBillNum, PoLine, PartCode, PoBillNum,Batc if (_first != null && _fs!=null) { - _first.Extend1 = (_fs.RecQty.Value + qadData.xxwms_rc_qty_total).ToString(); + _first.Extend1 = (_fs.RecQty!=null?_fs.RecQty.Value:0 + qadData.xxwms_rc_qty_total).ToString(); wdb.TB_ASN_DETAIL.AddOrUpdate(_first); } }