|
@@ -2464,6 +2464,30 @@ public class StatisticsServiceImpl extends BaseService implements StatisticsServ
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
|
|
+ public void getuserStatistic(UserStatistic obj,HttpServletRequest req,HttpServletResponse resp) {
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ List<StatisiticPojo> list = this.getuserStatistic(obj);
|
|
|
|
|
+ SimpleDateFormat d = new SimpleDateFormat("yyyy/MM");
|
|
|
|
|
+ String name = "综合得分";
|
|
|
|
|
+ if(obj.getSctype()==2){
|
|
|
|
|
+ name = "综合得分";
|
|
|
|
|
+ }else{
|
|
|
|
|
+ name = "温馨服务得分";
|
|
|
|
|
+ }
|
|
|
|
|
+ List<Integer> temp = new ArrayList<>();
|
|
|
|
|
+ for(int i=1;i<=list.size();i++){
|
|
|
|
|
+ temp.add(i);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ Map<String, Object> map = new HashMap<String, Object>();
|
|
|
|
|
+ map.put("list", temp);
|
|
|
|
|
+ map.put("datas", list);
|
|
|
|
|
+ map.put("title","员工"+name+"连续月统计"+"("+d.format(obj.getStart_date())+"---"+d.format(obj.getEnd_date())+")");
|
|
|
|
|
+ exportExcel("员工连续月统计", "user_statistic", map, resp);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @Override
|
|
|
public List<StatisiticPojo> getuserStatistic(UserStatistic obj) {
|
|
public List<StatisiticPojo> getuserStatistic(UserStatistic obj) {
|
|
|
//
|
|
//
|
|
|
List<CheckTaskPeriod> checkTaskPeriods = checkTaskPeriodDao.select(new CheckTaskPeriod());
|
|
List<CheckTaskPeriod> checkTaskPeriods = checkTaskPeriodDao.select(new CheckTaskPeriod());
|
|
@@ -2610,6 +2634,16 @@ public class StatisticsServiceImpl extends BaseService implements StatisticsServ
|
|
|
p = user_ids;
|
|
p = user_ids;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ for (StatisiticPojo s:p
|
|
|
|
|
+ ) {
|
|
|
|
|
+ String dat = "";
|
|
|
|
|
+ for (UserStatistic statistic : s.getUserStatistics()) {
|
|
|
|
|
+ dat += statistic.getP_str() + "月、";
|
|
|
|
|
+ }
|
|
|
|
|
+ dat = dat.substring(0, dat.length() - 1);
|
|
|
|
|
+ s.setDes(dat);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
|
return p;
|
|
return p;
|