ReqBO.java 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. package com.gzlh.entity;
  2. import cn.hutool.json.JSONUtil;
  3. import lombok.Data;
  4. import lombok.NoArgsConstructor;
  5. import lombok.experimental.Accessors;
  6. import org.springframework.context.annotation.Lazy;
  7. import java.io.Serializable;
  8. import java.util.*;
  9. @Data
  10. @Accessors(chain = true)
  11. public class ReqBO implements Serializable {
  12. /**
  13. * 方向 0=未知,1=进,2=退,3=离开
  14. */
  15. private int direction=0;
  16. /**
  17. * 通道号
  18. */
  19. private String channelCode="";;
  20. /**
  21. * 电子车牌 ERI
  22. */
  23. private String eri="";;
  24. /**
  25. * 车牌
  26. */
  27. private String carNo="";
  28. /**
  29. * 车牌图片base64
  30. */
  31. private String carImg="";;
  32. /**
  33. * 称重重量kg
  34. */
  35. private Double weight;
  36. /**
  37. * 箱数据
  38. */
  39. private Box box;
  40. /**
  41. * 采集时间
  42. */
  43. private Date gatherTime;
  44. @Data
  45. public static class Box {
  46. /**
  47. * 前箱号
  48. */
  49. private String boxF="";
  50. /**
  51. * 后箱号
  52. */
  53. private String boxB="";
  54. /**
  55. * 后箱号图片多张,号分割
  56. */
  57. private String boxBImg="";
  58. /**
  59. * 后箱号图片 多张,号分割
  60. */
  61. private String boxFImg="";
  62. /**
  63. * 前箱型
  64. */
  65. private String modelF="";
  66. /**
  67. * 后箱型
  68. */
  69. private String modelB="";
  70. /**
  71. * 箱数量
  72. */
  73. private String boxNum="";
  74. }
  75. public static void main(String[] args) {
  76. ReqBO reqBO=new ReqBO();
  77. reqBO.setBox(new Box());
  78. String str=JSONUtil.toJsonStr(reqBO);
  79. System.out.println(str);
  80. }
  81. }