feiyu02
2024-01-10 30a53b41f09d2eefd33513a409d472c2166ba1ea
src/main/kotlin/cn/flightfeather/supervision/common/utils/Constant.kt
@@ -85,6 +85,47 @@
        }
    }
    enum class  SceneTypeTZ(val value: Int, val des: String) {
        NoType(0, "无类型"),
        Restaurant(1, "餐饮"),
        Construction(2, "工地"),
        Wharf(3, "码头"),
        StorageYard(4, "堆场"),
        MixingPlant(5, "搅拌站"),
        Industrial(6, "工业企业"),
        VehicleRepair(7, "汽修"),
        Laboratory(8, "实验室"),
        MedicalInstitution(9, "医疗机构");
        companion object {
            fun getNameByValue(value: Int?): String = when (value) {
                0 -> NoType.des
                1 -> Restaurant.des
                2 -> Construction.des
                3 -> Wharf.des
                4 -> StorageYard.des
                5 -> MixingPlant.des
                6 -> Industrial.des
                7 -> VehicleRepair.des
                8 -> Laboratory.des
                9 -> MedicalInstitution.des
                else -> NoType.des
            }
            fun toPairList() = listOf(
                Pair(Restaurant.value.toString(), Restaurant.des),
                Pair(Construction.value.toString(), Construction.des),
                Pair(Wharf.value.toString(), Wharf.des),
                Pair(StorageYard.value.toString(), StorageYard.des),
                Pair(MixingPlant.value.toString(), MixingPlant.des),
                Pair(Industrial.value.toString(), Industrial.des),
                Pair(VehicleRepair.value.toString(), VehicleRepair.des),
                Pair(Laboratory.value.toString(), Laboratory.des),
                Pair(MedicalInstitution.value.toString(), MedicalInstitution.des),
            )
        }
    }
    companion object {
        //问题审核
        const val PROBLEM_CHECK_PASS = "pass"//问题审核通过