道路线索应急巡查系统服务后台
feiyu02
2025-09-30 84569abda51ecf6c5549dec4cadee8d043422379
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package com.flightfeather.grid.repository.impl
 
import com.flightfeather.grid.domain.ds1.entity.Clue
import com.flightfeather.grid.domain.ds1.mapper.ClueMapper
import com.flightfeather.grid.repository.ClueRepository
import org.springframework.scheduling.annotation.Async
import org.springframework.stereotype.Repository
 
@Repository
class ClueRepositoryImpl(val clueMapper: ClueMapper) : ClueRepository {
 
    @Async
    override fun insertList(list: List<Clue?>) {
        val sortList = list.sortedBy { it?.cId }
        sortList.forEach {
            try {
                clueMapper.insertSelective(it)
            } catch (e: Exception) {
                println(e.message)
            }
        }
    }
}