Просмотр исходного кода

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

release_toaliyun_real
gongbiao 6 лет назад
Родитель
Сommit
e38c8eda1b
1 измененных файлов: 5 добавлений и 1 удалений
  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 Просмотреть файл

@@ -19,10 +19,14 @@ import com.iformall.service.*;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; 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 org.springframework.stereotype.Service;


import java.util.*; import java.util.*;


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


private boolean isCouponMerchantValid(Long couponId) { private boolean isCouponMerchantValid(Long couponId) {


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