|
@@ -160,7 +160,7 @@ public class CouponLogic {
|
|
|
couponBean.setCompanyWechatId(adminUser.getCompanyWechatId());
|
|
|
couponService.save(couponBean);
|
|
|
String couponId = couponBean.getCouponId();
|
|
|
- if (couponBean.getCouponType().trim().equals(CouponTypeEnum.GOODS.getRemark()) && couponBean.getGoodsList() != null) {
|
|
|
+ if (couponBean.getCouponType().trim().equals(CouponTypeEnum.GOODS.getKey()) && couponBean.getGoodsList() != null) {
|
|
|
List<CouponGoods> couponGoodsList = new ArrayList<>();
|
|
|
for (CouponGoods couponGoods : couponBean.getGoodsList()) {
|
|
|
couponGoods.setCouponId(couponId);
|