Browse Source

取流水BUG调整

章政 7 năm trước cách đây
mục cha
commit
f8769100f4
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      UAS-出货标签管理(泽天)/UAS_出货标签管理.cs

+ 1 - 1
UAS-出货标签管理(泽天)/UAS_出货标签管理.cs

@@ -1698,7 +1698,7 @@ namespace UAS_LabelMachine
                         //设置当前流水
                         if (maxnum == "")
                         {
-                            maxnum = dh.getFieldDataByCondition("RuleMaxNum", "rmn_maxnumber", "rmn_nrcode='" + (NrCode == "" ? "Default" : NrCode) + "' and nvl(rmn_type,' ')='" + ReSetType + "'").ToString();
+                            maxnum = dh.getFieldDataByCondition("RuleMaxNum", "max(rmn_maxnumber)", "rmn_nrcode='" + (NrCode == "" ? "Default" : NrCode) + "' and nvl(rmn_type,' ')='" + ReSetType + "'").ToString();
                             if (maxnum != "")
                             {
                                 Count = int.Parse(maxnum) + Count;