Ver Fonte

促销方案商品导入原价没有修复

hu há 2 anos atrás
pai
commit
6df7f30b1e

+ 3 - 3
src/custom/restcontroller/webmanage/sale/promotion/promotionItems.java

@@ -347,9 +347,9 @@ public class promotionItems extends Controller {
         try {
 
             // 华为云
-            e = getPostExcelFactory(content.getLong("attachmentid"));
+            //e = getPostExcelFactory(content.getLong("attachmentid"));
             // 本地
-            //e = getPostExcelFactory();
+            e = getPostExcelFactory();
 
             ArrayList<String> keys = new ArrayList<>();
             ArrayList<String> sqllist = new ArrayList<>();
@@ -511,7 +511,7 @@ public class promotionItems extends Controller {
                         sqlFactory.addParameter("sa_promotionid", sa_promotionid);
                         sqlFactory.addParameter("itemid", row.getString("itemid"));
                         sqlFactory.addParameter("pricegrade", o);
-                        sqlFactory.addParameter("oldprice", row.getBigDecimal("oldprice" + o));
+                        sqlFactory.addParameter("oldprice", row.getDouble("oldprice" + o));
                         sqlFactory.addParameter("price", row.getString("price" + o));
                         sqllist.add(sqlFactory.getSQL());
                         a++;