|
|
@@ -359,10 +359,10 @@ public class promotionItems extends Controller {
|
|
|
Row item = itemRowsMap.get(itemno).get(0);
|
|
|
row.put("itemid", item.getLong("itemid"));
|
|
|
if (StringUtils.isEmpty(orderminqty) || orderminqty.equals("0")) {
|
|
|
- row.put("orderminqty", item.getBigDecimal("orderminqty"));
|
|
|
+ row.put("orderminqty", item.getDouble("orderminqty"));
|
|
|
}
|
|
|
if (StringUtils.isEmpty(orderaddqty) || orderaddqty.equals("0")) {
|
|
|
- row.put("orderaddqty", item.getBigDecimal("orderaddqty"));
|
|
|
+ row.put("orderaddqty", item.getDouble("orderaddqty"));
|
|
|
}
|
|
|
if (StringUtils.isEmpty(groupqty) || groupqty.equals("0")) {
|
|
|
row.put("groupqty", "0");
|
|
|
@@ -371,25 +371,25 @@ public class promotionItems extends Controller {
|
|
|
row.put("islimit", "1");
|
|
|
}
|
|
|
if (StringUtils.isEmpty(price1) || price1.equals("0")) {
|
|
|
- row.put("price1", item.getBigDecimal("price1"));
|
|
|
+ row.put("price1", item.getDouble("price1"));
|
|
|
}
|
|
|
if (StringUtils.isEmpty(price2) || price2.equals("0")) {
|
|
|
- row.put("price2", item.getBigDecimal("price2"));
|
|
|
+ row.put("price2", item.getDouble("price2"));
|
|
|
}
|
|
|
if (StringUtils.isEmpty(price3) || price3.equals("0")) {
|
|
|
- row.put("price3", item.getBigDecimal("price3"));
|
|
|
+ row.put("price3", item.getDouble("price3"));
|
|
|
}
|
|
|
if (StringUtils.isEmpty(price4) || price4.equals("0")) {
|
|
|
- row.put("price4", item.getBigDecimal("price4"));
|
|
|
+ row.put("price4", item.getDouble("price4"));
|
|
|
}
|
|
|
if (StringUtils.isEmpty(price5) || price5.equals("0")) {
|
|
|
- row.put("price5", item.getBigDecimal("price5"));
|
|
|
+ row.put("price5", item.getDouble("price5"));
|
|
|
}
|
|
|
- row.put("oldprice1", item.getBigDecimal("price1"));
|
|
|
- row.put("oldprice2", item.getBigDecimal("price2"));
|
|
|
- row.put("oldprice3", item.getBigDecimal("price3"));
|
|
|
- row.put("oldprice4", item.getBigDecimal("price4"));
|
|
|
- row.put("oldprice5", item.getBigDecimal("price5"));
|
|
|
+ row.put("oldprice1", item.getDouble("price1"));
|
|
|
+ row.put("oldprice2", item.getDouble("price2"));
|
|
|
+ row.put("oldprice3", item.getDouble("price3"));
|
|
|
+ row.put("oldprice4", item.getDouble("price4"));
|
|
|
+ row.put("oldprice5", item.getDouble("price5"));
|
|
|
rowssuc.add(row);
|
|
|
}
|
|
|
if (iserr) {
|