Browse Source

[C端首页][修改][换一换拼团和砍价]

release_toaliyun_real
gongbiao 6 years ago
parent
commit
e38c8eda1b
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      mallinkService/src/main/java/com/iformall/service/impl/WxCouponChannelServiceImpl.java

+ 5
- 1
mallinkService/src/main/java/com/iformall/service/impl/WxCouponChannelServiceImpl.java View File

@@ -19,10 +19,14 @@ import com.iformall.service.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Scope;
import org.springframework.context.annotation.ScopedProxyMode;
import org.springframework.stereotype.Service;

import java.util.*;

@Scope(value = ConfigurableBeanFactory.SCOPE_PROTOTYPE, proxyMode = ScopedProxyMode.INTERFACES)
@Service
public class WxCouponChannelServiceImpl implements WxCouponChannelService {
private final Logger logger = LoggerFactory.getLogger(this.getClass());
@@ -140,7 +144,7 @@ public class WxCouponChannelServiceImpl implements WxCouponChannelService {
public WxCouponChannelVo change(WxCouponChannel record) {
return wxCouponChannelMapper.findVoList(record).parallelStream()
.filter(wxCouponChannelVo -> !wxCouponChannelVo.getCouponId().equals(record.getCouponId()))
.findAny().orElseGet(null);
.findAny().orElse(null);
}

private boolean isCouponMerchantValid(Long couponId) {


Loading…
Cancel
Save