From c55c9a51cea46caea88b2bee5cc3c9ddaa9fc468 Mon Sep 17 00:00:00 2001 From: hcong <1050828145@qq.com> Date: 星期三, 11 十二月 2024 08:44:22 +0800 Subject: [PATCH] 1. 新增 BaseExcel.kt 和 BaseTemplate.kt 的 toObject输出到对象方法 2. 新增 BaseTemplate 是否执行的状态属性 3. 在cn.flightfeather.supervision.business.report.bean包下新增 BaseTemplateResult.kt 结果对象抽象类 以及 ProAnalysisSummaryResult.kt 和 ProDetailSummaryResult.kt 对应实现:问题整改动态跟踪和分街镇问题整改分析的中间结果对象 注:除了问题整改动态跟踪和分街镇问题整改分析其他的汇总表对象中都没有对应中间结果对象,因此这里还有报错信息 --- src/main/kotlin/cn/flightfeather/supervision/business/autooutput/score/restaurant/ReScoreItem7.kt | 19 +++---------------- 1 files changed, 3 insertions(+), 16 deletions(-) diff --git a/src/main/kotlin/cn/flightfeather/supervision/business/autooutput/score/restaurant/ReScoreItem7.kt b/src/main/kotlin/cn/flightfeather/supervision/business/autooutput/score/restaurant/ReScoreItem7.kt index 24b01a8..965ba77 100644 --- a/src/main/kotlin/cn/flightfeather/supervision/business/autooutput/score/restaurant/ReScoreItem7.kt +++ b/src/main/kotlin/cn/flightfeather/supervision/business/autooutput/score/restaurant/ReScoreItem7.kt @@ -1,8 +1,6 @@ package cn.flightfeather.supervision.business.autooutput.score.restaurant import cn.flightfeather.supervision.business.autooutput.score.ScoreItem -import cn.flightfeather.supervision.domain.ds1.entity.Evaluationsubrule -import cn.flightfeather.supervision.domain.ds1.entity.Evaluationsubrule2 import cn.flightfeather.supervision.domain.ds2.entity.LedgerRecord import cn.flightfeather.supervision.domain.ds2.entity.LedgerSubType import cn.flightfeather.supervision.domain.ds2.mapper.LedgerRecordMapper @@ -12,19 +10,10 @@ import tk.mybatis.mapper.entity.Example import java.time.LocalDateTime import java.time.ZoneId -import javax.annotation.PostConstruct +@Deprecated(level = DeprecationLevel.HIDDEN, message = "鍙拌处鐨勮瘎浼伴�氳繃宸℃煡闂鑷姩瀵瑰簲") @Component class ReScoreItem7: ScoreItem() { - companion object { - private lateinit var instance: ReScoreItem7 - } - - @PostConstruct - fun init() { - instance = this - } - init { exemption = true } @@ -46,7 +35,7 @@ * 2.鍙拌处灏戦噺缂哄け鎴栨湭鍙婃椂璁板綍鏇存柊 * 3.鍙拌处涓ラ噸缂哄け鎴栧叧閿彴璐︽棤鏁� */ - override fun otherProblem(size: Int): Int? { + override fun otherProblem(size: Int): List<Int>? { // TODO: 2021/3/9 鎵惧嚭鐢ㄦ埛绫诲瀷瀵瑰簲鐨勫繀濉彴璐� val time = evaluationScene.subTask.value?.planstarttime val lt = LocalDateTime.ofInstant(time?.toInstant(), ZoneId.systemDefault()) @@ -66,13 +55,11 @@ var i = 1 if (condition1(ledgerTypeCount, rCount)) { if (i > size - 1) i = size - 1 - return i } else if (condition2(ledgerTypeCount, rCount)) { i = 2 if (i > size - 1) i = size - 1 - return i } - return null + return listOf(i) } /** -- Gitblit v1.9.3