Hcsy 8 年之前
父节点
当前提交
6ad6053773
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      UAS-MES/FunctionCode/Make/Make_CollectBTMAC.cs

+ 1 - 1
UAS-MES/FunctionCode/Make/Make_CollectBTMAC.cs

@@ -276,7 +276,7 @@ namespace UAS_MES.Make
                             string si_id = dh.getFieldDataByCondition("sninfo", "max(si_id) si_id", " si_sn='"+ sn_code + "' or si_sn in(select sn from makesnrelation where sn='"+ sn_code + "')").ToString();
                             if (si_id != "")
                             {
-                                dh.BatchInsert("update  sninfo set si_mac = :mac,si_bt =:bt where si_id = :osiId", new String[] { "mac", "bt", "osiId" }, new string[] { sncode.Text }, new string[] { ms_bt }, new string[] { si_id });
+                                dh.BatchInsert("update  sninfo set si_mac = :mac,si_bt =:bt,si_indate = sysdate where si_id = :osiId", new String[] { "mac", "bt", "osiId" }, new string[] { sncode.Text }, new string[] { ms_bt }, new string[] { si_id });
                             }
                             else {
                                 dh.BatchInsert("insert into sninfo (si_id,si_sn,si_mac,si_bt,si_indate) values (SnInfo_seq.nextval,:si_sn,:si_mac,:si_bt,sysdate)", new String[] { "si_sn", "si_mac", "si_bt" }, new string[] { sn_code }, new string[] { sncode.Text }, new string[] { ms_bt });