wenhongquan 8 лет назад
Родитель
Сommit
65aae5a4a9

+ 59 - 62
VisualInspection_server/src/main/java/com/xintong/visualinspection/bean/StatisticsBo.java

@@ -1,62 +1,59 @@
-package com.xintong.visualinspection.bean;
-
-import java.util.ArrayList;
-import java.util.Date;
-import java.util.List;
-
-import org.mockito.internal.matchers.CompareTo;
-
-import lombok.Data;
-
-/**
- * 文件名:Job
- * 版本信息:日期:2017/4/18 Copyright 江苏省交通规划设计院 Corporation 2017 版权所有.
- */
-@Data
-public class StatisticsBo {
-    //编号
-    private Integer id;
- 
-    private int checked_num = 0 ;
-    
-    private int check_all_score =0 ; 
-    
-    private List<String> checked_socre_name = new ArrayList<>() ;
-    
-    private List<Integer> checked_score = new ArrayList<>() ;
-    
-    private User user;
-    
-    private List<Integer> emp_item_score = new ArrayList<>();
-    
-    private String check_score_avg;
-    
-    private String check_score;
-    
-    // 公司排名
-    private Integer company_ranking;
-    // 道管排名
-    private Integer center_ranking;
-    
-    // 收费站排名
-    private Integer fee_station_ranking;
-    
-    // 比较大小 1 小 , -1 大
-    public int compareTo(StatisticsBo o2){
-    	double a = 1000.0 ,b=1000.0 ;
-		if(this.getChecked_num()!=0 ){
-			a = this.getCheck_all_score() / (this.getChecked_num()+0.00);
-		}
-		if(o2.getChecked_num()!=0){
-			b = o2.getCheck_all_score()/(o2.getChecked_num()+0.00);
-		}
-		if (a > b ) {
-			return 1;
-		} else if (a < b) {
-			return -1;
-		} else {
-			return 0;
-		}	
-    }
-    
-}
+package com.xintong.visualinspection.bean;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+import lombok.Data;
+
+/**
+ * 文件名:Job
+ * 版本信息:日期:2017/4/18 Copyright 江苏省交通规划设计院 Corporation 2017 版权所有.
+ */
+@Data
+public class StatisticsBo {
+    //编号
+    private Integer id;
+ 
+    private int checked_num = 0 ;
+    
+    private int check_all_score =0 ; 
+    
+    private List<String> checked_socre_name = new ArrayList<>() ;
+    
+    private List<Integer> checked_score = new ArrayList<>() ;
+    
+    private User user;
+    
+    private List<Integer> emp_item_score = new ArrayList<>();
+    
+    private String check_score_avg;
+    
+    private String check_score;
+    
+    // 公司排名
+    private Integer company_ranking;
+    // 道管排名
+    private Integer center_ranking;
+    
+    // 收费站排名
+    private Integer fee_station_ranking;
+    
+    // 比较大小 1 小 , -1 大
+    public int compareTo(StatisticsBo o2){
+    	double a = 1000.0 ,b=1000.0 ;
+		if(this.getChecked_num()!=0 ){
+			a = this.getCheck_all_score() / (this.getChecked_num()+0.00);
+		}
+		if(o2.getChecked_num()!=0){
+			b = o2.getCheck_all_score()/(o2.getChecked_num()+0.00);
+		}
+		if (a > b ) {
+			return 1;
+		} else if (a < b) {
+			return -1;
+		} else {
+			return 0;
+		}	
+    }
+    
+}