Преглед изворни кода

打印次数不显示bug修复

hu пре 2 месеци
родитељ
комит
755b57776a

+ 2 - 2
src/custom/restcontroller/webmanage/sale/dbstockbill/dbstockbill.java

@@ -163,8 +163,8 @@ public class dbstockbill extends Controller {
         ArrayList<Long> ids = rows.toArrayList("st_dbstockbillid", new ArrayList<>());
         HashMap<Long, Integer> reportMap = Report.getViewCount(this,"st_dbstockbill",ids);
         for(Row row :rows){
-            if(reportMap.containsKey(row.getString("st_dbstockbillid"))){
-                row.put("printcount",reportMap.get(row.getString("st_dbstockbillid")));
+            if(reportMap.containsKey(row.getLong("st_dbstockbillid"))){
+                row.put("printcount",reportMap.get(row.getLong("st_dbstockbillid")));
             }
         }
 

+ 2 - 2
src/custom/restcontroller/webmanage/sale/stockbill/stockbill.java

@@ -288,8 +288,8 @@ public class stockbill extends Controller {
         ArrayList<Long> ids = rows.toArrayList("st_stockbillid", new ArrayList<>());
         HashMap<Long, Integer> reportMap =Report.getViewCount(this,"st_stockbill",ids);
         for(Row row :rows){
-            if(reportMap.containsKey(row.getString("st_stockbillid"))){
-                row.put("printcount",reportMap.get(row.getString("st_stockbillid")));
+            if(reportMap.containsKey(row.getLong("st_stockbillid"))){
+                row.put("printcount",reportMap.get(row.getLong("st_stockbillid")));
             }
         }