Browse Source

取流水BUG调整

章政 6 years ago
parent
commit
f8769100f4
1 changed files with 1 additions and 1 deletions
  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;