只赔付投流

master
wjt 1 year ago
parent 5a7926e062
commit 39afdf01d0

@ -385,6 +385,9 @@ public class CustomManageServiceImpl implements CustomManageService {
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
public List<Long> disableChannelCustom(Long userId) { public List<Long> disableChannelCustom(Long userId) {
ChannelCustom custom = channelCustomRepository.findByUserId(userId); ChannelCustom custom = channelCustomRepository.findByUserId(userId);
if (ObjectUtil.isEmpty(custom)) {
return null;
}
List<ChannelCustom> channelCustoms = new ArrayList<>(); List<ChannelCustom> channelCustoms = new ArrayList<>();
List<Integer> num = new ArrayList<>(); List<Integer> num = new ArrayList<>();
List<Integer> bill = new ArrayList<>(); List<Integer> bill = new ArrayList<>();

@ -430,7 +430,8 @@ public class TelephoneCallServiceImpl implements TelephoneCallService {
CompletableFuture.runAsync(() -> updateSourceCallStatus(allCallInfo.getClueId(), DefaultNumberConstants.ONE_NUMBER, allCallInfo.getClueType(), traceId)); CompletableFuture.runAsync(() -> updateSourceCallStatus(allCallInfo.getClueId(), DefaultNumberConstants.ONE_NUMBER, allCallInfo.getClueType(), traceId));
status = false; 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 clueBoostDTO = new ClueBoostDTO().addClueBoostDTO(allCallInfo.getClueId(), allCallInfo.getMemberId(), whichUserId, allCallInfo.getClueType(), null);
clueBoostDTO.setStatus(status); clueBoostDTO.setStatus(status);
applicationContext.publishEvent(clueBoostDTO); applicationContext.publishEvent(clueBoostDTO);

Loading…
Cancel
Save