|
|
@@ -38,10 +38,8 @@ public class StatisticsServiceImpl extends BaseService implements StatisticsServ
|
|
|
Long organId = obj.getDept_id();
|
|
|
// 将检索出来的数据放到如map中
|
|
|
List<StatisticsBean> list = statisticsDao.selectStatistics(obj);
|
|
|
-// Map<Long,StatisticsBean> statisticMap = new HashMap<Long,StatisticsBean>();
|
|
|
-// for( StatisticsBean statisticsBean : list ){
|
|
|
-// statisticMap.put(statisticsBean.getUser_id(), statisticsBean);
|
|
|
-// }
|
|
|
+
|
|
|
+ List<StatisticsBean> timesList = statisticsDao.selectCheckedTimes(obj);
|
|
|
|
|
|
Map<Long,StatisticsBo> statisticBoMap = new HashMap<Long,StatisticsBo>();
|
|
|
|
|
|
@@ -58,9 +56,18 @@ public class StatisticsServiceImpl extends BaseService implements StatisticsServ
|
|
|
for( StatisticsBean statisticsBean : list ){
|
|
|
if(statisticBoMap.containsKey(statisticsBean.getUser_id())){
|
|
|
StatisticsBo tmp = statisticBoMap.get(statisticsBean.getUser_id());
|
|
|
- tmp.getChecked_socre_name().add(statisticsBean.getName());
|
|
|
- tmp.getChecked_score().add(statisticsBean.getScore());
|
|
|
- tmp.setCheck_all_score(tmp.getCheck_all_score()+statisticsBean.getScore() );
|
|
|
+ if(statisticsBean.getName()!=null && statisticsBean.getScore()!=null){
|
|
|
+ tmp.getChecked_socre_name().add(statisticsBean.getName());
|
|
|
+ tmp.getChecked_score().add(statisticsBean.getScore());
|
|
|
+ tmp.setCheck_all_score(tmp.getCheck_all_score()+statisticsBean.getScore() );
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ for(StatisticsBean statisticsBean : timesList){
|
|
|
+ if(statisticBoMap.containsKey(statisticsBean.getUser_id())){
|
|
|
+ StatisticsBo tmp = statisticBoMap.get(statisticsBean.getUser_id());
|
|
|
+ tmp.setChecked_num(statisticsBean.getChecked_num());
|
|
|
}
|
|
|
}
|
|
|
|