From 571e5b1d03d513bd4e6cf8db08247cd9aa73bf23 Mon Sep 17 00:00:00 2001 From: Sai Date: Thu, 7 Sep 2023 09:30:12 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E9=81=8E=E7=AB=99=E6=A2=9D=E7=A2=BC?= =?UTF-8?q?=E5=8D=80=E9=96=93=E5=88=A4=E6=96=B7=20=E5=8A=A0=E5=85=A5?= =?UTF-8?q?=E7=AC=A6=E5=90=88=E8=B5=B7=E8=A8=96=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/BLL/BarCodeCheckController.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/AMESCoreStudio.WebApi/Controllers/BLL/BarCodeCheckController.cs b/AMESCoreStudio.WebApi/Controllers/BLL/BarCodeCheckController.cs index ff3ce5f7..e5376b9e 100644 --- a/AMESCoreStudio.WebApi/Controllers/BLL/BarCodeCheckController.cs +++ b/AMESCoreStudio.WebApi/Controllers/BLL/BarCodeCheckController.cs @@ -1400,6 +1400,13 @@ namespace AMESCoreStudio.WebApi.Controllers.AMES { try { + // 刷入資料 = 條碼起始 或 條碼結束 都符合條碼區間 + if (q.Where(w => w.StartNO == barcode || w.EndNO == barcode).Any()) + { + resultModel.Success = true; + return resultModel; + } + // 93200036400001 9320003640001 var No = int.Parse(barcode.Substring(barcode.Length - 4, 4)); foreach (var item in q.Where(w => w.StartNO.Substring(0, barcode.Length - 4) == barcode.Substring(0, barcode.Length - 4)