package com.mh.user.dto; import com.fasterxml.jackson.annotation.JsonFormat; import lombok.Getter; import lombok.Setter; import java.math.BigDecimal; import java.util.Date; import java.util.StringJoiner; /** * @author LJF * @version 1.0 * @project EEMCS * @description 生活热水系统控制界面VO * @date 2025-03-14 09:00:37 */ @Setter @Getter public class HotWaterDeviceControlVO { private String id; private String name; private int orderNum; // 累计读数 @JsonFormat(shape = JsonFormat.Shape.STRING) private BigDecimal totalReading; private String totalReadingId; // 当前时间 @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") private Date currentTime; private String currentTimeId; /** * 通讯失败 */ private int communicationFailure; private String communicationFailureId; /** * 通讯失败次数 * @return */ private int communicationFailureCount; private String communicationFailureCountId; /** * modbus 复位 */ private int reset; private String resetId; @Override public String toString() { return new StringJoiner(", ", HotWaterDeviceControlVO.class.getSimpleName() + "[", "]") .add("id='" + id + "'") .add("name='" + name + "'") .add("orderNum=" + orderNum) .add("totalReading=" + totalReading) .add("totalReadingId='" + totalReadingId + "'") .add("currentTime=" + currentTime) .add("currentTimeId='" + currentTimeId + "'") .toString(); } }