Authored by wujiexiang

增加优惠券说明

... ... @@ -6,6 +6,8 @@ import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Builder;
import java.util.List;
/**
* Created by jiexiang.wu on 2018/11/19.
*/
... ... @@ -41,4 +43,7 @@ public class ShoppingCoupon {
//是否支持可选
@JSONField(name = "is_selected_support")
private String isSelectedSupport;
//使用说明
private List<String> notes;
}
... ...
... ... @@ -46,6 +46,8 @@ public class CouponSupport {
shoppingCoupon.setSelected(OrderConstant.N_STR);
shoppingCoupon.setIsSelectedSupport(OrderConstant.Y_STR);
shoppingCoupon.setNotes(userCouponsBo.getNotes());
result.add(shoppingCoupon);
});
... ...
package com.yohoufo.promotion.convert;
import com.google.common.collect.Lists;
import com.yohobuy.ufo.model.promotion.UserCouponsBo;
import com.yohobuy.ufo.model.promotion.constant.CouponProductLimitTypeEnum;
import com.yohobuy.ufo.model.promotion.constant.CouponUseLimitTypeEnum;
... ... @@ -36,6 +37,9 @@ public class CouponConvert {
couponBo.setUseRule(MessageFormat.format(CouponUseLimitTypeEnum.AMOUNT_LIMIT.getText(),coupon.getUseLimitValue().intValue()));
}
//优惠券说明
couponBo.setNotes(Lists.newArrayList(coupon.getRemark()));
return couponBo;
}
... ...