From 05683f2b2bdbdbe21cf17ad523c21ab338bd1c54 Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期二, 19 七月 2022 21:49:55 +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