From f565fbc09724992d53ec6632c3e5d1de3325f328 Mon Sep 17 00:00:00 2001 From: feiyu02 <risaku@163.com> Date: 星期四, 11 一月 2024 17:33:44 +0800 Subject: [PATCH] 1. 调整返回接口的异常捕获类为自定义异常类; 2. 修改AreaVo类中时间参数的类型; 3. 新增文档生成任务类型,并新增文档后台生成任务逻辑; --- src/main/kotlin/cn/flightfeather/supervision/business/autooutput/score/restaurant/ReScoreItem7.kt | 6 ++---- 1 files changed, 2 insertions(+), 4 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..b18f272 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 @@ -46,7 +46,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 +66,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