Преглед на файлове

导入商品调价单bug修复

eganwu преди 2 години
родител
ревизия
ded54c69ca
променени са 1 файла, в които са добавени 5 реда и са изтрити 2 реда
  1. 5 2
      src/custom/restcontroller/webmanage/sale/itempriceadjust/ItempriceadjustItemprice.java

+ 5 - 2
src/custom/restcontroller/webmanage/sale/itempriceadjust/ItempriceadjustItemprice.java

@@ -10,6 +10,7 @@ import common.annotation.CACHEING;
 import common.annotation.CACHEING_CLEAN;
 import common.data.*;
 import org.apache.commons.lang.StringUtils;
+import org.apache.poi.ss.usermodel.CellType;
 import org.apache.poi.xssf.usermodel.*;
 import restcontroller.R;
 import restcontroller.system.attachment.Attachment;
@@ -30,7 +31,7 @@ public class ItempriceadjustItemprice extends Controller {
         super(content);
     }
 
-    @API(title = "商品调价单商品明细新增或更新", apiversion = R.ID20221025095104.v1.class,intervaltime = 200)
+    @API(title = "商品调价单商品明细新增或更新", apiversion = R.ID20221025095104.v1.class, intervaltime = 200)
     @CACHEING_CLEAN(apiversions = {R.ID20221025160904.v1.class})
     public String insertOrUpdate_sa_itempriceadjust_itemprice() throws YosException {
         Long sa_itempriceadjustid = content.getLong("sa_itempriceadjustid");
@@ -269,7 +270,9 @@ public class ItempriceadjustItemprice extends Controller {
             keys.add("price4");
             keys.add("price5");
 
-            Rows rows = e.getSheetRows(0, keys, 3);
+            HashMap<String, CellType> cellMap = new HashMap<>();
+            cellMap.put("itemno", CellType.STRING);
+            Rows rows = e.getSheetRows(0, keys, cellMap, 3);
             boolean iserr = false;
             Rows rowserr = new Rows();
             Rows rowssuc = new Rows();