|
|
@@ -129,8 +129,34 @@ public class StatisticsServiceImpl extends BaseService implements StatisticsServ
|
|
|
|
|
|
@Override
|
|
|
public List<StatisticsBean> getFeeStationCheckItemScore(StatisticsBean obj) {
|
|
|
- // TODO Auto-generated method stub
|
|
|
- return null;
|
|
|
+
|
|
|
+ // 获取收费站信息收费站人数
|
|
|
+ List<StatisticsBean> lists = departmentDao.selectFeeStationGroup(obj);
|
|
|
+ Map<Long,StatisticsBean> mapStationInfos = new HashMap<>();
|
|
|
+ for(StatisticsBean sta:lists){
|
|
|
+ mapStationInfos.put(sta.getDept_id(), sta);
|
|
|
+ }
|
|
|
+
|
|
|
+ // 检索受检次数
|
|
|
+ List<StatisticsBean> listCheckNum = statisticsDao.selectFeeStationCheckNum(obj);
|
|
|
+ for(StatisticsBean sta:listCheckNum){
|
|
|
+ if(mapStationInfos.containsKey(sta.getDept_id())){
|
|
|
+ mapStationInfos.get(sta.getDept_id()).setChecked_num(sta.getChecked_num());
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ List<StatisticsBean> listCheckedScore = statisticsDao.selectFeeStationCheckedPersonScoreDetail(obj);
|
|
|
+ for(StatisticsBean sta:listCheckedScore){
|
|
|
+ if(mapStationInfos.containsKey(sta.getDept_id())){
|
|
|
+ StatisticsBean statis = mapStationInfos.get(sta.getDept_id());
|
|
|
+ statis.setAll_check_score( statis.getAll_check_score()+sta.getScore());
|
|
|
+ statis.getChecked_socre_name().add(sta.getName());
|
|
|
+ statis.getChecked_score().add(sta.getScore());
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ return new ArrayList<>(mapStationInfos.values());
|
|
|
+
|
|
|
}
|
|
|
|
|
|
}
|