|
@@ -481,6 +481,7 @@ public class StatisticsServiceImpl extends BaseService implements StatisticsServ
|
|
|
}else{
|
|
}else{
|
|
|
sta.setAll_check_score(0);
|
|
sta.setAll_check_score(0);
|
|
|
sta.setChecked_num(0);
|
|
sta.setChecked_num(0);
|
|
|
|
|
+ sta.setFeeStationName(sta.getName());
|
|
|
reList.add(sta);
|
|
reList.add(sta);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -603,4 +604,57 @@ public class StatisticsServiceImpl extends BaseService implements StatisticsServ
|
|
|
|
|
|
|
|
return centerManageList;
|
|
return centerManageList;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 考核情况占比
|
|
|
|
|
+ */
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public StatisticsBean getCheckedScoreInfo(StatisticsBean obj) {
|
|
|
|
|
+ int people_num = 0 ;
|
|
|
|
|
+ StatisticsBean returnObj = new StatisticsBean();
|
|
|
|
|
+ if(obj.getQueryType() ==0){
|
|
|
|
|
+ // 公司
|
|
|
|
|
+ // 公司总人数
|
|
|
|
|
+ List<StatisticsBean> feeStationList = userInfoDao.getUsersCountList();
|
|
|
|
|
+ if(feeStationList!=null && feeStationList.size()>0){
|
|
|
|
|
+ for(StatisticsBean sta : feeStationList){
|
|
|
|
|
+ people_num += sta.getPeople_num();
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }else if(obj.getQueryType() == 1){
|
|
|
|
|
+ // 道管中心
|
|
|
|
|
+ Organ organ =new Organ();
|
|
|
|
|
+ organ.setParentid(obj.getDept_id().intValue());
|
|
|
|
|
+ List<Organ> list = departmentDao.getOrgan(organ);
|
|
|
|
|
+ // 将导管中心下的收费站部门id 列表放入到list中
|
|
|
|
|
+ obj.setDept_list(list);
|
|
|
|
|
+
|
|
|
|
|
+ people_num = userInfoDao.getUsersCenterManageCount(obj);
|
|
|
|
|
+ }else if(obj.getQueryType() == 2){
|
|
|
|
|
+ // 收费站
|
|
|
|
|
+ List<StatisticsBean> feeStationList = userInfoDao.getUsersCountList();
|
|
|
|
|
+ if(feeStationList!=null && feeStationList.size()>0){
|
|
|
|
|
+ for(StatisticsBean sta : feeStationList){
|
|
|
|
|
+ if(obj.getDept_id()+0L == sta.getDept_id()){
|
|
|
|
|
+ people_num = sta.getPeople_num();
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ List<StatisticsBean> userLostScoreInfoList = statisticsDao.selectCheckedScoreList(obj);
|
|
|
|
|
+
|
|
|
|
|
+ for (StatisticsBean sta : userLostScoreInfoList) {
|
|
|
|
|
+ if (sta.getAll_check_score() <= 15) {
|
|
|
|
|
+ returnObj.setScore_fifteen(returnObj.getScore_fifteen() + 1);
|
|
|
|
|
+ } else if (sta.getAll_check_score() <= 50) {
|
|
|
|
|
+ returnObj.setScore_fifty(returnObj.getScore_fifty() + 1);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ returnObj.setScore_over_fifty(returnObj.getScore_over_fifty() + 1);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ returnObj.setPeople_num(people_num);
|
|
|
|
|
+
|
|
|
|
|
+ return returnObj;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|