|
@@ -106,10 +106,12 @@ public class StatisticsServiceImpl extends BaseService implements StatisticsServ
|
|
|
lists.sort(new Comparator<StatisticsBo>() {
|
|
lists.sort(new Comparator<StatisticsBo>() {
|
|
|
@Override
|
|
@Override
|
|
|
public int compare(StatisticsBo o1, StatisticsBo o2) {
|
|
public int compare(StatisticsBo o1, StatisticsBo o2) {
|
|
|
- if (o1.getCheck_all_score() >= o2.getCheck_all_score()) {
|
|
|
|
|
|
|
+ if (o1.getCheck_all_score() > o2.getCheck_all_score()) {
|
|
|
return 1;
|
|
return 1;
|
|
|
- } else {
|
|
|
|
|
|
|
+ } else if (o1.getCheck_all_score() < o2.getCheck_all_score()) {
|
|
|
return -1;
|
|
return -1;
|
|
|
|
|
+ }else{
|
|
|
|
|
+ return 0;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
@@ -192,7 +194,7 @@ public class StatisticsServiceImpl extends BaseService implements StatisticsServ
|
|
|
List<StatisticsBo> listStatistic = getEmployeeCheckedInfo(obj);
|
|
List<StatisticsBo> listStatistic = getEmployeeCheckedInfo(obj);
|
|
|
// 处理数据
|
|
// 处理数据
|
|
|
//Integer[] emp_assess = new Integer[listStatistic.size()];
|
|
//Integer[] emp_assess = new Integer[listStatistic.size()];
|
|
|
- for (int i = 0; i < listStatistic.size(); i++) {
|
|
|
|
|
|
|
+ /*for (int i = 0; i < listStatistic.size(); i++) {
|
|
|
StatisticsBo st = new StatisticsBo();
|
|
StatisticsBo st = new StatisticsBo();
|
|
|
st = listStatistic.get(i);
|
|
st = listStatistic.get(i);
|
|
|
try {
|
|
try {
|
|
@@ -201,11 +203,11 @@ public class StatisticsServiceImpl extends BaseService implements StatisticsServ
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
|
}
|
|
}
|
|
|
- /*List<Integer> checked_score_list = st.getChecked_score();
|
|
|
|
|
|
|
+ List<Integer> checked_score_list = st.getChecked_score();
|
|
|
for (int j = 0; j < checked_score_list.size(); i++) {
|
|
for (int j = 0; j < checked_score_list.size(); i++) {
|
|
|
emp_assess[j] = checked_score_list.get(i);
|
|
emp_assess[j] = checked_score_list.get(i);
|
|
|
- }*/
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+ }*/
|
|
|
|
|
|
|
|
String path = "D:/file20170606.xls";
|
|
String path = "D:/file20170606.xls";
|
|
|
try (InputStream is = this.getClass().getResourceAsStream("/employee_order.xls")) {
|
|
try (InputStream is = this.getClass().getResourceAsStream("/employee_order.xls")) {
|