|
@@ -191,13 +191,13 @@ public class itemgroup extends Controller {
|
|
|
HashMap<Long, ItemPrice> ItemPriceList = ItemPrice.getItemGroupPrice(this, sys_enterpriseid,
|
|
HashMap<Long, ItemPrice> ItemPriceList = ItemPrice.getItemGroupPrice(this, sys_enterpriseid,
|
|
|
row2.getLong("sa_itemgroupid"));
|
|
row2.getLong("sa_itemgroupid"));
|
|
|
BigDecimal max = new BigDecimal(0);
|
|
BigDecimal max = new BigDecimal(0);
|
|
|
- BigDecimal min = ((ItemPrice) ItemPriceList.values().toArray()[0]).getGraderateprice();
|
|
|
|
|
|
|
+ BigDecimal min = ((ItemPrice) ItemPriceList.values().toArray()[0]).getPrice();
|
|
|
for (ItemPrice itemPrice : ItemPriceList.values()) {
|
|
for (ItemPrice itemPrice : ItemPriceList.values()) {
|
|
|
if (itemPrice.getMarketprice().compareTo(max) == 1) {
|
|
if (itemPrice.getMarketprice().compareTo(max) == 1) {
|
|
|
- max = itemPrice.getGraderateprice();
|
|
|
|
|
|
|
+ max = itemPrice.getPrice();
|
|
|
}
|
|
}
|
|
|
if (itemPrice.getMarketprice().compareTo(min) == -1) {
|
|
if (itemPrice.getMarketprice().compareTo(min) == -1) {
|
|
|
- min = itemPrice.getGraderateprice();
|
|
|
|
|
|
|
+ min = itemPrice.getPrice();
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
row2.put("maxprice", max);
|
|
row2.put("maxprice", max);
|