| @@ -150,13 +150,17 @@ public class WxCouponChannelServiceImpl implements WxCouponChannelService { | |||||
| if (mall.getSaleType().intValue() == 4 ) { | if (mall.getSaleType().intValue() == 4 ) { | ||||
| if (null != type && (type.equals(String.valueOf(EnumCouponType.COUPON_PRESS.getCode().intValue())) | 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())))) { | ||||
| if (null != ids && ids.length > 1) { | |||||
| return new ResultData(ErrorCode.COUPON_CHANNEL_IS_EXISTED.getCode(),"该版本【拼团】、【砍价】线上只能投放一个,请勾选一个。"); | |||||
| } | |||||
| WxCouponChannel record = new WxCouponChannel(); | WxCouponChannel record = new WxCouponChannel(); | ||||
| record.updateTenantInfo(tenantEntity); | record.updateTenantInfo(tenantEntity); | ||||
| record.setStatus(EnumCouponChannelStatus.STATUS_THROW_IN.getCode()); | record.setStatus(EnumCouponChannelStatus.STATUS_THROW_IN.getCode()); | ||||
| record.setType(Integer.parseInt(type)); | record.setType(Integer.parseInt(type)); | ||||
| List<WxCouponChannelVo> list = wxCouponChannelMapper.findVoList(record); | List<WxCouponChannelVo> list = wxCouponChannelMapper.findVoList(record); | ||||
| if (null != list && list.size() > 0 ) { | if (null != list && list.size() > 0 ) { | ||||
| return new ResultData(ErrorCode.COUPON_CHANNEL_IS_EXISTED.getCode(),"该版本【拼团】、【砍价】线上只能发布一个。"); | |||||
| return new ResultData(ErrorCode.COUPON_CHANNEL_IS_EXISTED.getCode(),"该版本【拼团】、【砍价】线上只能投放一个,已经存在已上线的活动,不能再投放。"); | |||||
| } | } | ||||
| } | } | ||||
| } | } | ||||