|
@@ -310,10 +310,8 @@ public class UserCouponServiceImpl extends ServiceImpl<UserCouponMapper, UserCou
|
|
|
userCoupon.setMinAmount(template.getMinAmount());
|
|
userCoupon.setMinAmount(template.getMinAmount());
|
|
|
userCoupon.setCouponDesc(template.getCouponDesc());
|
|
userCoupon.setCouponDesc(template.getCouponDesc());
|
|
|
userCoupon.setApplyScope(template.getApplyScope());
|
|
userCoupon.setApplyScope(template.getApplyScope());
|
|
|
- // 兼容历史数据:如果discountAmount为空则从模板读取
|
|
|
|
|
- if (userCoupon.getDiscountAmount() == null) {
|
|
|
|
|
- userCoupon.setDiscountAmount(template.getDiscountValue());
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // 填充模板的discountValue用于前端显示
|
|
|
|
|
+ userCoupon.setDiscountValue(template.getDiscountValue());
|
|
|
}
|
|
}
|
|
|
// 填充状态标签
|
|
// 填充状态标签
|
|
|
com.haha.common.vo.StatusLabel label = CouponStatusEnum.getLabelByCode(userCoupon.getStatus());
|
|
com.haha.common.vo.StatusLabel label = CouponStatusEnum.getLabelByCode(userCoupon.getStatus());
|