| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- 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 checked_m_num = 0 ;
-
- private int check_all_m_score =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()+this.getChecked_m_num())!=0 ){
- a = (this.getCheck_all_score()+this.getCheck_all_m_score()) / (this.getChecked_num()+this.getChecked_m_num()+0.00);
- }
- if((o2.getChecked_num()+o2.getChecked_m_num())!=0){
- b = (o2.getCheck_all_score()+o2.getCheck_all_m_score()) /(o2.getChecked_num()+o2.getChecked_m_num()+0.00);
- }
- if (a > b ) {
- return 1;
- } else if (a < b) {
- return -1;
- } else {
- return 0;
- }
- }
-
- }
|