feiyu02
2024-04-25 0392c333ed3d987cb2ab3dac4e1a972cff405f21
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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)
    }
}