| | |
| | | import com.flightfeather.uav.biz.dataanalysis.model.ExceptionType |
| | | import com.flightfeather.uav.common.utils.DateUtil |
| | | import com.flightfeather.uav.common.utils.MapUtil |
| | | import com.flightfeather.uav.domain.entity.BaseRealTimeData |
| | | import com.flightfeather.uav.domain.entity.SceneInfo |
| | | import com.flightfeather.uav.domain.repository.SceneInfoRep |
| | | import com.flightfeather.uav.lightshare.bean.AreaVo |
| | |
| | | import com.flightfeather.uav.socket.eunm.FactorType |
| | | import org.springframework.beans.BeanUtils |
| | | import org.springframework.web.context.ContextLoader |
| | | import kotlin.math.round |
| | | |
| | | /** |
| | | * 污染来源 |
| | |
| | | pollutedData.statisticMap.entries.forEach { s -> |
| | | val txtArr = mutableListOf<String>() |
| | | s.value.excGroup?.forEach exception@{ p -> |
| | | val preValue = p.getFirstDataValue() |
| | | val curValue = p.getLastDataValue() |
| | | val per = p.per?.times(100) |
| | | val preValue = p.firstDataValue() |
| | | val curValue = p.lastDataValue() |
| | | val per = round(p.per?.times(100) ?: .0) |
| | | val rate = p.rate |
| | | if (preValue == null || curValue == null || per == null) return@exception |
| | | when (pollutedData.exceptionType) { |