|
|
@@ -1,5 +1,6 @@
|
|
|
package com.xintong.visualinspection.controller;
|
|
|
|
|
|
+import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
|
@@ -16,7 +17,6 @@ import com.xintong.visualinspection.bean.CheckmanStatisticsBean;
|
|
|
import com.xintong.visualinspection.bean.StatisticsBean;
|
|
|
import com.xintong.visualinspection.bean.StatisticsBo;
|
|
|
import com.xintong.visualinspection.bean.StatisticsFsWork;
|
|
|
-import com.xintong.visualinspection.bean.Team;
|
|
|
import com.xintong.visualinspection.service.StatisticsService;
|
|
|
|
|
|
/**
|
|
|
@@ -52,7 +52,28 @@ public class StatisticsController extends BaseController {
|
|
|
@RequestMapping(value = "/score/info")
|
|
|
public String getScoreInfo(@RequestBody StatisticsBean obj){
|
|
|
List<StatisticsBean> lists= statisticsService.getFeeStationCheckedScore(obj);
|
|
|
- return super.returnSuccessResult(lists);
|
|
|
+ int totalMan=0,totalcheckedMan=0,totalcheckedCount=0,total0=0,total15=0,total50=0,totalOver50=0,totalAll = 0;
|
|
|
+ for(StatisticsBean bean:lists){
|
|
|
+ totalMan+=bean.getPeople_num();
|
|
|
+ totalcheckedMan+=bean.getChecked_people_num();
|
|
|
+ totalcheckedCount+=bean.getChecked_num();
|
|
|
+ total0+=(bean.getChecked_people_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();
|
|
|
+ }
|
|
|
+ Map<String,Object> resultMap = new HashMap<String,Object>();
|
|
|
+ resultMap.put("list", lists);
|
|
|
+ resultMap.put("totalMan", totalMan);
|
|
|
+ resultMap.put("totalcheckedMan", totalcheckedMan);
|
|
|
+ resultMap.put("totalcheckedCount", totalcheckedCount);
|
|
|
+ resultMap.put("total0", total0);
|
|
|
+ resultMap.put("total15", total15);
|
|
|
+ resultMap.put("total50", total50);
|
|
|
+ resultMap.put("totalOver50", totalOver50);
|
|
|
+ resultMap.put("totalAll", totalAll);
|
|
|
+ return super.returnSuccessResult(resultMap);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -61,6 +82,25 @@ public class StatisticsController extends BaseController {
|
|
|
@RequestMapping(value = "/score/item/info")
|
|
|
public String getScoreItemInfo(@RequestBody StatisticsBean obj){
|
|
|
List<StatisticsBean> lists= statisticsService.getFeeStationCheckItemScore(obj);
|
|
|
+// int totalMan=0,totalcheckedMan=0,totalcheckedCount=0,totalAll=0;
|
|
|
+// Map<String,Integer> scoreTypeMap = new HashMap<String,Integer>();
|
|
|
+// for(StatisticsBean bean:lists){
|
|
|
+// totalMan+=bean.getPeople_num();
|
|
|
+// totalcheckedMan+=bean.getChecked_people_num();
|
|
|
+// totalcheckedCount+=bean.getChecked_num();
|
|
|
+// totalAll+=bean.getAll_check_score();
|
|
|
+// bean.get
|
|
|
+// }
|
|
|
+// Map<String,Object> resultMap = new HashMap<String,Object>();
|
|
|
+// resultMap.put("list", lists);
|
|
|
+// resultMap.put("totalMan", totalMan);
|
|
|
+// resultMap.put("totalcheckedMan", totalcheckedMan);
|
|
|
+// resultMap.put("totalcheckedCount", totalcheckedCount);
|
|
|
+// resultMap.put("total0", total0);
|
|
|
+// resultMap.put("total15", total15);
|
|
|
+// resultMap.put("total50", total50);
|
|
|
+// resultMap.put("totalOver50", totalOver50);
|
|
|
+// resultMap.put("totalAll", totalAll);
|
|
|
return super.returnSuccessResult(lists);
|
|
|
}
|
|
|
|