From 1fd8f5cee0ecc51f6800a0095bde346e93c3e615 Mon Sep 17 00:00:00 2001 From: Marvin Date: Fri, 28 Jan 2022 15:08:44 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E6=AD=A3=E7=BB=B4=E4=BF=AE=E6=9F=A5?= =?UTF-8?q?=E4=B8=8D=E5=88=B0=E6=9D=A1=E7=A0=81=E7=9A=84=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AMESCoreStudio.WebApi/Controllers/AMES/NgInfoController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AMESCoreStudio.WebApi/Controllers/AMES/NgInfoController.cs b/AMESCoreStudio.WebApi/Controllers/AMES/NgInfoController.cs index ed2d2fba..5ce519da 100644 --- a/AMESCoreStudio.WebApi/Controllers/AMES/NgInfoController.cs +++ b/AMESCoreStudio.WebApi/Controllers/AMES/NgInfoController.cs @@ -101,7 +101,7 @@ namespace AMESCoreStudio.WebApi.Controllers.AMES var barcodeInfo = await q1.ToListAsync(); int barcodeId = -1; - if (barcodeInfo != null) + if (barcodeInfo.Count > 0) { barcodeId = barcodeInfo[0].BarcodeID; }