|
|
|
@@ -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) { |
|
|
|
|