Explorar o código

商品补货分析表最后三月没数据

eganwu hai 1 ano
pai
achega
e61e206c08

+ 6 - 2
src/custom/restcontroller/webmanage/sale/invbal/invbal.java

@@ -543,8 +543,12 @@ public class invbal extends Controller {
             }
         }
         for (Row row : rows) {
-            for (int i=0;i<12;i++) {
-                row.replace("month_0"+(i+1), row.get(getLast12Months().get(i)));
+            for (int i = 0; i < 12; i++) {
+                if (i < 9) {
+                    row.replace("month_0" + (i + 1), row.get(getLast12Months().get(i)));
+                } else {
+                    row.replace("month_" + (i + 1), row.get(getLast12Months().get(i)));
+                }
             }
         }
 //        if (isExport) {