feiyu02
2025-09-19 7cbe1610b87da19ed8a146a09b1117f92d9d3d98
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
package cn.flightfeather.supervision.domain.ds1.repository
 
import cn.flightfeather.supervision.domain.ds1.entity.Problemlist
import cn.flightfeather.supervision.domain.ds1.mapper.ProblemlistMapper
import cn.flightfeather.supervision.lightshare.vo.AreaVo
import cn.flightfeather.supervision.lightshare.vo.SceneProblemSummary
import org.springframework.stereotype.Repository
 
@Repository
class ProblemRep(private val problemlistMapper: ProblemlistMapper) {
 
 
    fun insert(problemlist: Problemlist): Int {
        return problemlistMapper.insert(problemlist)
    }
 
    fun update(problemlist: Problemlist): Int {
        return problemlistMapper.updateByPrimaryKey(problemlist)
    }
 
    fun find(problemlist: Problemlist): List<Problemlist?> {
        return problemlistMapper.select(problemlist)
    }
 
    /**
     * 获取各场景的问题和整改数量统计
     */
    fun selectSceneProSummary(areaVo: AreaVo): List<SceneProblemSummary> {
        return problemlistMapper.getSceneProSummary(areaVo)
    }
 
    fun findOne(guid: String?): Problemlist? {
        return problemlistMapper.selectByPrimaryKey(guid)
    }
 
    fun selectProPic() {
 
    }
}