Ver Fonte

商品组价格取值错误修复

hu há 3 anos atrás
pai
commit
fa03d017bd
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      src/custom/restcontroller/sale/itemgroup/itemgroup.java

+ 2 - 2
src/custom/restcontroller/sale/itemgroup/itemgroup.java

@@ -193,10 +193,10 @@ public class itemgroup extends Controller {
             BigDecimal max = new BigDecimal(0);
             BigDecimal min = ((ItemPrice) ItemPriceList.values().toArray()[0]).getPrice();
             for (ItemPrice itemPrice : ItemPriceList.values()) {
-                if (itemPrice.getMarketprice().compareTo(max) == 1) {
+                if (itemPrice.getPrice().compareTo(max) == 1) {
                     max = itemPrice.getPrice();
                 }
-                if (itemPrice.getMarketprice().compareTo(min) == -1) {
+                if (itemPrice.getPrice().compareTo(min) == -1) {
                     min = itemPrice.getPrice();
                 }
             }