| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- /**
- *
- */
- package com.xcgl.dataview.entity;
- import java.io.Serializable;
- import java.util.Date;
- import java.util.Random;
- /**
- * @author xzx
- *
- */
- public class GonglvDto implements Serializable {
- /**
- * 设备id
- */
- private String id;
- /**
- * 设备code
- */
- private String code;
- /**
- * 设备name
- */
- private String name;
- /**
- * 功率值
- */
- private Double value;
- /**
- * 取值时间
- */
- private Date valueTime;
- public String getId() {
- return id;
- }
- public void setId(String id) {
- this.id = id;
- }
- public String getCode() {
- return code;
- }
- public void setCode(String code) {
- this.code = code;
- }
- public String getName() {
- return name;
- }
- public void setName(String name) {
- this.name = name;
- }
- public Double getValue() {
- return value;
- }
- public void setValue(Double value) {
- this.value = value;
- }
- public Date getValueTime() {
- return valueTime;
- }
- public void setValueTime(Date valueTime) {
- this.valueTime = valueTime;
- }
-
- public static GonglvDto getDemoInstance(String name) {
- GonglvDto dto = new GonglvDto();
- dto.setName(name);
- Random rand = new Random();
- dto.setValue(rand.nextInt(90)+10.0);
- return dto;
- }
-
- }
|