From c1becf4cbd2e99601ce011c14b8742427249cfb4 Mon Sep 17 00:00:00 2001 From: feiyu02 <risaku@163.com> Date: 星期二, 09 一月 2024 17:25:05 +0800 Subject: [PATCH] 1. 多项调整 --- src/main/kotlin/cn/flightfeather/supervision/lightshare/service/impl/ScenseServiceImpl.kt | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main/kotlin/cn/flightfeather/supervision/lightshare/service/impl/ScenseServiceImpl.kt b/src/main/kotlin/cn/flightfeather/supervision/lightshare/service/impl/ScenseServiceImpl.kt index 09bde16..19e54ff 100644 --- a/src/main/kotlin/cn/flightfeather/supervision/lightshare/service/impl/ScenseServiceImpl.kt +++ b/src/main/kotlin/cn/flightfeather/supervision/lightshare/service/impl/ScenseServiceImpl.kt @@ -264,10 +264,10 @@ sceneDetail.scense = scene val mapper = when (scene.typeid.toString()) { - Constant.ScenseType.TYPE1.value -> sceneConstructionSiteMapper - Constant.ScenseType.TYPE2.value -> sceneWharfMapper - Constant.ScenseType.TYPE3.value -> sceneMixingPlantMapper - Constant.ScenseType.TYPE14.value -> sceneStorageYardMapper + Constant.SceneType.TYPE1.value -> sceneConstructionSiteMapper + Constant.SceneType.TYPE2.value -> sceneWharfMapper + Constant.SceneType.TYPE3.value -> sceneMixingPlantMapper + Constant.SceneType.TYPE14.value -> sceneStorageYardMapper else -> null } @@ -304,7 +304,7 @@ var r = 0 var isUpdate = true when (typeId.toString()) { - Constant.ScenseType.TYPE1.value -> { + Constant.SceneType.TYPE1.value -> { val subScene = Gson().fromJson(sceneDetailStr.subScene, SceneConstructionSite::class.java) if (subScene.getsGuid() != null) { val record = sceneConstructionSiteMapper.selectByPrimaryKey(subScene.getsGuid()) @@ -316,7 +316,7 @@ } } } - Constant.ScenseType.TYPE2.value -> { + Constant.SceneType.TYPE2.value -> { val subScene = Gson().fromJson(sceneDetailStr.subScene, SceneWharf::class.java) if (subScene.getsGuid() != null) { val record = sceneWharfMapper.selectByPrimaryKey(subScene.getsGuid()) @@ -328,7 +328,7 @@ } } } - Constant.ScenseType.TYPE3.value -> { + Constant.SceneType.TYPE3.value -> { val subScene = Gson().fromJson(sceneDetailStr.subScene, SceneMixingPlant::class.java) if (subScene.getsGuid() != null) { val record = sceneMixingPlantMapper.selectByPrimaryKey(subScene.getsGuid()) @@ -340,7 +340,7 @@ } } } - Constant.ScenseType.TYPE14.value -> { + Constant.SceneType.TYPE14.value -> { val subScene = Gson().fromJson(sceneDetailStr.subScene, SceneStorageYard::class.java) if (subScene.getsGuid() != null) { val record = sceneStorageYardMapper.selectByPrimaryKey(subScene.getsGuid()) -- Gitblit v1.9.3