Commit a2ed032c72df475b7c6185372332dbba9164737c

Authored by 张志伟
1 parent 4763ee92

:fire: feat(*): bug修复

- bug修复
fw-valhalla-service/src/main/java/cn/fw/valhalla/service/bus/ipt/CustomerInitClueBizService.kt
... ... @@ -15,6 +15,7 @@ import cn.fw.valhalla.rpc.pstn.PstnRpcService
15 15 import cn.fw.valhalla.service.data.CustomerInitClueCallLogService
16 16 import cn.fw.valhalla.service.data.CustomerInitClueService
17 17 import com.baomidou.mybatisplus.extension.kotlin.KtQueryWrapper
  18 +import com.baomidou.mybatisplus.extension.kotlin.KtUpdateWrapper
18 19 import kotlinx.coroutines.*
19 20 import org.springframework.beans.factory.annotation.Value
20 21 import org.springframework.data.redis.core.StringRedisTemplate
... ... @@ -176,7 +177,12 @@ class CustomerInitClueBizService(
176 177 idStr = stringRedisTemplate.opsForSet().pop(key)
177 178 }
178 179 if (idList.isNotEmpty()) {
179   - customerInitClueService.removeByIds(idList)
  180 + customerInitClueService.update(
  181 + KtUpdateWrapper(CustomerInitClue::class.java)
  182 + .set(CustomerInitClue::yn, false)
  183 + .eq(CustomerInitClue::yn, true)
  184 + .`in`(CustomerInitClue::id, idList)
  185 + )
180 186 }
181 187 }
182 188 }
... ...