Jelajahi Sumber

优化上传字段

callm 2 minggu lalu
induk
melakukan
dae0333b91
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      UAS_MES_HYSX/PublicMethod/HttpServer.cs

+ 2 - 2
UAS_MES_HYSX/PublicMethod/HttpServer.cs

@@ -1118,7 +1118,7 @@ namespace UAS_MES_NEW.PublicMethod
         //发送外箱号数据,打印前获取
         //发送外箱号数据,打印前获取
         public static async void SendBoxData(string iBox)
         public static async void SendBoxData(string iBox)
         {
         {
-            string sn = dh.getFieldDataByCondition("packagedetail left join ztedata on pd_barcode=ZD_DEV_EN_NO and pd_makecode=zd_makecode ", "replace(wm_concat(replace(ZD_MAC_START,'-','')),',','-')", "pd_outboxcode='" + iBox + "' and zd_type='BOX'").ToString();
+            string sn = dh.getFieldDataByCondition("packagedetail left join ztedata on pd_barcode=ZD_DEV_EN_NO and pd_makecode=zd_makecode ", "replace(wm_concat(replace(ZD_MAC_END,'-','')),',','-')", "pd_outboxcode='" + iBox + "' and zd_type='BOX'").ToString();
             DataTable dt = (DataTable)dh.ExecuteSql("select batch_no,ZD_BIG_BOX_NO,pr_code,PRODUCT_MODE,ms_makecode,po_sn from makeserial left join product on ms_prodcode=pr_code left join make on ma_code=ms_makecode left join zte_order on ma_custpo=batch_no left join ztedata on ZD_DEV_EN_NO=ms_sncode and zd_makecode=ms_makecode where ms_outboxcode ='" + iBox + "' and zd_type='BOX' order by ms_id desc", "select");
             DataTable dt = (DataTable)dh.ExecuteSql("select batch_no,ZD_BIG_BOX_NO,pr_code,PRODUCT_MODE,ms_makecode,po_sn from makeserial left join product on ms_prodcode=pr_code left join make on ma_code=ms_makecode left join zte_order on ma_custpo=batch_no left join ztedata on ZD_DEV_EN_NO=ms_sncode and zd_makecode=ms_makecode where ms_outboxcode ='" + iBox + "' and zd_type='BOX' order by ms_id desc", "select");
             string PRODUCT_MODE = "";
             string PRODUCT_MODE = "";
             string po_sn = "";
             string po_sn = "";
@@ -1194,7 +1194,7 @@ namespace UAS_MES_NEW.PublicMethod
                         root.BindList.Add(new BindItem
                         root.BindList.Add(new BindItem
                         {
                         {
                             BindKey = "mac",
                             BindKey = "mac",
-                            BindValue = dt.Rows[i]["ZD_MAC_START"].ToString(),
+                            BindValue = dt.Rows[i]["ZD_MAC_END"].ToString(),
                             KeyType = dt1.Rows[j]["pid_item"].ToString(),
                             KeyType = dt1.Rows[j]["pid_item"].ToString(),
                             KeyValue = value,
                             KeyValue = value,
                             HashType = "NON-HASH",
                             HashType = "NON-HASH",