|
|
@@ -1883,19 +1883,19 @@ public class StatisticsServiceImpl extends BaseService implements StatisticsServ
|
|
|
mapStationInfos.get(company_bean.getDept_id()).setCompany_total_score(company_bean.getAll_check_score());
|
|
|
}
|
|
|
for (StatisticsBean third_bean : third_beans) {
|
|
|
- mapStationInfos.get(third_bean.getDept_id()).setThird_check_num(1);
|
|
|
+ mapStationInfos.get(third_bean.getDept_id()).setThird_check_num(third_bean.getChecked_num()>1?1:third_bean.getChecked_num());
|
|
|
mapStationInfos.get(third_bean.getDept_id()).setThird_total_score(third_bean.getCheck_total_score());
|
|
|
}
|
|
|
for (StatisticsBean special_bean : special_beans) {
|
|
|
- mapStationInfos.get(special_bean.getDept_id()).setSpecial_check_num(1);
|
|
|
+ mapStationInfos.get(special_bean.getDept_id()).setSpecial_check_num(special_bean.getChecked_num());
|
|
|
mapStationInfos.get(special_bean.getDept_id()).setSpecial_total_score(special_bean.getCheck_total_score());
|
|
|
}
|
|
|
for (StatisticsBean onsite_bean : onsite_beans) {
|
|
|
- mapStationInfos.get(onsite_bean.getDept_id()).setOnsite_check_num(1);
|
|
|
+ mapStationInfos.get(onsite_bean.getDept_id()).setOnsite_check_num(onsite_bean.getChecked_num()>1?1:onsite_bean.getChecked_num());
|
|
|
mapStationInfos.get(onsite_bean.getDept_id()).setOnsite_total_score(onsite_bean.getCheck_total_score());
|
|
|
}
|
|
|
for (StatisticsBean data_bean : data_beans) {
|
|
|
- mapStationInfos.get(data_bean.getDept_id()).setData_check_num(1);
|
|
|
+ mapStationInfos.get(data_bean.getDept_id()).setData_check_num(data_bean.getChecked_num()>1?1:data_bean.getChecked_num());
|
|
|
mapStationInfos.get(data_bean.getDept_id()).setData_total_score(data_bean.getCheck_total_score());
|
|
|
}
|
|
|
// 计算出每个收费站的总平均扣分和平均得分
|
|
|
@@ -1905,6 +1905,10 @@ public class StatisticsServiceImpl extends BaseService implements StatisticsServ
|
|
|
for (Entry<Long, StatisticsBean> station : stationInfos) {
|
|
|
float avg = 0;
|
|
|
StatisticsBean value = station.getValue();
|
|
|
+ value.setThird_check_num(1);
|
|
|
+ value.setSpecial_check_num(1);
|
|
|
+ value.setOnsite_check_num(1);
|
|
|
+ value.setData_check_num(1);
|
|
|
// 设置总平均扣分
|
|
|
if (value.getCompany_check_num() > 0 || value.getThird_check_num() > 0) {
|
|
|
avg += (value.getCompany_total_score() +value.getThird_total_score()) /4.0/ (value.getCompany_check_num()+value.getThird_check_num());
|