Commit efab32907a2dc2f7208dd1a692e616ac71c836cf

Authored by Kurisu
2 parents 40af9bba b287d918

Merge remote-tracking branch 'origin/test'

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 /**
... ...