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/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