|
|
@@ -155,6 +155,13 @@ public class CheckOtherServiceImpl extends BaseService implements CheckOtherSer
|
|
|
|
|
|
List<FeeStation> liststation = departmentDao.getAllFS();
|
|
|
List<FeeStation> list = departmentDao.getAllRM();
|
|
|
+
|
|
|
+
|
|
|
+ CheckOther checkOther = new CheckOther();
|
|
|
+ checkOther.setCheck_time_name(checktime);
|
|
|
+ checkOther.setCheck_type(checktype);
|
|
|
+ List<CheckOther> checkOthers = checkOtherDao.getCheckByDeptId(checkOther);
|
|
|
+
|
|
|
if(checktype==1){
|
|
|
for (FeeStation station:liststation
|
|
|
) {
|
|
|
@@ -163,8 +170,49 @@ public class CheckOtherServiceImpl extends BaseService implements CheckOtherSer
|
|
|
otherCheckStatistics1.setDeptname(station.getName().replaceAll("收费站",""));
|
|
|
otherCheckStatistics1.setPdeptid(station.getParentid());
|
|
|
// otherCheckStatistics1.setPdeptname(pstation.getName());
|
|
|
+ HashMap<String,Integer> s = new HashMap<>();
|
|
|
+ for (CheckOther c :checkOthers){
|
|
|
+ if((c.getDept_id()+"").equals(station.getDeptid())){
|
|
|
+ Integer i = s.get(getItemName(c.getPcheckname()));
|
|
|
+ if(i==null){i=0;}
|
|
|
+ s.put(getItemName(c.getPcheckname()), Integer.valueOf((int) (i+c.getCheck_score())));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ s.put("环境卫生",s.get("环境卫生")==null?230:230-s.get("环境卫生"));
|
|
|
+ s.put("仪容仪表",s.get("仪容仪表")==null?170:170-s.get("仪容仪表"));
|
|
|
+ s.put("表情",s.get("表情")==null?100:100-s.get("表情"));
|
|
|
+ s.put("动作规范",s.get("动作规范")==null?100:100-s.get("动作规范"));
|
|
|
+ s.put("礼貌用语",s.get("礼貌用语")==null?200:200-s.get("礼貌用语"));
|
|
|
+ s.put("行为举止",s.get("行为举止")==null?120:120-s.get("行为举止"));
|
|
|
+ s.put("便民服务",s.get("便民服务")==null?80:80-s.get("便民服务"));
|
|
|
+
|
|
|
+
|
|
|
+ otherCheckStatistics1.setScoremap(s);
|
|
|
otherCheckStatistics.add(otherCheckStatistics1);
|
|
|
+
|
|
|
}
|
|
|
+ otherCheckStatistics.sort(new Comparator<OtherCheckStatistics>() {
|
|
|
+ @Override
|
|
|
+ public int compare(OtherCheckStatistics o1, OtherCheckStatistics o2) {
|
|
|
+ return o1.getTotalScore()>o2.getTotalScore()?-1:1;
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+// 公司排名
|
|
|
+ int scount = 1;
|
|
|
+ for (int i=0;i<otherCheckStatistics.size();i++
|
|
|
+ ) {
|
|
|
+ if(i>0){
|
|
|
+ if(otherCheckStatistics.get(i).getTotalScore()<otherCheckStatistics.get(i-1).getTotalScore()){
|
|
|
+ scount = i+1;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ otherCheckStatistics.get(i).setCranking(scount);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
|
|
|
for (FeeStation a:list
|
|
|
) {
|
|
|
@@ -176,6 +224,19 @@ public class CheckOtherServiceImpl extends BaseService implements CheckOtherSer
|
|
|
s.add(o);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ //道管排名
|
|
|
+ scount = 1;
|
|
|
+ for (int i=0;i<s.size();i++
|
|
|
+ ) {
|
|
|
+ if(i>0){
|
|
|
+ if(s.get(i).getTotalScore()<s.get(i-1).getTotalScore()){
|
|
|
+ scount = i+1;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ s.get(i).setRranking(scount);
|
|
|
+ }
|
|
|
+
|
|
|
datas.put(a.getName().replaceAll("道管中心",""),s);
|
|
|
}
|
|
|
}
|
|
|
@@ -183,4 +244,18 @@ public class CheckOtherServiceImpl extends BaseService implements CheckOtherSer
|
|
|
return datas;
|
|
|
}
|
|
|
|
|
|
+ private String getItemName(String n){
|
|
|
+ if(n.contains("环境卫生")){ return "环境卫生";}
|
|
|
+ if(n.contains("表情")){ return "表情";}
|
|
|
+ if(n.contains("仪容仪表")){ return "仪容仪表";}
|
|
|
+ if(n.contains("行为举止")){ return "行为举止";}
|
|
|
+ if(n.contains("便民服务")){ return "便民服务";}
|
|
|
+ if(n.contains("用语")){ return "礼貌用语";}
|
|
|
+ if(n.contains("动作")){ return "动作规范";}
|
|
|
+
|
|
|
+ if(n.contains("站容站貌")){ return "环境卫生";}
|
|
|
+ if(n.contains("安全管理")){ return "便民服务";}
|
|
|
+ return n;
|
|
|
+ }
|
|
|
+
|
|
|
}
|