Authored by tanling

优惠券

... ... @@ -71,13 +71,9 @@ public class ErpGWCouponController {
CouponSimpleBo couponSimpleBo = new CouponSimpleBo();
couponSimpleBo.setCouponName(coupon.getCouponName());
couponSimpleBo.setCouponAmount(coupon.getCouponAmount());
couponSimpleBo.setUseLimitType(coupon.getUseLimitType().intValue());
couponSimpleBo.setUseLimitValue(String.valueOf(coupon.getUseLimitValue()));
// use_limit_type use_limit_value 满多少元可用
if (coupon.getUseLimitType()!=null && CouponUseLimitTypeEnum.AMOUNT_LIMIT.getLimitType().equals(String.valueOf(coupon.getUseLimitType()))){
couponSimpleBo.setUseRule(MessageFormat.format(CouponUseLimitTypeEnum.AMOUNT_LIMIT.getCommText(),coupon.getUseLimitValue().intValue()));
}else{
couponSimpleBo.setUseRule(CouponUseLimitTypeEnum.NON_LIMIT.getCommText());
}
couponSimpleBo.setCouponToken(coupon.getCouponToken());
return couponSimpleBo;
... ...