feiyu02
昨天 e58a05b78d09bcd4c1a12e8610c5adfc316494e8
src/main/kotlin/com/flightfeather/uav/domain/entity/BaseRealTimeData.kt
@@ -122,7 +122,7 @@
    }
    fun getByFactorType(type: FactorType?): Float? {
        return when (type) {
        val res =  when (type) {
            FactorType.NO2 -> no2
            FactorType.CO -> co
            FactorType.H2S -> h2s
@@ -144,6 +144,7 @@
            FactorType.NO -> no
            else -> null
        }
        return if (res != null) round(res * 100) / 100 else null
    }
}