feiyu02
2025-08-14 f373bbf83d9d2a7e5f96118d7dcd658c9fea8bc8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
package cn.flightfeather.supervision.domain.ds1.mapper
 
import cn.flightfeather.supervision.domain.ds1.entity.Problemlist
import cn.flightfeather.supervision.domain.util.MyMapper
import cn.flightfeather.supervision.lightshare.vo.AreaVo
import cn.flightfeather.supervision.lightshare.vo.SceneProblemSummary
import cn.flightfeather.supervision.lightshare.vo.StatisticsVo
import cn.flightfeather.supervision.lightshare.vo.UnChangedPro
import org.apache.ibatis.annotations.Mapper
import kotlin.reflect.jvm.internal.impl.load.kotlin.JvmType
 
@Mapper
interface ProblemlistMapper : MyMapper<Problemlist> {
 
    /**
     * 获取某时间段内、某个区县的某种场景下,各类型的问题数量统计
     */
    fun getStatisticalResult(areaVo: AreaVo): List<StatisticsVo>
 
    fun getStatisticalResultById(topTaskId: String?, sceneTypeId: String?): List<Map<String, JvmType.Object>>
 
    /**
     * 获取某顶层任务、某场景类型下的问题数及整改数
     * @param topTaskId 顶层任务主键id
     * @param sceneType 场景类型id
     */
    fun getChangeResult(topTaskId: String?, sceneType: String?): List<Map<String, JvmType.Object>>
 
    fun getScoreResult(topTaskId: String?, sceneType: String?): List<Map<String, JvmType.Object>>
 
    fun selectSE(sql: String): String
 
    //根据场景id和顶层任务id 获取所有问题
    fun getProblemByScene(sceneId: String, taskId: String): List<Problemlist>
 
 
    /**
     * 通过ID查找 月问题列表
     */
    fun findMonthProblemById(taskId: String, sceneType: Int?): List<Map<String, JvmType.Object?>>
 
    /**
     * 通过日任务id查找未整改完成的子任务数,返回的是每个子任务未完成整改的问题数
     */
    fun findUnchangedCount(dayTaskId: String): List<Int>
 
    /**
     * 查找问题生成时间在给定时间之前的所有问题
     */
    fun getUnChangedProblem(deadLine: String): List<UnChangedPro>
 
    /**
     * 获取场景问题统计
     */
    fun getSceneProSummary(areaVo: AreaVo): List<SceneProblemSummary>
}