|
|
@@ -168,7 +168,7 @@ public class rebateunproducts extends Controller {
|
|
|
cellMap.put("itemno", CellType.STRING);
|
|
|
Rows rows = e.getSheetRows(0, keys, cellMap, 3);
|
|
|
|
|
|
- ArrayList<String> itemnoList = rows.toArrayList("itemno");
|
|
|
+ ArrayList<String> itemnoList = rows.toArrayList("itemno",false);
|
|
|
itemnoList.add("-1");
|
|
|
|
|
|
boolean iserr = false;
|
|
|
@@ -186,6 +186,10 @@ public class rebateunproducts extends Controller {
|
|
|
continue;
|
|
|
} else {
|
|
|
String itemno = row.getString("itemno");
|
|
|
+ System.out.println(itemno);
|
|
|
+ System.out.println(itemnoList.indexOf(itemno));
|
|
|
+ System.out.println( itemnoList.lastIndexOf(itemno));
|
|
|
+
|
|
|
if (itemnoList.indexOf(itemno) != itemnoList.lastIndexOf(itemno)) {
|
|
|
iserr = true;
|
|
|
row.put("msg", "错误信息:导入文件存在相同编码的商品");
|