|
|
|
|
@ -73,7 +73,7 @@ public class RiskDataController {
|
|
|
|
|
+ beginTimeStr + " 00:00:00' AND '" + endTimeStr + " 23:59:59' GROUP BY a.membersCode, a.membersName ORDER BY problemNumber DESC LIMIT 10;"; |
|
|
|
|
return Result.success(statisticsService.riskStatisticsBigOrg(sql, type)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// --【民警 问题发生率】
|
|
|
|
|
@GetMapping("/risk/police/a/statistics") |
|
|
|
|
public Result<List<RiskStatisticsVo>> riskPoliceAStatistics(@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date beginTime, @RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date endTime, @RequestParam String type) { |
|
|
|
|
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd"); |
|
|
|
|
@ -89,7 +89,7 @@ public class RiskDataController {
|
|
|
|
|
} |
|
|
|
|
return Result.success(statisticsService.riskStatisticsBigOrg(sql, "avgProblemNumber")); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// -- 辅警/协警 问题发生率】
|
|
|
|
|
@GetMapping("/risk/police/b/statistics") |
|
|
|
|
public Result<List<RiskStatisticsVo>> riskPoliceBStatistics(@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date beginTime, @RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date endTime, @RequestParam String type) { |
|
|
|
|
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd"); |
|
|
|
|
@ -105,7 +105,7 @@ public class RiskDataController {
|
|
|
|
|
} |
|
|
|
|
return Result.success(statisticsService.riskStatisticsBigOrg(sql, "problemNumber")); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// -- 领导问题发生率
|
|
|
|
|
@GetMapping("/risk/leader/statistics") |
|
|
|
|
public Result<List<RiskStatisticsVo>> riskLeaderStatistics(@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date beginTime, @RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date endTime, @RequestParam String type) { |
|
|
|
|
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd"); |
|
|
|
|
@ -154,7 +154,7 @@ public class RiskDataController {
|
|
|
|
|
+ beginTimeStr + " 00:00:00' AND '" + endTimeStr + " 23:59:59' GROUP BY a.membersCode, a.membersName ORDER BY problemNumber DESC LIMIT 10;"; |
|
|
|
|
return Result.success(statisticsService.riskStatisticsBigOrg(sql, type)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 【民警 问题数】
|
|
|
|
|
@GetMapping("/police/a/negative/statistics") |
|
|
|
|
public Result<List<RiskStatisticsVo>> policeANegativeStatistics(@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date beginTime, @RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date endTime, @RequestParam String type) { |
|
|
|
|
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd"); |
|
|
|
|
|