package com.dy.pipIrrGlobal.voRm; import com.dy.common.po.BaseEntity; import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Data; import org.springframework.format.annotation.DateTimeFormat; /** * @author :WuZeYu * @Date :2024/7/24 15:50 * @LastEditTime :2024/7/24 15:50 * @Description */ @Data @Schema(title = "漏损记录视图对象") public class VoLossDay implements BaseEntity { private static final long serialVersionUID = 202407241551001L; @Schema(description = "控制器ID", requiredMode = Schema.RequiredMode.NOT_REQUIRED) private String controllerId; @Schema(description = "取水口ID", requiredMode = Schema.RequiredMode.NOT_REQUIRED) private String intakeId; @Schema(description = "取水口名称", requiredMode = Schema.RequiredMode.NOT_REQUIRED) private String intakeName; @Schema(description = "控制器地址", requiredMode = Schema.RequiredMode.NOT_REQUIRED) private String rtuAddr; @Schema(description = "统计日期(yyyy-mm-dd)", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @DateTimeFormat(pattern = "yyyy-MM-dd") @JsonFormat(pattern = "yyyy-MM-dd") private java.util.Date dt; @Schema(description = "控制器最后上报数据日期时间(yyyy-mm-dd hh:mm:ss)", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") private java.util.Date dtLast; @Schema(description = "控制器时钟(yyyy-mm-dd HH:MM:SS)", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") private java.util.Date dtRtu; @Schema(description = "日漏损流量", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) private Double lossAmount; }