1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
| package cn.flightfeather.thirdappmodule.model.enumreation
|
| /**
| * @author riku
| * Date: 2020/12/22
| */
| enum class SceneType(val value: Int, val des: String) {
| Construction(1, "工地"),
| Wharf(2, "码头"),
| MixingPlant(3, "搅拌站"),
| Industrial(4, "工业企业"),
| Restaurant(5, "餐饮企业"),
| VehicleRepair(6, "汽修"),
| SCENE_TYPE7(7, "降尘点"),
| SCENE_TYPE8(8, "空气质量监测点"),
| SCENE_TYPE9(9, "道路扬尘监测点"),
| SCENE_TYPE10(10, "道路"),
| SCENE_TYPE11(11, "河流断面"),
| SCENE_TYPE12(12, "工业园区"),
| SCENE_TYPE13(13, "无固定场景"),
| StorageYard(14, "堆场");
|
| companion object {
| /**
| * 本系统中的场景类型id对应飞羽环境系统中的值
| */
| fun typeMap(sceneTypeId: Int) = when (sceneTypeId) {
| Construction.value -> 2
| Wharf.value -> 3
| MixingPlant.value -> 5
| Industrial.value -> 6
| Restaurant.value -> 1
| VehicleRepair.value -> 7
| StorageYard.value -> 4
| else -> sceneTypeId
| }
| }
| }
|
|