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