|
|
@@ -152,7 +152,7 @@ public class StatisticsServiceImpl implements StatisticsService_F {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- CheckTaskPeriod period = commonService.getCheckTaskPeriod(obj.getStart_date().getTime(), obj.getEnd_date().getTime());
|
|
|
+ CheckTaskPeriod period = commonService.getCheckTaskPeriod(obj.getStart_date().getTime()+1 * 1000 * 60 * 60, obj.getEnd_date().getTime()+1 * 1000 * 60 * 60);
|
|
|
|
|
|
if (period != null) {
|
|
|
for (FwqStatisticsBean s : sortList) {
|
|
|
@@ -263,8 +263,19 @@ public class StatisticsServiceImpl implements StatisticsService_F {
|
|
|
return o1.getTotal_integral() > o2.getTotal_integral() ? -1 : 1;
|
|
|
}
|
|
|
});
|
|
|
- for (int i = 0; i < deptStatistics1.size(); i++) {
|
|
|
- deptStatistics1.get(i).setTotal_ranking(i + 1);
|
|
|
+ for (int j = 0; j < deptStatistics1.size(); j++) {
|
|
|
+ FwqDeptStatistic statisticsBean = deptStatistics1.get(j);
|
|
|
+ // 排名
|
|
|
+ if (j == 0) {
|
|
|
+ statisticsBean.setTotal_ranking(1);
|
|
|
+ } else {
|
|
|
+ FwqDeptStatistic bean = deptStatistics1.get(j - 1);
|
|
|
+ if (statisticsBean.getTotal_integral().equals(bean.getTotal_integral())) {
|
|
|
+ statisticsBean.setTotal_ranking(bean.getTotal_ranking());
|
|
|
+ } else {
|
|
|
+ statisticsBean.setTotal_ranking(j + 1);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -376,7 +387,7 @@ public class StatisticsServiceImpl implements StatisticsService_F {
|
|
|
}
|
|
|
|
|
|
if (obj.getStart_date() != null && obj.getEnd_date() != null) {
|
|
|
- CheckTaskPeriod p = commonService.getCheckTaskPeriod(obj.getStart_date().getTime(), obj.getEnd_date().getTime());
|
|
|
+ CheckTaskPeriod p = commonService.getCheckTaskPeriod(obj.getStart_date().getTime()+1 * 1000 * 60 * 60, obj.getEnd_date().getTime()+1 * 1000 * 60 * 60);
|
|
|
if (p != null) {
|
|
|
obj.setPeriod_id(p.getId());
|
|
|
}
|
|
|
@@ -466,7 +477,7 @@ public class StatisticsServiceImpl implements StatisticsService_F {
|
|
|
public FwqRankingData getEmployeeRankingData(FwqStatisticsBean obj) {
|
|
|
FwqRankingData data = new FwqRankingData();
|
|
|
|
|
|
- CheckTaskPeriod lastTaskPeriod = commonService.getCheckTaskPeriod(obj.getStart_date().getTime(), obj.getEnd_date().getTime());
|
|
|
+ CheckTaskPeriod lastTaskPeriod = commonService.getCheckTaskPeriod(obj.getStart_date().getTime()+1 * 1000 * 60 * 60, obj.getEnd_date().getTime()+1 * 1000 * 60 * 60);
|
|
|
if (lastTaskPeriod != null) {
|
|
|
FwqStatisticsBean temp = new FwqStatisticsBean();
|
|
|
temp.setStart_date(new Date(lastTaskPeriod.getStarttime().getTime() - 1 * 1000 * 60 * 60));
|
|
|
@@ -744,33 +755,8 @@ public class StatisticsServiceImpl implements StatisticsService_F {
|
|
|
|
|
|
@Override
|
|
|
public List<FwqStatisticsBean> getYearScoreChange(FwqStatisticsBean obj) {
|
|
|
- // 道管中心
|
|
|
-// if (obj.getQueryType() != null && obj.getQueryType() == 1) {
|
|
|
-// // 检索当前导管中心下的deptid
|
|
|
-// Organ organ = new Organ();
|
|
|
-// if (obj.getDept_id() == null) {
|
|
|
-// return null;
|
|
|
-// }
|
|
|
-// organ.setParentid(obj.getDept_id().intValue());
|
|
|
-//
|
|
|
-// List<Organ> list = departmentDao.getOrgan(organ);
|
|
|
-// // 将导管中心下的收费站部门id 列表放入到list中
|
|
|
-// obj.setDept_list(list);
|
|
|
-// }
|
|
|
-
|
|
|
- // Constant t = CodeUtil.getCodeByFlagAndValue("feestation_check_jobs",
|
|
|
- // "1");
|
|
|
- // String[] postions = t.getCode_name().split(",");
|
|
|
- // List<Integer> positionList = new ArrayList<Integer>();
|
|
|
- // for (int i = 0; i < postions.length; i++) {
|
|
|
- // positionList.add(Integer.parseInt(postions[i]));
|
|
|
- // }
|
|
|
- // //未计算未扣分的稽查次数
|
|
|
- // obj.setPosition_ids(positionList);
|
|
|
- // List<StatisticsBean> listCheckNum =
|
|
|
- // statisticsDao.selectFeeStationCheckNum(obj);
|
|
|
-
|
|
|
- return fwqStatisticsDao.selectYearScoreInfo(obj);
|
|
|
+ List<FwqStatisticsBean> list = fwqStatisticsDao.selectYearScoreInfo(obj);
|
|
|
+ return list;
|
|
|
|
|
|
}
|
|
|
|
|
|
@@ -796,7 +782,7 @@ public class StatisticsServiceImpl implements StatisticsService_F {
|
|
|
}
|
|
|
|
|
|
if (obj.getStart_date() != null && obj.getEnd_date() != null) {
|
|
|
- CheckTaskPeriod p = commonService.getCheckTaskPeriod(obj.getStart_date().getTime(), obj.getEnd_date().getTime());
|
|
|
+ CheckTaskPeriod p = commonService.getCheckTaskPeriod(obj.getStart_date().getTime()+1 * 1000 * 60 * 60, obj.getEnd_date().getTime()+1 * 1000 * 60 * 60);
|
|
|
if (p != null) {
|
|
|
obj.setPeriod_id(p.getId());
|
|
|
}
|