|
@@ -222,7 +222,6 @@ public class GoodsMgrController extends BaseApiController {
|
|
return AjaxResult.error("商品" + goods.getTitle() + "不满足多SKU条件!");
|
|
return AjaxResult.error("商品" + goods.getTitle() + "不满足多SKU条件!");
|
|
} else {
|
|
} else {
|
|
GoodsSku firstGoodsSku = skuList.get(0);
|
|
GoodsSku firstGoodsSku = skuList.get(0);
|
|
- goods.setOriginPrice(firstGoodsSku.getOriginPrice());
|
|
|
|
goods.setExchangePrice(firstGoodsSku.getExchangePrice());
|
|
goods.setExchangePrice(firstGoodsSku.getExchangePrice());
|
|
goods.setValue(firstGoodsSku.getValue());
|
|
goods.setValue(firstGoodsSku.getValue());
|
|
goods.setCost(firstGoodsSku.getCost());
|
|
goods.setCost(firstGoodsSku.getCost());
|
|
@@ -292,8 +291,6 @@ public class GoodsMgrController extends BaseApiController {
|
|
goods.setCost(firstGoodsSku.getCost());
|
|
goods.setCost(firstGoodsSku.getCost());
|
|
if (null == firstGoodsSku.getOriginPrice()) {
|
|
if (null == firstGoodsSku.getOriginPrice()) {
|
|
goods.setOriginPrice(0);
|
|
goods.setOriginPrice(0);
|
|
- } else {
|
|
|
|
- goods.setOriginPrice(firstGoodsSku.getOriginPrice());
|
|
|
|
}
|
|
}
|
|
if (null == firstGoodsSku.getDiscountRate()) {
|
|
if (null == firstGoodsSku.getDiscountRate()) {
|
|
goods.setDiscountRate(goodsParam.getDiscountRate());
|
|
goods.setDiscountRate(goodsParam.getDiscountRate());
|