|
|
@@ -157,8 +157,8 @@ public class StatisticsController_F extends BaseController {
|
|
|
* 服务区数据查询分析---->获取服务区的12月情况
|
|
|
*/
|
|
|
@RequestMapping(value = "/one/serviceArea/year/info")
|
|
|
- public String getSaOnePersonInfo(@RequestBody FwqStatisticsBean obj){
|
|
|
- List<FwqStatisticsBean> returnList= statisticsService_f.getOneSACheckedInfo(obj);
|
|
|
+ public String getSaOnePersonInfo(@RequestBody FwqStatisticsBean obj) {
|
|
|
+ List<FwqStatisticsBean> returnList = statisticsService_f.getOneSACheckedInfo(obj);
|
|
|
return super.returnSuccessResult(returnList);
|
|
|
}
|
|
|
|
|
|
@@ -166,8 +166,8 @@ public class StatisticsController_F extends BaseController {
|
|
|
* 服务区数据查询分析---->获取服务区各项扣分情况
|
|
|
*/
|
|
|
@RequestMapping(value = "/one/serviceArea/checkedItem/info")
|
|
|
- public String getFsOneServiceAreaCheckedItemInfo(@RequestBody FwqStatisticsBean obj){
|
|
|
- List<FwqStatisticsBean> returnList= statisticsService_f.getOneCheckedItemInfo(obj);
|
|
|
+ public String getFsOneServiceAreaCheckedItemInfo(@RequestBody FwqStatisticsBean obj) {
|
|
|
+ List<FwqStatisticsBean> returnList = statisticsService_f.getOneCheckedItemInfo(obj);
|
|
|
return super.returnSuccessResult(returnList);
|
|
|
}
|
|
|
|
|
|
@@ -175,37 +175,63 @@ public class StatisticsController_F extends BaseController {
|
|
|
* 公司总览--->12个月考核得分总体
|
|
|
*/
|
|
|
@RequestMapping(value = "/score/year/info")
|
|
|
- public String selectYearScoreChange(@RequestBody FwqStatisticsBean obj){
|
|
|
- List<FwqStatisticsBean> lists= statisticsService_f.getYearScoreChange(obj);
|
|
|
+ public String selectYearScoreChange(@RequestBody FwqStatisticsBean obj) {
|
|
|
+ List<FwqStatisticsBean> lists = statisticsService_f.getYearScoreChange(obj);
|
|
|
return super.returnSuccessResult(lists);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 公司总览--->公司考核扣分情况占比
|
|
|
+ *
|
|
|
* @param obj
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "/score/info")
|
|
|
- public String getScoreInfo(@RequestBody FwqStatisticsBean obj){
|
|
|
- List<FwqStatisticsBean> lists= statisticsService_f.getFeeStationCheckedScore(obj);
|
|
|
- int totalcheckedCount=0,total0=0,total15=0,total50=0,totalOver50=0,totalAll = 0;
|
|
|
- for(FwqStatisticsBean bean:lists){
|
|
|
+ public String getScoreInfo(@RequestBody FwqStatisticsBean obj) {
|
|
|
+ List<FwqStatisticsBean> lists = statisticsService_f.getFeeStationCheckedScore(obj);
|
|
|
+ int totalcheckedCount = 0, total0 = 0, total15 = 0, total50 = 0, totalOver50 = 0;
|
|
|
+ StringBuffer total0Area = new StringBuffer();
|
|
|
+ StringBuffer total15Area = new StringBuffer();
|
|
|
+ StringBuffer total50Area = new StringBuffer();
|
|
|
+ StringBuffer totalOver50Area = new StringBuffer();
|
|
|
+
|
|
|
+ /*for(FwqStatisticsBean bean:lists){
|
|
|
totalcheckedCount+=bean.getChecked_num();
|
|
|
total0+=(bean.getChecked_num()-bean.getScore_fifteen()-bean.getScore_fifty()-bean.getScore_over_fifty());
|
|
|
total15+=bean.getScore_fifteen();
|
|
|
total50+=bean.getScore_fifty();
|
|
|
totalOver50+=bean.getScore_over_fifty();
|
|
|
totalAll+=bean.getAll_check_score();
|
|
|
+ }*/
|
|
|
+ totalcheckedCount = lists.size();
|
|
|
+ for (FwqStatisticsBean bean : lists) {
|
|
|
+ if (bean.getAll_check_score() == 0) {
|
|
|
+ total0 += 1;
|
|
|
+ total0Area.append(bean.getName().replaceAll("服务区", "") + ",");
|
|
|
+ } else if (bean.getAll_check_score() > 0 && bean.getAll_check_score() <= 15) {
|
|
|
+ total15 += 1;
|
|
|
+ total15Area.append(bean.getName().replaceAll("服务区", "") + ",");
|
|
|
+ } else if (bean.getAll_check_score() > 15 && bean.getAll_check_score() <= 50) {
|
|
|
+ total50 += 1;
|
|
|
+ total50Area.append(bean.getName().replaceAll("服务区", "") + ",");
|
|
|
+ } else if (bean.getAll_check_score() > 50) {
|
|
|
+ totalOver50 += 1;
|
|
|
+ totalOver50Area.append(bean.getName().replaceAll("服务区", "") + ",");
|
|
|
+ }
|
|
|
}
|
|
|
- Map<String,Object> resultMap = new HashMap<>();
|
|
|
+ Map<String, Object> resultMap = new HashMap<>();
|
|
|
resultMap.put("list", lists);
|
|
|
resultMap.put("totalcheckedCount", totalcheckedCount);
|
|
|
resultMap.put("total0", total0);
|
|
|
resultMap.put("total15", total15);
|
|
|
resultMap.put("total50", total50);
|
|
|
resultMap.put("totalOver50", totalOver50);
|
|
|
- resultMap.put("totalAll", totalAll);
|
|
|
- resultMap.put("organList", departmentDao.getOrganToSaCount());
|
|
|
+ resultMap.put("total0Area", total0Area);
|
|
|
+ resultMap.put("total15Area", total15Area);
|
|
|
+ resultMap.put("total50Area", total50Area);
|
|
|
+ resultMap.put("totalOver50Area", totalOver50Area);
|
|
|
+// resultMap.put("totalAll", totalAll);
|
|
|
+// resultMap.put("organList", departmentDao.getOrganToSaCount());
|
|
|
return super.returnSuccessResult(resultMap);
|
|
|
}
|
|
|
|
|
|
@@ -213,8 +239,8 @@ public class StatisticsController_F extends BaseController {
|
|
|
* 公司总览--->道管中心得分排名
|
|
|
*/
|
|
|
@RequestMapping(value = "/score/center/manage/info")
|
|
|
- public String selectCentermanageScoreChange(@RequestBody FwqStatisticsBean obj){
|
|
|
- List<FwqStatisticsBean> lists= statisticsService_f.getCenterManageScoreInfo(obj);
|
|
|
+ public String selectCentermanageScoreChange(@RequestBody FwqStatisticsBean obj) {
|
|
|
+ List<FwqStatisticsBean> lists = statisticsService_f.getCenterManageScoreInfo(obj);
|
|
|
return super.returnSuccessResult(lists);
|
|
|
}
|
|
|
|
|
|
@@ -222,8 +248,8 @@ public class StatisticsController_F extends BaseController {
|
|
|
* 公司总览--->公司全体服务区排名
|
|
|
*/
|
|
|
@RequestMapping(value = "/score/tollgate/info")
|
|
|
- public String selectTollgateScoreChange(@RequestBody FwqStatisticsBean obj){
|
|
|
- List<FwqStatisticsBean> lists= statisticsService_f.getFeeStationScoreInfo(obj);
|
|
|
+ public String selectTollgateScoreChange(@RequestBody FwqStatisticsBean obj) {
|
|
|
+ List<FwqStatisticsBean> lists = statisticsService_f.getFeeStationScoreInfo(obj);
|
|
|
return super.returnSuccessResult(lists);
|
|
|
}
|
|
|
|
|
|
@@ -231,8 +257,8 @@ public class StatisticsController_F extends BaseController {
|
|
|
* 公司总览--->温馨服务检查问题类别占比
|
|
|
*/
|
|
|
@RequestMapping(value = "/lost/itemscore/rate")
|
|
|
- public String getCheckedItemInfoRate(@RequestBody FwqStatisticsBean obj){
|
|
|
- List<FwqStatisticsBean> returnList= statisticsService_f.getCheckedItemScoreInfo(obj);
|
|
|
+ public String getCheckedItemInfoRate(@RequestBody FwqStatisticsBean obj) {
|
|
|
+ List<FwqStatisticsBean> returnList = statisticsService_f.getCheckedItemScoreInfo(obj);
|
|
|
return super.returnSuccessResult(returnList);
|
|
|
}
|
|
|
|
|
|
@@ -240,9 +266,9 @@ public class StatisticsController_F extends BaseController {
|
|
|
* 公司总览--->各个问题类别的扣分情况
|
|
|
*/
|
|
|
@RequestMapping(value = "/lost/twice/itemscore/rate")
|
|
|
- public String getTwiceCheckedItemInfoRate(@RequestBody FwqStatisticsBean obj){
|
|
|
- Map<String,Object> resultMap = new HashMap<>();
|
|
|
- Map<String,List<FwqStatisticsBean>> returnMap= statisticsService_f.get2CheckedItemScoreInfo(obj);
|
|
|
+ public String getTwiceCheckedItemInfoRate(@RequestBody FwqStatisticsBean obj) {
|
|
|
+ Map<String, Object> resultMap = new HashMap<>();
|
|
|
+ Map<String, List<FwqStatisticsBean>> returnMap = statisticsService_f.get2CheckedItemScoreInfo(obj);
|
|
|
resultMap.put("itemList", commonService.getCheckItemName(28L));
|
|
|
resultMap.put("list", returnMap);
|
|
|
return super.returnSuccessResult(resultMap);
|
|
|
@@ -252,8 +278,8 @@ public class StatisticsController_F extends BaseController {
|
|
|
* 服务区连续月统计
|
|
|
*/
|
|
|
@RequestMapping(value = "/user/score")
|
|
|
- public String getFsOnePersonCheckedItemDetailInfo(@RequestBody ServiceAreaStatistic obj){
|
|
|
- List<FwqStatisiticPojo> returnList= statisticsService_f.getFwqStatistic(obj);
|
|
|
+ public String getFsOnePersonCheckedItemDetailInfo(@RequestBody ServiceAreaStatistic obj) {
|
|
|
+ List<FwqStatisiticPojo> returnList = statisticsService_f.getFwqStatistic(obj);
|
|
|
return super.returnSuccessResult((returnList));
|
|
|
}
|
|
|
}
|