RequestReadingMeterDto.java 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. package com.example.demo.entity;
  2. import com.fasterxml.jackson.annotation.JsonFormat;
  3. import com.fasterxml.jackson.annotation.JsonProperty;
  4. import org.springframework.format.annotation.DateTimeFormat;
  5. import java.io.Serializable;
  6. import java.util.Date;
  7. import java.util.List;
  8. public class RequestReadingMeterDto implements Serializable {
  9. private static final long serialVersionUID = 1L;
  10. @JsonProperty("MeterCode")
  11. private List<String> MeterCode; //水表表号(传空数组时返回当前最新的全部抄表读数。允许多个值,比如:[“01010001”, “01010002”, “01010003”, “01010004”, ……]返回指定水表表号的指定日期的抄表读数。)
  12. @DateTimeFormat(pattern = "yyyy-MM-dd")
  13. @JsonFormat(pattern = "yyyy-MM-dd")
  14. @JsonProperty("ReadingTime")
  15. private Date ReadingTime; //冻结日期(yyyy-MM-dd),如果不传,则默认今天的
  16. @JsonProperty("Account")
  17. private AccountDto Account; //鉴权账户信息
  18. public List<String> getMeterCode() {
  19. return MeterCode;
  20. }
  21. public void setMeterCode(List<String> meterCode) {
  22. MeterCode = meterCode;
  23. }
  24. public Date getReadingTime() {
  25. return ReadingTime;
  26. }
  27. public void setReadingTime(Date readingTime) {
  28. ReadingTime = readingTime;
  29. }
  30. public AccountDto getAccount() {
  31. return Account;
  32. }
  33. public void setAccount(AccountDto account) {
  34. Account = account;
  35. }
  36. @Override
  37. public String toString() {
  38. return "RequestReadingMeterDto{" +
  39. "MeterCode=" + MeterCode +
  40. ", ReadingTime='" + ReadingTime + '\'' +
  41. ", Account=" + Account +
  42. '}';
  43. }
  44. }