feiyu02
2024-11-21 9de446b0b83610055437fbc5172d216bb374900f
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)
    }
}