feiyu02
2024-08-29 e6cc379fbef57277568ee667ec07a508b3dcc479
src/main/kotlin/com/flightfeather/uav/model/epw/TimeSection.kt
@@ -2,16 +2,13 @@
import com.flightfeather.uav.lightshare.bean.CompanySOP
import com.flightfeather.uav.lightshare.bean.DataVo
import com.flightfeather.uav.model.BaseEffect
import com.flightfeather.uav.model.BaseSection
import com.flightfeather.uav.model.BaseTag
import com.flightfeather.uav.model.TimeTag
import com.flightfeather.uav.model.*
/**
 * 时段分类统计
 * [6,9,12,14,17,20]; [6,9)为早上,之后依次为上午,中午,下午,傍晚和晚上
 */
class TimeSection : BaseSection<DataVo, CompanySOP>() {
class TimeSection : BaseSection<DataVo, BaseSOP>() {
    override val sectionValues: List<Double> = listOf(6.0, 9.0, 12.0, 14.0, 17.0, 20.0)
@@ -21,7 +18,7 @@
    override val constType: List<String> = listOf("综合")
    override fun onSectionValue(mData: DataVo, sop: CompanySOP, effect: BaseEffect): Double {
    override fun onSectionValue(mData: DataVo, sop: BaseSOP, effect: BaseEffect): Double {
        return getHour(mData.time!!)
    }