From e57e32fc43da31917912eebb4e47d4e50df1a9e9 Mon Sep 17 00:00:00 2001
From: shiyj1101 <1098226878@qq.com>
Date: 星期四, 05 八月 2021 22:56:15 +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