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/datasource/AopSceneTypeCheck.kt | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/cn/flightfeather/supervision/business/autooutput/datasource/AopSceneTypeCheck.kt b/src/main/kotlin/cn/flightfeather/supervision/business/autooutput/datasource/AopSceneTypeCheck.kt index dd7f6fa..b819f36 100644 --- a/src/main/kotlin/cn/flightfeather/supervision/business/autooutput/datasource/AopSceneTypeCheck.kt +++ b/src/main/kotlin/cn/flightfeather/supervision/business/autooutput/datasource/AopSceneTypeCheck.kt @@ -17,12 +17,12 @@ * 鍦烘櫙绫诲瀷鍒ゅ畾 * @return 鍒ゆ柇缁撴灉锛岋紙鏄惁浣跨敤鏈郴缁熷畾涔夛紝绫诲瀷鍊硷級 */ - fun checkSceneType(sceneType: Int): Pair<Boolean, Int> { + fun checkSceneType(sceneType: Int?): Pair<Boolean, Int?> { // TODO: 2023/9/7 閫氳繃鏁版嵁搴撻厤缃〃鍐冲畾褰撳墠绫诲瀷鐨勬渶缁堢被鍨嬪畾涔� // FIXME: 2023/9/7 鏆傛椂鍐欐鐩稿叧閰嶇疆 - return if (sceneType.toString() == Constant.ScenseType.TYPE6.value) { - Pair(false, Constant.ScenseType.typeMap(sceneType.toByte())!!.toInt()) + return if (sceneType.toString() == Constant.SceneType.TYPE6.value) { + Pair(false, Constant.SceneType.typeMap(sceneType?.toByte())!!.toInt()) } else { Pair(true, sceneType) } -- Gitblit v1.9.3