From d32086f60436b9ba02eb38a6b6ee809a5f1da424 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期四, 08 七月 2021 22:16:46 +0800
Subject: [PATCH] 优化相似度查询失败
---
java110-bean/src/main/java/com/java110/entity/product/BoProduct.java | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/java110-bean/src/main/java/com/java110/entity/product/BoProduct.java b/java110-bean/src/main/java/com/java110/entity/product/BoProduct.java
old mode 100644
new mode 100755
index a9cd9ce..794a0d4
--- a/java110-bean/src/main/java/com/java110/entity/product/BoProduct.java
+++ b/java110-bean/src/main/java/com/java110/entity/product/BoProduct.java
@@ -6,7 +6,7 @@
/**
* Created by wuxw on 2017/5/20.
*/
-public class BoProduct extends Product implements Comparable{
+public class BoProduct extends Product implements Comparable<BoProduct>{
private String boId;
@@ -56,9 +56,8 @@
* @return
*/
@Override
- public int compareTo(Object o) {
+ public int compareTo(BoProduct otherBoProduct) {
- BoProduct otherBoProduct = (BoProduct)o;
if("DEL".equals(this.getState()) && "ADD".equals(otherBoProduct.getState())) {
return -1;
}
--
Gitblit v1.8.0