|
|
@@ -536,23 +536,7 @@ public class StatisticsServiceImpl extends BaseService implements StatisticsServ
|
|
|
scoreList.sort(new Comparator<StatisticsBean>() {
|
|
|
@Override
|
|
|
public int compare(StatisticsBean o1, StatisticsBean o2) {
|
|
|
- if(o1.getChecked_num()!=0 && o2.getChecked_num()!=0){
|
|
|
- if (o1.getAll_check_score()/(o1.getChecked_num()+0.0) > o2.getAll_check_score()/(o2.getChecked_num()+0.0) ) {
|
|
|
- return 1;
|
|
|
- } else if (o1.getAll_check_score()/(o1.getChecked_num()+0.0) < o2.getAll_check_score()/(o2.getChecked_num()+0.0)) {
|
|
|
- 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);
|
|
|
}
|
|
|
});
|
|
|
|
|
|
@@ -949,6 +933,9 @@ public class StatisticsServiceImpl extends BaseService implements StatisticsServ
|
|
|
sta.setCheckman_name( CacheUtil.getUserFromMap(sta.getCheckman_id()+0L).getTruename() );
|
|
|
sta.setChecked_name( CacheUtil.getUserFromMap(sta.getUser_id()+0L).getTruename());
|
|
|
sta.setFeeStationName( CacheUtil.getOrganFromMap(sta.getDept_id()).getOrganname() );
|
|
|
+ SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm");
|
|
|
+ SimpleDateFormat formatter2 = new SimpleDateFormat("- HH:mm");
|
|
|
+ sta.setCheck_task_time_name( formatter.format(sta.getStart_date())+formatter2.format(sta.getEnd_date()));
|
|
|
}
|
|
|
}else{
|
|
|
for(StatisticsBean sta : list){
|