|
|
|
@@ -68,12 +68,14 @@ public class TtCouponServiceImpl implements TtCouponService { |
|
|
|
if (StringUtils.isNotEmpty(record.getOrigPriceStr())) { |
|
|
|
record.setOrigPrice(new BigDecimal(record.getOrigPriceStr()).multiply(new BigDecimal(100)).intValue()); |
|
|
|
} |
|
|
|
if(record.getSalePrice() == null || record.getSalePrice().intValue() == 0){ |
|
|
|
record.setSalePrice(0); |
|
|
|
record.setIsPayment(EnumYesOrNo.NO.getCode()); |
|
|
|
record.setPreviewDuration(0); |
|
|
|
}else{ |
|
|
|
record.setIsPayment(EnumYesOrNo.YES.getCode()); |
|
|
|
if(!record.getType().equals(EnumTtCouponType.COUPON_MORE.getCode())){ |
|
|
|
if(record.getSalePrice() == null || record.getSalePrice().intValue() == 0){ |
|
|
|
record.setSalePrice(0); |
|
|
|
record.setIsPayment(EnumYesOrNo.NO.getCode()); |
|
|
|
record.setPreviewDuration(0); |
|
|
|
}else{ |
|
|
|
record.setIsPayment(EnumYesOrNo.YES.getCode()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (StringUtils.isBlank(record.getCoverPicture())) { |
|
|
|
|