| | |
| | | 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 |
| | | } |
| | | |
| | |
| | | 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()) |
| | |
| | | } |
| | | } |
| | | } |
| | | 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()) |
| | |
| | | } |
| | | } |
| | | } |
| | | 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()) |
| | |
| | | } |
| | | } |
| | | } |
| | | 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()) |