| | |
| | | @Autowired |
| | | lateinit var subtaskService: SubtaskService |
| | | |
| | | private val dateUtil = DateUtil() |
| | | |
| | | //获取污染场景版本主页的监管情况展示内容 |
| | | override fun getInspectionInfoByScene(sceneId: String, topTaskId: String): InspectionInfoVo? { |
| | | val resList = inspectionMapper.getInspectionInfoByScene(sceneId, topTaskId) |
| | |
| | | } |
| | | |
| | | //根据巡查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!!) |
| | |
| | | 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() |
| | | //************************** |