New file |
| | |
| | | package com.dy.pipIrrGlobal.pojoRm; |
| | | |
| | | import com.alibaba.fastjson2.annotation.JSONField; |
| | | import com.alibaba.fastjson2.writer.ObjectWriterImplToString; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.dy.common.po.BaseEntity; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.*; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @Author: liurunyu |
| | | * @Date: 2024/7/8 18:53 |
| | | * @Description 取水口日取水量或漏损量 |
| | | */ |
| | | @TableName(value="rm_intake_amount_day", autoResultMap = true) |
| | | @Data |
| | | @Builder |
| | | @ToString |
| | | @NoArgsConstructor |
| | | @AllArgsConstructor |
| | | @Schema(name = "取水口日取水量或漏损量") |
| | | public class RmIntakeAmountDay implements BaseEntity { |
| | | |
| | | public static final long serialVersionUID = 2024007081854001L; |
| | | /** |
| | | * 主键 |
| | | */ |
| | | @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED) |
| | | @JSONField(serializeUsing= ObjectWriterImplToString.class) |
| | | @TableId(type = IdType.INPUT) |
| | | public Long id; |
| | | |
| | | /** |
| | | * 取水口ID(外键) |
| | | */ |
| | | @Schema(description = "取水口实体外键", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
| | | @JSONField(serializeUsing= ObjectWriterImplToString.class) |
| | | public Long intakeId; |
| | | |
| | | /** |
| | | * 统计日期(yyyy-mm-dd) |
| | | */ |
| | | @Schema(description = "统计日期", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | public Date dt; |
| | | |
| | | /** |
| | | * 日取水量(不包括漏损水量) |
| | | */ |
| | | @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) |
| | | public Double amount; |
| | | |
| | | /** |
| | | * 日取消费金额 |
| | | */ |
| | | @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) |
| | | public Double money; |
| | | |
| | | /** |
| | | * 日取水次数 |
| | | */ |
| | | public Integer times; |
| | | |
| | | /** |
| | | * 累计日漏损水量 |
| | | */ |
| | | @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) |
| | | public Double loss; |
| | | |
| | | /** |
| | | * 最后计水量上报数据接收时间(yyyy-mm-dd hh:mm:ss) |
| | | */ |
| | | @Schema(description = "最后计水量上报数据接收时间", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:SS") |
| | | public Date dtLast; |
| | | |
| | | /** |
| | | * 最后计水量的控制器地址 |
| | | */ |
| | | public String rtuAddrLast; |
| | | |
| | | /** |
| | | * 最后计水量的控制器ID(外键) |
| | | */ |
| | | @JSONField(serializeUsing= ObjectWriterImplToString.class) |
| | | public Long controllerIdLast; |
| | | |
| | | /** |
| | | * 最后计水量时控制器累计水量 |
| | | */ |
| | | @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) |
| | | public Double totalAmountLast; |
| | | |
| | | /** |
| | | * 最后计水量时控制器时钟(yyyy-mm-dd HH:MM:SS) |
| | | */ |
| | | @Schema(description = "最后计水量时控制器时钟", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:SS") |
| | | public Date rtuDtLast; |
| | | |
| | | } |