package cn.flightfeather.supervision.domain.ds1.repository
|
|
import cn.flightfeather.supervision.domain.ds1.entity.Subtask
|
import cn.flightfeather.supervision.domain.ds1.mapper.SubtaskMapper
|
import org.springframework.stereotype.Repository
|
|
@Repository
|
class SubTaskRep(private val subtaskMapper: SubtaskMapper) {
|
|
|
fun find(id:String): Subtask? {
|
return subtaskMapper.selectByPrimaryKey(id)
|
}
|
/**
|
* 根据总任务、场景类型、问题类型,获取发现该种类问题的场景信息
|
*/
|
fun findSubtasks(topTaskId: String, sceneTypeId:String, proType: String): List<Subtask?> {
|
return subtaskMapper.findSubTasksByProType(topTaskId, sceneTypeId, proType)
|
}
|
}
|