feiyu02
2024-01-09 c1becf4cbd2e99601ce011c14b8742427249cfb4
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)
        }