| | |
| | | package com.flightfeather.uav.lightshare.bean |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonIgnore |
| | | import com.fasterxml.jackson.annotation.JsonInclude |
| | | import com.flightfeather.uav.model.BaseMData |
| | | import com.flightfeather.uav.socket.bean.AirData |
| | |
| | | } |
| | | return null |
| | | } |
| | | |
| | | fun toRowContent(): Array<Any> { |
| | | val row = mutableListOf<Any>() |
| | | row.add(deviceCode ?: "") |
| | | row.add(time ?: "") |
| | | row.add(lng ?: -1.0) |
| | | row.add(lat ?: -1.0) |
| | | values?.forEach { |
| | | if (FactorType.outputFactor(it.factorName)) { |
| | | row.add(it.factorData ?: -1.0) |
| | | // row.add(it.physicalQuantity ?: -1.0) |
| | | } |
| | | } |
| | | return row.toTypedArray() |
| | | } |
| | | |
| | | fun toRowTitle(): Array<String> { |
| | | val list = mutableListOf<String>() |
| | | list.add("编号") |
| | | list.add("采样时间") |
| | | list.add("经度") |
| | | list.add("纬度") |
| | | values?.forEach { |
| | | if (FactorType.outputFactor(it.factorName)) { |
| | | val name = it.factorName ?: "" |
| | | list.add(name) |
| | | // list.add("$name(物理量)") |
| | | } |
| | | } |
| | | return list.toTypedArray() |
| | | } |
| | | } |