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

import cn.hutool.core.bean.BeanUtil;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @program: newfiber-data-adapter
 * @description:  分流井
 * @author: djt
 * @create: 2022-08-11 15:27
 **/
@Data
public class DiverterWellDataDto extends BaseXfInterfaceEntity {
    @JsonProperty(value = "z")
    @ApiModelProperty(value = "井内液位m")
    private String jnyw;
    @JsonProperty(value = "z")
    @ApiModelProperty(value = "井外液位m")
    private String jwyw;
    @JsonProperty(value = "codcr")
    @ApiModelProperty(value = "COD,mg/L")
    private String codcr;
    @JsonProperty(value = "ylj")
    @ApiModelProperty(value = "前1小时雨量 mm")
    private String ylj;
    @ApiModelProperty(value = "堰门高度m")
    @JsonProperty(value = "ymgd")
    private String ymgd;
    @ApiModelProperty(value = "流量闸门油缸行程,%")
    @JsonProperty(value = "llzmygxc")
    private String llzmygxc;
    @ApiModelProperty(value = "运行方式")
    @JsonProperty(value = "yxzt")
    private String yxzt;
    @ApiModelProperty(value = "供电状态")
    @JsonProperty(value = "gdzt")
    private String gdzt;
    @ApiModelProperty(value = "回油堵塞信号")
    @JsonProperty(value = "hydsxh")
    private String hydsxh;
    @ApiModelProperty(value = "油位低信号")
    @JsonProperty(value = "ywdxh")
    private String ywdxh;
    @ApiModelProperty(value = "高压过滤器堵塞信号")
    @JsonProperty(value = "gyglqdsxh")
    private String gyglqdsxh;
    @ApiModelProperty(value = "压力高1信号")
    @JsonProperty(value = "ylg1xh")
    private String ylg1xh;
    @ApiModelProperty(value = "同步差值,mm")
    @JsonProperty(value = "tbcz")
    private String tbcz;
    @ApiModelProperty(value = "油泵空开状态")
    @JsonProperty(value = "ybkkt")
    private String ybkkt;
    @ApiModelProperty(value = "油泵屏蔽状态")
    @JsonProperty(value = "ybpbzt")
    private String ybpbzt;
    @ApiModelProperty(value = "相序报警")
    @JsonProperty(value = "xxbj")
    private String xxbj;
    @ApiModelProperty(value = "油位低报警")
    @JsonProperty(value = "ywdbj")
    private String ywdbj;
    @ApiModelProperty(value = "液压站1#压力高故障")
    @JsonProperty(value = "yyzylggz")
    private String yyz1ylggz;
    @ApiModelProperty(value = "液压站2#压力高故障")
    @JsonProperty(value = "yyzylggz")
    private String yyz2ylggz;
    @ApiModelProperty(value = "液压站回油过滤器堵塞故障")
    @JsonProperty(value = "yyzhyglqdsgz")
    private String yyzhyglqdsgz;
    @ApiModelProperty(value = "液压站高压过滤器堵塞故障")
    @JsonProperty(value = "yyzgyglqdsgz")
    private String yyzgyglqdsgz;
    @ApiModelProperty(value = "1#油缸座保护故障")
    @JsonProperty(value = "ygzbhgz")
    private String ygzbhgz1;
    @ApiModelProperty(value = "2#油缸座保护故障")
    @JsonProperty(value = "ygzbhgz")
    private String ygzbhgz2;
    @ApiModelProperty(value = "设备状态名称")
    @JsonProperty(value = "gzdm")
    private String gzdm;
    @ApiModelProperty(value = "运行状态名称")
    @JsonProperty(value = "ztdm")
    private String ztdm;
    @ApiModelProperty(value = "液压站压力Mpa")
    @JsonProperty(value = "yyzyl")
    private String yyzyl;
    @ApiModelProperty(value = "液压站累计运行时间 ,分钟")
    @JsonProperty(value = "yyzljyxsjgz")
    private String yyzljyxsjgz;
    @ApiModelProperty(value = "2号液压站压力")
    @JsonProperty(value = "yyz2yl")
    private String yyz2yl;
    @ApiModelProperty(value = "闸门开度")
    private String zmkd;

    public static DiverterWellDataDto dataToDto(DiverterWellData data) {
        DiverterWellDataDto dto = new DiverterWellDataDto();
        BeanUtil.copyProperties(data, dto);
        dto.setStnm(data.getLknm());
        dto.setStcd(data.getDvwid());
        return dto;
    }
}