|
@@ -282,7 +282,10 @@ public class ItempriceadjustItemprice extends Controller {
|
|
|
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 + "' and itemno in " + itemnoList.toString().replace("[", "(").replace("]", ")")).toRowsMap("itemno");
|
|
|
+ QuerySQL querySQL = SQLFactory.createQuerySQL(this, "plm_item", "itemid", "itemno", "marketprice");
|
|
|
+ querySQL.setSiteid(siteid);
|
|
|
+ querySQL.setWhere("itemno", itemnoList);
|
|
|
+ RowsMap itemnoRowsMap = querySQL.query().toRowsMap("itemno");
|
|
|
for (Row row : rows) {
|
|
|
if (StringUtils.isEmpty(row.getString("itemno"))) {
|
|
|
iserr = true;
|