Authored by mali

价格趋势 去重操作

@@ -87,6 +87,11 @@ public class PriceTrendResp { @@ -87,6 +87,11 @@ public class PriceTrendResp {
87 } 87 }
88 88
89 89
  90 + @Override
  91 + public boolean equals(Object obj) {
  92 + PriceTrendResp resp = (PriceTrendResp)obj;
  93 + return null != this.endTime && this.endTime.equals(resp.getEndTime());
  94 + }
90 95
91 public static class Builder { 96 public static class Builder {
92 private Integer id; 97 private Integer id;
@@ -64,7 +64,7 @@ public class ProductPriceService implements ApplicationContextAware{ @@ -64,7 +64,7 @@ public class ProductPriceService implements ApplicationContextAware{
64 .build()) 64 .build())
65 ); 65 );
66 66
67 - return result; 67 + return result.stream().distinct().collect(Collectors.toList());
68 } 68 }
69 69
70 public List<GoodsSize> queryProductSizeById(Integer productId) { 70 public List<GoodsSize> queryProductSizeById(Integer productId) {