|
@@ -69,16 +69,14 @@ public class StatisticsServiceImpl extends BaseService implements StatisticsServ
|
|
|
|
|
|
|
|
Map<Long, StatisticsBo> statisticBoMap = new HashMap<Long, StatisticsBo>();
|
|
Map<Long, StatisticsBo> statisticBoMap = new HashMap<Long, StatisticsBo>();
|
|
|
|
|
|
|
|
|
|
+ // 检索收费站的人员
|
|
|
Constant t = CodeUtil.getCodeByFlagAndValue("feestation_check_jobs", "1");
|
|
Constant t = CodeUtil.getCodeByFlagAndValue("feestation_check_jobs", "1");
|
|
|
-
|
|
|
|
|
String[] postions = t.getCode_name().split(",");
|
|
String[] postions = t.getCode_name().split(",");
|
|
|
-
|
|
|
|
|
User user = new User();
|
|
User user = new User();
|
|
|
List<Integer> positionList = new ArrayList<Integer>();
|
|
List<Integer> positionList = new ArrayList<Integer>();
|
|
|
for(int i =0 ;i<postions.length;i++){
|
|
for(int i =0 ;i<postions.length;i++){
|
|
|
positionList.add(Integer.parseInt(postions[i]));
|
|
positionList.add(Integer.parseInt(postions[i]));
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
user.setPosition_ids(positionList);
|
|
user.setPosition_ids(positionList);
|
|
|
|
|
|
|
|
if (obj.getDept_id() != null)
|
|
if (obj.getDept_id() != null)
|
|
@@ -105,6 +103,7 @@ public class StatisticsServiceImpl extends BaseService implements StatisticsServ
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
for (StatisticsBean statisticsBean : timesList) {
|
|
for (StatisticsBean statisticsBean : timesList) {
|
|
|
if (statisticBoMap.containsKey(statisticsBean.getUser_id())) {
|
|
if (statisticBoMap.containsKey(statisticsBean.getUser_id())) {
|
|
|
StatisticsBo tmp = statisticBoMap.get(statisticsBean.getUser_id());
|
|
StatisticsBo tmp = statisticBoMap.get(statisticsBean.getUser_id());
|
|
@@ -146,6 +145,7 @@ public class StatisticsServiceImpl extends BaseService implements StatisticsServ
|
|
|
|
|
|
|
|
// 公司排名
|
|
// 公司排名
|
|
|
lists.get(i).setCompany_ranking(i+1);
|
|
lists.get(i).setCompany_ranking(i+1);
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
return lists;
|
|
return lists;
|
|
@@ -583,6 +583,13 @@ public class StatisticsServiceImpl extends BaseService implements StatisticsServ
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ resultList.sort(new Comparator<StatisticsBean>() {
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public int compare(StatisticsBean o1, StatisticsBean o2) {
|
|
|
|
|
+ return o1.compareTo(o2);
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
return resultList;
|
|
return resultList;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -652,25 +659,7 @@ public class StatisticsServiceImpl extends BaseService implements StatisticsServ
|
|
|
centerManageList.sort(new Comparator<StatisticsBean>() {
|
|
centerManageList.sort(new Comparator<StatisticsBean>() {
|
|
|
@Override
|
|
@Override
|
|
|
public int compare(StatisticsBean o1, StatisticsBean o2) {
|
|
public int compare(StatisticsBean o1, StatisticsBean o2) {
|
|
|
- if(o1.getChecked_num()!=0 && o2.getChecked_num()!=0){
|
|
|
|
|
- double a = o1.getAll_check_score() / (o1.getChecked_num()+0.00) / o1.getPeople_num();
|
|
|
|
|
- double b = o2.getAll_check_score() /(o2.getChecked_num()+0.00) / o2.getPeople_num();
|
|
|
|
|
- if (a > b ) {
|
|
|
|
|
- return 1;
|
|
|
|
|
- } else if (a < b) {
|
|
|
|
|
- return -1;
|
|
|
|
|
- } else {
|
|
|
|
|
- return 0;
|
|
|
|
|
- }
|
|
|
|
|
- }else{
|
|
|
|
|
- if(o1.getChecked_num() == 0){
|
|
|
|
|
- return -1 ;
|
|
|
|
|
- }else if(o2.getChecked_num() ==0){
|
|
|
|
|
- return 1;
|
|
|
|
|
- }else{
|
|
|
|
|
- return 0;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ return o1.compareTo(o2);
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
|