From 39afdf01d09bb978c7d45103372f6584919b626e Mon Sep 17 00:00:00 2001 From: wjt Date: Fri, 9 Jun 2023 18:19:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=AA=E8=B5=94=E4=BB=98=E6=8A=95=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/agent/service/impl/CustomManageServiceImpl.java | 3 +++ .../telemarkting/service/impl/TelephoneCallServiceImpl.java | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ad-platform-manage/ad-platform-management/src/main/java/com/baiye/modules/agent/service/impl/CustomManageServiceImpl.java b/ad-platform-manage/ad-platform-management/src/main/java/com/baiye/modules/agent/service/impl/CustomManageServiceImpl.java index 6a968462..52376d99 100644 --- a/ad-platform-manage/ad-platform-management/src/main/java/com/baiye/modules/agent/service/impl/CustomManageServiceImpl.java +++ b/ad-platform-manage/ad-platform-management/src/main/java/com/baiye/modules/agent/service/impl/CustomManageServiceImpl.java @@ -385,6 +385,9 @@ public class CustomManageServiceImpl implements CustomManageService { @Transactional(rollbackFor = Exception.class) public List disableChannelCustom(Long userId) { ChannelCustom custom = channelCustomRepository.findByUserId(userId); + if (ObjectUtil.isEmpty(custom)) { + return null; + } List channelCustoms = new ArrayList<>(); List num = new ArrayList<>(); List bill = new ArrayList<>(); diff --git a/ad-platform-manage/ad-platform-management/src/main/java/com/baiye/modules/telemarkting/service/impl/TelephoneCallServiceImpl.java b/ad-platform-manage/ad-platform-management/src/main/java/com/baiye/modules/telemarkting/service/impl/TelephoneCallServiceImpl.java index 2436eaaa..06bccc37 100644 --- a/ad-platform-manage/ad-platform-management/src/main/java/com/baiye/modules/telemarkting/service/impl/TelephoneCallServiceImpl.java +++ b/ad-platform-manage/ad-platform-management/src/main/java/com/baiye/modules/telemarkting/service/impl/TelephoneCallServiceImpl.java @@ -430,7 +430,8 @@ public class TelephoneCallServiceImpl implements TelephoneCallService { CompletableFuture.runAsync(() -> updateSourceCallStatus(allCallInfo.getClueId(), DefaultNumberConstants.ONE_NUMBER, allCallInfo.getClueType(), traceId)); status = false; } - if (Arrays.asList(ClueTypeConstants.TOKER_TYPE).contains(allCallInfo.getClueType())) { + //投流的才能享受赔付 + if (allCallInfo.getClueType() == DefaultNumberConstants.FOUR_NUMBER) { ClueBoostDTO clueBoostDTO = new ClueBoostDTO().addClueBoostDTO(allCallInfo.getClueId(), allCallInfo.getMemberId(), whichUserId, allCallInfo.getClueType(), null); clueBoostDTO.setStatus(status); applicationContext.publishEvent(clueBoostDTO);