|
@@ -49,10 +49,6 @@ public class GiftCardGoodsSkuServiceImpl extends ServiceImpl<GiftCardGoodsSkuMap
|
|
|
}
|
|
}
|
|
|
BigDecimal cash = data.getCash();
|
|
BigDecimal cash = data.getCash();
|
|
|
Integer gcType = data.getGcType();
|
|
Integer gcType = data.getGcType();
|
|
|
- //礼品卡金额 与购买价格一致
|
|
|
|
|
- if (cash != null) {
|
|
|
|
|
- data.setPrice(cash);
|
|
|
|
|
- }
|
|
|
|
|
BigDecimal price = data.getPrice();
|
|
BigDecimal price = data.getPrice();
|
|
|
if (price == null || price.compareTo(BigDecimal.ZERO) == 0) {
|
|
if (price == null || price.compareTo(BigDecimal.ZERO) == 0) {
|
|
|
throw BusinessRuntimeException.getInstance("请输入正确的礼品卡配置价格");
|
|
throw BusinessRuntimeException.getInstance("请输入正确的礼品卡配置价格");
|