Browse Source

优化取单

yhluo 2 weeks ago
parent
commit
fb4409c63b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      UAS_MES_HYSX/FunctionCode/Make/Make_ThruputLog.cs

+ 1 - 1
UAS_MES_HYSX/FunctionCode/Make/Make_ThruputLog.cs

@@ -311,7 +311,7 @@ namespace UAS_MES_NEW.Make
             {
                 SQL.Clear();
                 SQL.Append($@"SELECT ms_sncode,ma_code,pr_code,pr_spec FROM makeserial,make,product
-                        WHERE ms_sncode = '{sn}' AND ms_makecode = ma_code AND ms_prodcode = pr_code");
+                        WHERE ms_sncode = '{sn}' AND ms_makecode = ma_code AND ms_prodcode = pr_code order by MS_ID desc");
                 dt = (DataTable)dh.ExecuteSql(SQL.ToString(), "select");
                 if (dt.Rows.Count > 0)
                 {