From 576c52d8d8e6fb1e738380cc5fc101a6a2b0b3a8 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期六, 04 九月 2021 16:00:57 +0800
Subject: [PATCH] Merge branch 'master' of http://git.homecommunity.cn/supervip/MicroCommunity

---
 java110-bean/src/main/java/com/java110/entity/order/Business.java |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/java110-bean/src/main/java/com/java110/entity/order/Business.java b/java110-bean/src/main/java/com/java110/entity/order/Business.java
old mode 100644
new mode 100755
index 5bbffe6..4918cfa
--- a/java110-bean/src/main/java/com/java110/entity/order/Business.java
+++ b/java110-bean/src/main/java/com/java110/entity/order/Business.java
@@ -9,7 +9,7 @@
  * @create 2019-02-05 涓婂崍11:27
  * @desc 璁㈠崟椤� 瀵瑰簲琛╟_business
  **/
-public class Business extends BusinessPlus implements Comparable{
+public class Business extends BusinessPlus implements Comparable<Business>{
 
 
     /**
@@ -76,9 +76,8 @@
     }
 
     @Override
-    public int compareTo(Object o) {
-        Business otherBusiness = (Business)o;
-        if(this.getSeq() > otherBusiness.getSeq()) {
+    public int compareTo(Business otherBusiness) {
+        if(this.getSeq() < otherBusiness.getSeq()) {
             return -1;
         }
         return 0;

--
Gitblit v1.8.0