|
|
@@ -462,7 +462,6 @@ public class StatisticsServiceImpl extends BaseService implements StatisticsServ
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
List<StatisticsBean> lists = statisticsDao.selectYearScoreInfo(obj);
|
|
|
for(StatisticsBean sta:lists){
|
|
|
sta.setPeople_num(people_num);
|
|
|
@@ -654,9 +653,9 @@ public class StatisticsServiceImpl extends BaseService implements StatisticsServ
|
|
|
List<StatisticsBean> userLostScoreInfoList = statisticsDao.selectCheckedScoreList(obj);
|
|
|
|
|
|
for (StatisticsBean sta : userLostScoreInfoList) {
|
|
|
- if (sta.getAll_check_score() <= 15) {
|
|
|
+ if (sta.getAll_check_score() / sta.getChecked_num() <= 15) {
|
|
|
returnObj.setScore_fifteen(returnObj.getScore_fifteen() + 1);
|
|
|
- } else if (sta.getAll_check_score() <= 50) {
|
|
|
+ } else if (sta.getAll_check_score()/sta.getChecked_num() <= 50) {
|
|
|
returnObj.setScore_fifty(returnObj.getScore_fifty() + 1);
|
|
|
} else {
|
|
|
returnObj.setScore_over_fifty(returnObj.getScore_over_fifty() + 1);
|
|
|
@@ -666,4 +665,79 @@ public class StatisticsServiceImpl extends BaseService implements StatisticsServ
|
|
|
|
|
|
return returnObj;
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public List<StatisticsBean> getCheckedItemScoreInfo(StatisticsBean obj) {
|
|
|
+ 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);
|
|
|
+ }else if(obj.getQueryType() ==2){
|
|
|
+ // 收费站
|
|
|
+ }
|
|
|
+ return statisticsDao.selectCheckedItemScoreInfo(obj);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public Map<String, List<StatisticsBean>> get2CheckedItemScoreInfo(StatisticsBean obj) {
|
|
|
+
|
|
|
+ Map<String,List<StatisticsBean>> map = new HashMap<>();
|
|
|
+
|
|
|
+ int people_num = 0 ;
|
|
|
+
|
|
|
+ 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> objList = statisticsDao.selectCheckedItemScoreInfo(obj);
|
|
|
+
|
|
|
+ for(int i=0;i < objList.size();i++){
|
|
|
+ objList.get(0).setPeople_num(people_num);
|
|
|
+ }
|
|
|
+
|
|
|
+ map.put("Tmth",objList ) ;
|
|
|
+
|
|
|
+ obj.setMth(obj.getPrev_mth());
|
|
|
+
|
|
|
+ objList = statisticsDao.selectCheckedItemScoreInfo(obj);
|
|
|
+
|
|
|
+ for(int i=0;i < objList.size();i++){
|
|
|
+ objList.get(0).setPeople_num(people_num);
|
|
|
+ }
|
|
|
+
|
|
|
+ map.put("Pmth",objList );
|
|
|
+
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}
|