Commit b287d9186edf7b1b798ae3e09f05ad6bc352fa77
1 parent
416b3fb9
bug修复
- bug修复
Showing
1 changed file
with
6 additions
and
5 deletions
fw-valhalla-service/src/main/java/cn/fw/valhalla/service/bus/ipt/CustomerInitClueBizService.kt
... | ... | @@ -2,7 +2,6 @@ package cn.fw.valhalla.service.bus.ipt |
2 | 2 | |
3 | 3 | import cn.fw.common.data.mybatis.pagination.PageData |
4 | 4 | import cn.fw.common.page.AppPage |
5 | -import cn.fw.common.util.logInfo | |
6 | 5 | import cn.fw.valhalla.domain.db.ipt.CustomerInitClue |
7 | 6 | import cn.fw.valhalla.domain.db.ipt.CustomerInitClueCallLog |
8 | 7 | import cn.fw.valhalla.domain.dto.CallReportDTO |
... | ... | @@ -110,8 +109,10 @@ class CustomerInitClueBizService( |
110 | 109 | .eq(CustomerInitClue::senderMobile, dto.peerNo) |
111 | 110 | } |
112 | 111 | ) |
113 | - return list?.map { | |
114 | - logInfo(it.toString()) | |
112 | + if (list.isNullOrEmpty()) { | |
113 | + return true | |
114 | + } | |
115 | + return list.map { | |
115 | 116 | CustomerInitClueCallLog( |
116 | 117 | clueId = it.id ?: -1, |
117 | 118 | callId = dto.callId, |
... | ... | @@ -119,9 +120,9 @@ class CustomerInitClueBizService( |
119 | 120 | recording = null, |
120 | 121 | uploadTime = dto.callTime |
121 | 122 | ) |
122 | - }?.let { | |
123 | + }.let { | |
123 | 124 | customerInitClueCallLogService.saveBatch(it) |
124 | - } ?: true | |
125 | + } | |
125 | 126 | } |
126 | 127 | |
127 | 128 | /** | ... | ... |