From 1cb6c1465da56db8b851f5f893654227763022e8 Mon Sep 17 00:00:00 2001 From: Marvin Date: Fri, 5 Jan 2024 17:05:54 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E6=94=B9=E5=B7=A5=E5=8D=95KeyParts?= =?UTF-8?q?=E6=9F=A5=E8=AF=A22=EF=BC=8C=E6=8C=89kp=E7=9A=84=E8=AE=BE?= =?UTF-8?q?=E5=AE=9A=E9=A1=BA=E5=BA=8F=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AMESCoreStudio.WebApi/Controllers/AMES/WipInfosController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AMESCoreStudio.WebApi/Controllers/AMES/WipInfosController.cs b/AMESCoreStudio.WebApi/Controllers/AMES/WipInfosController.cs index 9da27b89..4c7b20f8 100644 --- a/AMESCoreStudio.WebApi/Controllers/AMES/WipInfosController.cs +++ b/AMESCoreStudio.WebApi/Controllers/AMES/WipInfosController.cs @@ -700,7 +700,7 @@ and b.item_no = '{0}' and a.barcode_no = '{1}'", kp_no, barcode_no); barcode_id = int.Parse(dtWip.Rows[0]["BARCODE_ID"].ToString()); } - string kp_sql = "select kp_no, count(kp_seq) as kp_qty from jhames.wip_kp where wip_no = '" + wipNO + "' group by kp_no"; + string kp_sql = "select kp_no, count(kp_seq) as kp_qty, min(kp_seq) kp_seq from jhames.wip_kp where wip_no = '" + wipNO + "' group by kp_no order by kp_seq "; DataTable dtKp = new DataTable();