From 26c78132ccaedc1751b6eaf455fcd67445fd2381 Mon Sep 17 00:00:00 2001 From: xiaohanzi Date: Tue, 1 Dec 2020 09:25:20 +0800 Subject: [PATCH] fix bug --- .../com/iformall/service/impl/WxCouponChannelServiceImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxCouponChannelServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxCouponChannelServiceImpl.java index 82e4a3294..2faa64fbb 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxCouponChannelServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxCouponChannelServiceImpl.java @@ -149,7 +149,8 @@ public class WxCouponChannelServiceImpl implements WxCouponChannelService { WxMall mall = wxMallMapper.getByTenantId(tenantEntity.getTenantId()); if (mall.getSaleType().intValue() == 4 ) { if (null != type && (type.equals(String.valueOf(EnumCouponType.COUPON_PRESS.getCode().intValue())) - || type.equals(String.valueOf(EnumCouponType.COUPON_GROUP.getCode().intValue())))) { + || type.equals(String.valueOf(EnumCouponType.COUPON_GROUP.getCode().intValue())) + || type.equals(String.valueOf(EnumCouponType.COUPON_PREORDER.getCode().intValue())))) { if (null != ids && ids.length > 1) { return new ResultData(ErrorCode.COUPON_CHANNEL_IS_EXISTED.getCode(),"该版本【拼团】、【砍价】、【限时抢购】、【预售】线上只能投放一个,请勾选一个。"); }