From b6c29718e10e25a6a49fe9538f554371e1560720 Mon Sep 17 00:00:00 2001 From: feiyu02 <risaku@163.com> Date: 星期一, 25 七月 2022 15:50:22 +0800 Subject: [PATCH] 1. 调试监管统计文件下载接口; 2. 新增自动评分刷新接口; 3. 针对前端页面,调整部分接口 --- src/main/kotlin/cn/flightfeather/supervision/lightshare/service/impl/EvaluationServiceImpl.kt | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/src/main/kotlin/cn/flightfeather/supervision/lightshare/service/impl/EvaluationServiceImpl.kt b/src/main/kotlin/cn/flightfeather/supervision/lightshare/service/impl/EvaluationServiceImpl.kt index 6858f47..43af688 100644 --- a/src/main/kotlin/cn/flightfeather/supervision/lightshare/service/impl/EvaluationServiceImpl.kt +++ b/src/main/kotlin/cn/flightfeather/supervision/lightshare/service/impl/EvaluationServiceImpl.kt @@ -1,6 +1,7 @@ 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 @@ -29,6 +30,9 @@ 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> { @@ -244,6 +248,16 @@ 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) -- Gitblit v1.9.3