Переглянути джерело

1、修复垫层物料尾部数字错误问题

MY 13 годин тому
батько
коміт
534753122d
1 змінених файлів з 3 додано та 4 видалено
  1. 3 4
      JLHHJSvr/Helper/InterfaceHelper.cs

+ 3 - 4
JLHHJSvr/Helper/InterfaceHelper.cs

@@ -773,17 +773,16 @@ namespace JLHHJSvr.Helper
                 {
                     if (mx.formulakind == 999)
                     {
-                        this.ProcessChuangWangPz(mx, interfaceList, mx.chastr, countDict[key]);
+                        this.ProcessChuangWangPz(mx, interfaceList, mx.chastr, ++countDict[key]);
                     }
                     else if (mx.mtrlid > 0 && mx.formulakind == 1201)
                     {
-                        this.ProcessDingbuLianMianPz(mx, interfaceList, mx.chastr, countDict[key]);
+                        this.ProcessDingbuLianMianPz(mx, interfaceList, mx.chastr, ++countDict[key]);
                     }
                     else if (mx.mtrlid > 0 && new int[] { 32, 12, 13, 14, 29 }.Contains(mx.formulakind.Value))
                     {
-                        this.ProcessWangMianBLPz(mx, interfaceList, mx.chastr, kindDict[mx.formulakind.Value], countDict[key]);
+                        this.ProcessWangMianBLPz(mx, interfaceList, mx.chastr, kindDict[mx.formulakind.Value], ++countDict[key]);
                     }
-                    countDict[key]++;
                 }
             }