feiyu02
2024-07-05 b2e89ca1b11f33417f3e83223c4aa188186c8155
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package com.flightfeather.uav.domain.repository
 
import com.flightfeather.uav.domain.entity.SegmentInfo
import com.flightfeather.uav.domain.mapper.SegmentInfoMapper
import org.springframework.stereotype.Repository
 
/**
 * 轨迹分隔数据库操作
 * @date 2024/7/4
 * @author feiyu02
 */
@Repository
class SegmentInfoRep(private val segmentInfoMapper: SegmentInfoMapper) {
 
    fun insert(list: List<SegmentInfo>):Int {
        return segmentInfoMapper.insertList(list)
    }
 
    fun findList(segmentInfo: SegmentInfo): List<SegmentInfo?> {
        return segmentInfoMapper.select(segmentInfo)
    }
}