| | |
| | | package cn.flightfeather.supervision.lightshare.service.impl |
| | | |
| | | import cn.flightfeather.supervision.business.AutoScore2 |
| | | import cn.flightfeather.supervision.business.storage.StAutoScore |
| | | import cn.flightfeather.supervision.domain.ds1.entity.Domainitem |
| | | import cn.flightfeather.supervision.domain.ds1.entity.Evaluation |
| | | import cn.flightfeather.supervision.domain.ds1.entity.Subtask |
| | |
| | | lateinit var domainitemMapper: DomainitemMapper |
| | | @Autowired |
| | | lateinit var subtaskMapper: SubtaskMapper |
| | | @Autowired |
| | | lateinit var autoScore: StAutoScore |
| | | private var isAutoScoreRunning = false |
| | | |
| | | //获取某顶层任务下某个场景的街道评分排名 |
| | | override fun getRankOfTown(tguid: String, scensetypeid: String?): List<AreaVo> { |
| | |
| | | return resultList |
| | | } |
| | | |
| | | override fun autoScore3(tGuid: String, sceneTypeId: String): String { |
| | | if (isAutoScoreRunning) return "自动评分执行中,请等待完成" |
| | | isAutoScoreRunning = true |
| | | val t = Constant.ScenseType.getByValue(sceneTypeId) |
| | | autoScore.sceneType = t |
| | | autoScore.topTaskGrade(tGuid) |
| | | isAutoScoreRunning = false |
| | | return "自动评分完成" |
| | | } |
| | | |
| | | override fun findByInspectionId(inspectionId: String): List<Evaluation> { |
| | | return evaluationMapper.selectByExample(Example(Evaluation::class.java).apply { |
| | | createCriteria().andEqualTo("iguid", inspectionId) |