From f55d05361c59191e6882600f36c86b0f14e14cb5 Mon Sep 17 00:00:00 2001 From: Marvin Date: Tue, 15 Aug 2023 10:45:08 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E6=94=B9=E5=B7=A5=E5=8D=95KeyPart?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E9=80=BB=E8=BE=91=EF=BC=8C=E9=87=87=E7=94=A8?= =?UTF-8?q?WIP=5FBARCODE=E4=B8=8EBARCODE=5FINFO=E5=8C=B9=E9=85=8D=E6=95=B0?= =?UTF-8?q?=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/AMES/WipInfosController.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/AMESCoreStudio.WebApi/Controllers/AMES/WipInfosController.cs b/AMESCoreStudio.WebApi/Controllers/AMES/WipInfosController.cs index e77793e7..06b89ef4 100644 --- a/AMESCoreStudio.WebApi/Controllers/AMES/WipInfosController.cs +++ b/AMESCoreStudio.WebApi/Controllers/AMES/WipInfosController.cs @@ -701,10 +701,17 @@ and b.item_no = '{0}' and a.barcode_no = '{1}'", kp_no, barcode_no); WriteTraceLog("query wip_kp rows qty:" + dtKp.Rows.Count); } + /* string sql = @" select c.wip_no as WipNo,b.barcode_no as BarcodeNo,b.extra_barcode_no as ExtraBarcodeNo,d.model_no as ModelNO,d.item_no as ItemNO"; sql = sql + " from jhames.barcode_info b,jhames.wip_info c,jhames.wip_att d"; sql = sql + " where b.wip_id = c.wip_id and c.wip_no = d.wip_no"; sql = sql + " and c.wip_no = '" + wipNO + "'"; + */ + + string sql = @" select c.wip_no as WipNo,b.barcode_no as BarcodeNo,b.extra_barcode_no as ExtraBarcodeNo,b.box_no as BoxNo,d.model_no as ModelNO,d.item_no as ItemNO"; + sql = sql + " from jhames.barcode_info b,jhames.wip_barcode c,jhames.wip_att d"; + sql = sql + " where b.barcode_no between c.start_no and c.end_no and c.wip_no = d.wip_no"; + sql = sql + " and c.wip_no = '" + wipNO + "'"; using (var barcode_cmd = conn.CreateCommand()) {