Newer
Older
newfiber-data-adapter / src / main / java / org / springnewfiber / dataadapter / xf / entity / WhjkSzqDto.java
package org.springnewfiber.dataadapter.xf.entity;

import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
@Data
public class WhjkSzqDto {
    @ApiModelProperty(value = "船舶编号")
    private String bid;
    @ApiModelProperty(value = "湖泊名称")
    private String lknm;
    @ApiModelProperty(value = "时间")
    private Date tm;
    @ApiModelProperty(value = "水温")
    private BigDecimal wt;
    @ApiModelProperty(value = "化学需氧量")
    private BigDecimal codcr;
    @ApiModelProperty(value = "溶解氧")
    private BigDecimal dox;
    @ApiModelProperty(value = "浊度")
    private BigDecimal turb;
    @ApiModelProperty(value = "电导率")
    private BigDecimal cond;
    @ApiModelProperty(value = "酸碱度")
    private BigDecimal ph;
    @ApiModelProperty(value = "氨氮")
    private BigDecimal nh3n;
    @ApiModelProperty(value = "氧化还原电位")
    private BigDecimal redox;
    @ApiModelProperty(value = "水深(m)")
    private BigDecimal dpz;
    @ApiModelProperty(value = "风速(m/s)")
    private BigDecimal wind_speed;
    @ApiModelProperty(value = "风向(°)")
    private BigDecimal wind_angle;
    @ApiModelProperty(value = "降雨量(mm)")
    private BigDecimal drp;
    @ApiModelProperty(value = "船速(m/s)")
    private BigDecimal speed;
    @ApiModelProperty(value = "气温(℃)")
    private BigDecimal tem;
    @ApiModelProperty(value = "大气压(Pa)")
    private BigDecimal pre;
    @ApiModelProperty(value = "湿度(%RH)")
    private BigDecimal rhu;
    @ApiModelProperty(value = "光照强度(Lux)")
    private BigDecimal imli;
    @ApiModelProperty(value = "经度")
    private BigDecimal lgtd;
    @ApiModelProperty(value = "纬度")
    private BigDecimal lttd;
    @ApiModelProperty(value = "地磁角度(°)")
    private BigDecimal geo;
    /**
     * 叶绿素
     */
    private BigDecimal chl;
    
    public static WhjkSzqData dataToDto(WhjkSzqDto data) {
        WhjkSzqData dto = new WhjkSzqData();
        BeanUtil.copyProperties(data, dto);
        dto.setStnm(data.getLknm());
        dto.setStcd(data.getBid());
        return dto;
    }
}