Showing
1 changed file
with
2 additions
and
6 deletions
@@ -71,13 +71,9 @@ public class ErpGWCouponController { | @@ -71,13 +71,9 @@ public class ErpGWCouponController { | ||
71 | CouponSimpleBo couponSimpleBo = new CouponSimpleBo(); | 71 | CouponSimpleBo couponSimpleBo = new CouponSimpleBo(); |
72 | couponSimpleBo.setCouponName(coupon.getCouponName()); | 72 | couponSimpleBo.setCouponName(coupon.getCouponName()); |
73 | couponSimpleBo.setCouponAmount(coupon.getCouponAmount()); | 73 | couponSimpleBo.setCouponAmount(coupon.getCouponAmount()); |
74 | + couponSimpleBo.setUseLimitType(coupon.getUseLimitType().intValue()); | ||
75 | + couponSimpleBo.setUseLimitValue(String.valueOf(coupon.getUseLimitValue())); | ||
74 | 76 | ||
75 | - // use_limit_type use_limit_value 满多少元可用 | ||
76 | - if (coupon.getUseLimitType()!=null && CouponUseLimitTypeEnum.AMOUNT_LIMIT.getLimitType().equals(String.valueOf(coupon.getUseLimitType()))){ | ||
77 | - couponSimpleBo.setUseRule(MessageFormat.format(CouponUseLimitTypeEnum.AMOUNT_LIMIT.getCommText(),coupon.getUseLimitValue().intValue())); | ||
78 | - }else{ | ||
79 | - couponSimpleBo.setUseRule(CouponUseLimitTypeEnum.NON_LIMIT.getCommText()); | ||
80 | - } | ||
81 | couponSimpleBo.setCouponToken(coupon.getCouponToken()); | 77 | couponSimpleBo.setCouponToken(coupon.getCouponToken()); |
82 | 78 | ||
83 | return couponSimpleBo; | 79 | return couponSimpleBo; |
-
Please register or login to post a comment