CompareVo.java 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. package com.jjt.rz.vo;
  2. import com.fasterxml.jackson.annotation.JsonFormat;
  3. import io.swagger.annotations.ApiModel;
  4. import io.swagger.annotations.ApiModelProperty;
  5. import lombok.Data;
  6. import java.math.BigDecimal;
  7. import java.time.LocalDateTime;
  8. import java.util.ArrayList;
  9. import java.util.List;
  10. import java.util.TreeMap;
  11. /**
  12. * 工艺比对视图
  13. *
  14. * @author wukai
  15. * @date 2025/6/3 23:47
  16. */
  17. @ApiModel(value = "CompareVo", description = "工艺比对视图")
  18. @Data
  19. public class CompareVo {
  20. @ApiModelProperty("产线")
  21. private Integer line;
  22. @ApiModelProperty("开始时间")
  23. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  24. private LocalDateTime start;
  25. @ApiModelProperty("结束时间")
  26. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  27. private LocalDateTime end;
  28. @ApiModelProperty("前整车间")
  29. private Qz qz;
  30. @ApiModelProperty("后整车间")
  31. private Hz hz;
  32. @ApiModelProperty("印花")
  33. private Integer yh;
  34. @ApiModelProperty("电")
  35. private BigDecimal elect;
  36. @ApiModelProperty("热油")
  37. private BigDecimal oil;
  38. @ApiModelProperty("产能")
  39. private Integer length;
  40. @Data
  41. public static class Qz {
  42. @ApiModelProperty("定型次数")
  43. private Integer dx;
  44. @ApiModelProperty("定型参数")
  45. private List<TreeMap<String, String>> dxPara;
  46. @ApiModelProperty("高梳次数")
  47. private Integer gs;
  48. @ApiModelProperty("高梳参数")
  49. private List<TreeMap<String, String>> gsPara;
  50. @ApiModelProperty("双棍烫光次数")
  51. private Integer tg;
  52. @ApiModelProperty("双棍烫光参数")
  53. private List<TreeMap<String, String>> tgPara;
  54. @ApiModelProperty("双棍刷毛次数")
  55. private Integer sm;
  56. @ApiModelProperty("双棍刷毛参数")
  57. private List<TreeMap<String, String>> smPara;
  58. @ApiModelProperty("电")
  59. private BigDecimal elect;
  60. @ApiModelProperty("热油")
  61. private BigDecimal oil;
  62. public Qz() {
  63. this.elect = BigDecimal.ZERO;
  64. this.oil = BigDecimal.ZERO;
  65. this.dx = 0;
  66. this.gs = 0;
  67. this.tg = 0;
  68. this.sm = 0;
  69. this.dxPara = new ArrayList<>();
  70. this.gsPara = new ArrayList<>();
  71. this.tgPara = new ArrayList<>();
  72. this.smPara = new ArrayList<>();
  73. }
  74. public void addDxPara(TreeMap<String, String> treeMap) {
  75. this.dxPara.add(treeMap);
  76. }
  77. public void addGsPara(TreeMap<String, String> treeMap) {
  78. this.gsPara.add(treeMap);
  79. }
  80. public void addTgPara(TreeMap<String, String> treeMap) {
  81. this.tgPara.add(treeMap);
  82. }
  83. public void addSmPara(TreeMap<String, String> treeMap) {
  84. this.smPara.add(treeMap);
  85. }
  86. }
  87. @Data
  88. public static class Hz {
  89. @ApiModelProperty("定型次数")
  90. private Integer dx;
  91. @ApiModelProperty("定型参数")
  92. private List<TreeMap<String, String>> dxPara;
  93. @ApiModelProperty("高梳次数")
  94. private Integer gs;
  95. @ApiModelProperty("高梳参数")
  96. private List<TreeMap<String, String>> gsPara;
  97. @ApiModelProperty("双棍烫光次数")
  98. private Integer tg;
  99. @ApiModelProperty("双棍烫光参数")
  100. private List<TreeMap<String, String>> tgPara;
  101. @ApiModelProperty("双棍刷毛次数")
  102. private Integer sm;
  103. @ApiModelProperty("双棍刷毛参数")
  104. private List<TreeMap<String, String>> smPara;
  105. @ApiModelProperty("起毛次数")
  106. private Integer qm;
  107. @ApiModelProperty("起毛参数")
  108. private List<TreeMap<String, String>> qmPara;
  109. @ApiModelProperty("烫剪次数")
  110. private Integer tj;
  111. @ApiModelProperty("烫剪参数")
  112. private List<TreeMap<String, String>> tjPara;
  113. @ApiModelProperty("电")
  114. private BigDecimal elect;
  115. @ApiModelProperty("热油")
  116. private BigDecimal oil;
  117. public Hz() {
  118. this.elect = BigDecimal.ZERO;
  119. this.oil = BigDecimal.ZERO;
  120. this.dx = 0;
  121. this.gs = 0;
  122. this.tg = 0;
  123. this.sm = 0;
  124. this.qm = 0;
  125. this.tj = 0;
  126. this.dxPara = new ArrayList<>();
  127. this.gsPara = new ArrayList<>();
  128. this.tgPara = new ArrayList<>();
  129. this.smPara = new ArrayList<>();
  130. this.qmPara = new ArrayList<>();
  131. this.tjPara = new ArrayList<>();
  132. }
  133. public void addDxPara(TreeMap<String, String> treeMap) {
  134. this.dxPara.add(treeMap);
  135. }
  136. public void addGsPara(TreeMap<String, String> treeMap) {
  137. this.gsPara.add(treeMap);
  138. }
  139. public void addTgPara(TreeMap<String, String> treeMap) {
  140. this.tgPara.add(treeMap);
  141. }
  142. public void addSmPara(TreeMap<String, String> treeMap) {
  143. this.smPara.add(treeMap);
  144. }
  145. public void addQmPara(TreeMap<String, String> treeMap) {
  146. this.qmPara.add(treeMap);
  147. }
  148. public void addTjPara(TreeMap<String, String> treeMap) {
  149. this.tjPara.add(treeMap);
  150. }
  151. }
  152. public CompareVo() {
  153. this.qz = new Qz();
  154. this.hz = new Hz();
  155. }
  156. }