|
@@ -275,10 +275,14 @@ public class ItempriceadjustItemprice extends Controller {
|
|
|
HashMap<String, CellType> cellMap = new HashMap<>();
|
|
|
cellMap.put("itemno", CellType.STRING);
|
|
|
Rows rows = e.getSheetRows(0, keys, cellMap, 3);
|
|
|
+
|
|
|
+ ArrayList<String> itemnoList = rows.toArrayList("itemno");
|
|
|
+ itemnoList.add("-1");
|
|
|
+
|
|
|
boolean iserr = false;
|
|
|
Rows rowserr = new Rows();
|
|
|
Rows rowssuc = new Rows();
|
|
|
- RowsMap itemnoRowsMap = dbConnect.runSqlQuery("select itemid,itemno,marketprice from plm_item where siteid='" + siteid + "'").toRowsMap("itemno");
|
|
|
+ RowsMap itemnoRowsMap = dbConnect.runSqlQuery("select itemid,itemno,marketprice from plm_item where siteid='" + siteid + "' and itemno in " + itemnoList.toString().replace("[", "(").replace("]", ")")).toRowsMap("itemno");
|
|
|
for (Row row : rows) {
|
|
|
if (StringUtils.isEmpty(row.getString("itemno"))) {
|
|
|
iserr = true;
|