diff --git a/AMESCoreStudio.WebApi/Controllers/AMES/WipInfosController.cs b/AMESCoreStudio.WebApi/Controllers/AMES/WipInfosController.cs index 9df06ea7..a9023c14 100644 --- a/AMESCoreStudio.WebApi/Controllers/AMES/WipInfosController.cs +++ b/AMESCoreStudio.WebApi/Controllers/AMES/WipInfosController.cs @@ -712,6 +712,7 @@ and b.item_no = '{0}' and a.barcode_no = '{1}'", kp_no, barcode_no); 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 "; using (var barcode_cmd = conn.CreateCommand()) {