feiyu02
2025-09-17 8c15c9cc0d6474ed77e313258f9b09f7f2d6366e
src/main/kotlin/cn/flightfeather/supervision/lightshare/service/impl/InspectionServiceImpl.kt
@@ -34,8 +34,6 @@
    @Autowired
    lateinit var subtaskService: SubtaskService
    private val dateUtil = DateUtil()
    //获取污染场景版本主页的监管情况展示内容
    override fun getInspectionInfoByScene(sceneId: String, topTaskId: String): InspectionInfoVo? {
        val resList = inspectionMapper.getInspectionInfoByScene(sceneId, topTaskId)
@@ -43,9 +41,9 @@
    }
    //根据巡查ID获取问题列表
    override fun findProblemListById(id: String): MutableList<ProblemlistVo> {
    override fun findProblemListById(id: String): MutableList<ProblemListVo> {
        val problemList = mutableListOf<ProblemlistVo>()
        val problemList = mutableListOf<ProblemListVo>()
        val inspection = inspectionMapper.selectByPrimaryKey(id)
        if (inspection != null) {
            val problemListVo = problemlistService.findByInspectionID(inspection.guid!!)
@@ -78,7 +76,7 @@
        val example = Example(Inspection::class.java)
        val criteria = example.createCriteria()
        criteria.andEqualTo("sguid", id)
        criteria.andLessThan("executionstarttime", DateUtil().StringToDate(date))
        criteria.andLessThan("executionstarttime", DateUtil.StringToDate(date))
        //添加巡查按执行时间排序*****
        example.orderBy("executionstarttime").desc()
        //**************************