feiyu02
2025-07-23 517296b16b1faf07bc389809387b1937f9415746
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package cn.flightfeather.supervision.domain.ds1.repository
 
import cn.flightfeather.supervision.domain.ds1.entity.Inspection
import cn.flightfeather.supervision.domain.ds1.mapper.InspectionMapper
import org.springframework.stereotype.Repository
 
/**
 * 巡查记录数据库操作
 * @date 2024/9/12
 * @author feiyu02
 */
@Repository
class InspectionRep(private val inspectionMapper: InspectionMapper) {
 
    fun findOne(primaryKey: String): Inspection? {
        return inspectionMapper.selectByPrimaryKey(primaryKey)
    }
 
    fun findOne(inspection: Inspection): Inspection? {
        return inspectionMapper.selectOne(inspection)
    }
}