package cn.gistack.nky.requestpojo; import cn.gistack.nky.resultpojo.DataResChildrenPo; import lombok.Data; /** * 测点数据 */ @Data public class BDDataPo { /** * 大坝id */ private String damId; /** * 测点id */ private String pointId; /** * 监测量类型 */ private String type; /** * 测点名称 */ private String pointName; /** * 大坝名称 */ private String damName; /** * 类型名称 */ private String typeName; /** * 测点值 */ private Double value; /** * 采集时间 */ private String time; /** * 是否正常数据 0、初次进入;1、正常;2、检验异常 */ private Integer status; /** * 是否粗差1、是;2、否 */ private Integer isError; public BDDataPo(DataResChildrenPo po,String type){ this.damId = po.getRes_cd(); this.pointId = po.getCd(); this.pointName = po.getCd_nm(); this.type = type; if (type.equals( "1")){ //渗压 this.value = po.getSw_val(); this.typeName = "渗压"; }else if (type.equals("2")){ //渗流 this.typeName = "渗流"; }else if (type.equals("3")){ //x this.value = po.getDe(); this.typeName = "X位移"; }else if (type.equals("4")){ //y this.value = po.getDn(); this.typeName = "Y位移"; }else if (type.equals("5")){ //z this.typeName = "Z位移"; this.value = po.getDu(); } this.time = po.getTm(); this.damName = po.getRes_nm(); } }