xiaohanzi 5 лет назад
Родитель
Сommit
a97f1c30e6
1 измененных файлов: 4 добавлений и 4 удалений
  1. +4
    -4
      mallinkService/src/main/java/com/iformall/service/impl/WxCouponChannelServiceImpl.java

+ 4
- 4
mallinkService/src/main/java/com/iformall/service/impl/WxCouponChannelServiceImpl.java Просмотреть файл

@@ -148,12 +148,12 @@ public class WxCouponChannelServiceImpl implements WxCouponChannelService {
//如果当前版本是推广版,则线上只能有一个拼团,一个砍价
WxMall mall = wxMallMapper.getByTenantId(tenantEntity.getTenantId());
if (mall.getSaleType().intValue() == 4 ) {
if (null != ids && ids.length > 1) {
return new ResultData(ErrorCode.COUPON_CHANNEL_IS_EXISTED.getCode(),"该版本【拼团】、【砍价】线上只能投放一个,请勾选一个。");
}
if (null != type && (type.equals(String.valueOf(EnumCouponType.COUPON_PRESS.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();
record.updateTenantInfo(tenantEntity);
record.setStatus(EnumCouponChannelStatus.STATUS_THROW_IN.getCode());


Загрузка…
Отмена
Сохранить