Explorar el Código

更新MES查询URL,增加sn和wo字段

将MES系统查询URL中的p参数统一增加sn和wo字段,以便在查询时获取序列号和工单号等更多信息,提升数据完整性。
徐孝锋 hace 6 meses
padre
commit
c629460d45
Se han modificado 1 ficheros con 4 adiciones y 4 borrados
  1. 4 4
      TeamAAS-VM/Services/MesService.cs

+ 4 - 4
TeamAAS-VM/Services/MesService.cs

@@ -116,16 +116,16 @@ namespace TeamAAS_VP.Services
             {
                 if (device.F == "PTL")
                 {
-                    url = $"{device.MesUrl}?c=QUERY_RECORD&line={device.Line}&station={station[deviceNo]}&fixtureid={fixtureId[deviceNo]}&sn={sn}&comp={device.comp}:{comp}&p=unit_process_check,message,model";
+                    url = $"{device.MesUrl}?c=QUERY_RECORD&line={device.Line}&station={station[deviceNo]}&fixtureid={fixtureId[deviceNo]}&sn={sn}&comp={device.comp}:{comp}&p=unit_process_check,message,model,sn,wo";
                 }
                 else
                 {
-                    url = $"{device.MesUrl}?c=QUERY_RECORD&line={device.Line}&station={station[deviceNo]}&fixtureid={fixtureId[deviceNo]}&sn={sn}&p=unit_process_check,message,model";
+                    url = $"{device.MesUrl}?c=QUERY_RECORD&line={device.Line}&station={station[deviceNo]}&fixtureid={fixtureId[deviceNo]}&sn={sn}&p=unit_process_check,message,model,sn,wo";
                 }
             }
             else//±£Ñ¹Õ¾
             {
-                url = $"{device.MesUrl}?c=QUERY_RECORD&line={device.Line}&station={station[deviceNo]}&fixtureid={fixtureId[deviceNo]}&sn={sn}&p=unit_process_check,message,model";
+                url = $"{device.MesUrl}?c=QUERY_RECORD&line={device.Line}&station={station[deviceNo]}&fixtureid={fixtureId[deviceNo]}&sn={sn}&p=unit_process_check,message,model,sn,wo";
             }
 
             LogHelper.WriteLogMes($"¡¾Ñ¯ÎÊURL¡¿{url}");
@@ -214,7 +214,7 @@ namespace TeamAAS_VP.Services
                 return (false, "Missing MES station URL");
 
             string url = "";
-            url = $"{device.MesUrl}?c=QUERY_RECORD&line={device.Line}&station={device.Station}&fixtureid={device.FixtureId}&sn={sn}&p=sn,message";
+            url = $"{device.MesUrl}?c=QUERY_RECORD&line={device.Line}&station={device.Station}&fixtureid={device.FixtureId}&sn={sn}&p=message,sn,wo";
 
             LogHelper.WriteLogMes($"¡¾Ñ¯ÎÊURL¡¿{url}");
             SendTaskMessage($"¡¾Ñ¯ÎÊURL¡¿{url}", MessageLevel.Info);