package com.example.demo.entity; import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonProperty; import org.springframework.format.annotation.DateTimeFormat; import java.io.Serializable; import java.util.Date; import java.util.List; public class RequestReadingMeterDto implements Serializable { private static final long serialVersionUID = 1L; @JsonProperty("MeterCode") private List MeterCode; //水表表号(传空数组时返回当前最新的全部抄表读数。允许多个值,比如:[“01010001”, “01010002”, “01010003”, “01010004”, ……]返回指定水表表号的指定日期的抄表读数。) @DateTimeFormat(pattern = "yyyy-MM-dd") @JsonFormat(pattern = "yyyy-MM-dd") @JsonProperty("ReadingTime") private Date ReadingTime; //冻结日期(yyyy-MM-dd),如果不传,则默认今天的 @JsonProperty("Account") private AccountDto Account; //鉴权账户信息 public List getMeterCode() { return MeterCode; } public void setMeterCode(List meterCode) { MeterCode = meterCode; } public Date getReadingTime() { return ReadingTime; } public void setReadingTime(Date readingTime) { ReadingTime = readingTime; } public AccountDto getAccount() { return Account; } public void setAccount(AccountDto account) { Account = account; } @Override public String toString() { return "RequestReadingMeterDto{" + "MeterCode=" + MeterCode + ", ReadingTime='" + ReadingTime + '\'' + ", Account=" + Account + '}'; } }