feiyu02
2024-09-25 0516cba27e632f20efac2752787f38f0c87baafa
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)
    }
}