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)
|
}
|
}
|