From 5cec43f7dfdd268945075b1d7c60feac0de79374 Mon Sep 17 00:00:00 2001 From: Marvin Date: Wed, 17 Sep 2025 19:00:09 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E6=94=B9QRS017=E7=9A=84SQL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/AMES/WipInfosController.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/AMESCoreStudio.WebApi/Controllers/AMES/WipInfosController.cs b/AMESCoreStudio.WebApi/Controllers/AMES/WipInfosController.cs index 677c4c2..68f0ad1 100644 --- a/AMESCoreStudio.WebApi/Controllers/AMES/WipInfosController.cs +++ b/AMESCoreStudio.WebApi/Controllers/AMES/WipInfosController.cs @@ -827,11 +827,21 @@ and b.item_no = '{0}' and a.barcode_no = '{1}'", kp_no, barcode_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,e.station_name as StationName,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,jhames.stations e"; sql = sql + " where b.barcode_no between c.start_no and c.end_no and c.wip_no = d.wip_no and b.station_id = e.station_id"; sql = sql + " and c.wip_no = '" + wipNO + "'"; sql = sql + " order by b.barcode_no "; + */ + + + string sql = @" select d.wip_no as WipNo,b.barcode_no as BarcodeNo,b.extra_barcode_no as ExtraBarcodeNo,e.station_name as StationName,b.box_no as BoxNo,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,jhames.stations e"; + sql = sql + " where b.wip_id = c.wip_id and c.wip_no = d.wip_no and b.station_id = e.station_id"; + sql = sql + " and d.wip_no = '" + wipNO + "'"; + sql = sql + " order by b.barcode_no "; + using (var barcode_cmd = conn.CreateCommand()) {