Browse Source

fit:

1、维权督办:数据抓取字段
master
pengwei 1 month ago
parent
commit
63970c57c3
  1. 8
      src/main/java/com/biutag/supervision/controller/datav/RiskDataController.java
  2. 2
      src/main/java/com/biutag/supervision/pojo/entity/DwdAsjZfbaWfrwfxx.java
  3. 8
      src/main/java/com/biutag/supervision/service/BusinessDepartService.java

8
src/main/java/com/biutag/supervision/controller/datav/RiskDataController.java

@ -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");

2
src/main/java/com/biutag/supervision/pojo/entity/DwdAsjZfbaWfrwfxx.java

@ -17,7 +17,7 @@ public class DwdAsjZfbaWfrwfxx {
@TableField("xm")
private String xm;
@TableField("clfs")
@TableField("clfsmc")
private String clfs;
@TableField("zjhm")

8
src/main/java/com/biutag/supervision/service/BusinessDepartService.java

@ -160,7 +160,7 @@ public class BusinessDepartService extends ServiceImpl<BusinessDepartMapper, Bus
private static void generateBusinessDepartList(List<Date> happenTime, List<GBaseJJD> gBaseJJDSList, Map<String, Long> resultMap, Map<String, String> resultMap2, Map<String, String> resultMap3, List<Long> groupIds, List<BusinessDepart> businessDepartList, List<GBaseAJJBXX> gBaseAJJBXXListSA, List<GBaseAJJBXX> gBaseAJJBXXListLA, List<GBaseAJJBXX> gBaseAJJBXXListPA) {
for (GBaseJJD gBaseJJD : gBaseJJDSList) {
Long groupId = resultMap.get(resultMap2.get(gBaseJJD.getGxdwdm()));
Long groupId = Long.valueOf(resultMap2.get(gBaseJJD.getGxdwdm()));
if (groupId == null) {
continue;
}
@ -169,7 +169,7 @@ public class BusinessDepartService extends ServiceImpl<BusinessDepartMapper, Bus
businessDepartList.add(businessDepart);
}
for (GBaseAJJBXX gBaseAJJBXX : gBaseAJJBXXListSA) {
Long groupId = resultMap.get(resultMap2.get(gBaseAJJBXX.getBADWIDdm()));
Long groupId = Long.valueOf(resultMap2.get(gBaseAJJBXX.getBADWIDdm()));
if (groupId == null) {
continue;
}
@ -178,7 +178,7 @@ public class BusinessDepartService extends ServiceImpl<BusinessDepartMapper, Bus
businessDepartList.add(businessDepart);
}
for (GBaseAJJBXX gBaseAJJBXX : gBaseAJJBXXListLA) {
Long groupId = resultMap.get(resultMap2.get(gBaseAJJBXX.getBADWIDdm()));
Long groupId = Long.valueOf(resultMap2.get(gBaseAJJBXX.getBADWIDdm()));
if (groupId == null) {
continue;
}
@ -187,7 +187,7 @@ public class BusinessDepartService extends ServiceImpl<BusinessDepartMapper, Bus
businessDepartList.add(businessDepart);
}
for (GBaseAJJBXX gBaseAJJBXX : gBaseAJJBXXListPA) {
Long groupId = resultMap.get(resultMap2.get(gBaseAJJBXX.getBADWIDdm()));
Long groupId = Long.valueOf(resultMap2.get(gBaseAJJBXX.getBADWIDdm()));
if (groupId == null) {
continue;
}

Loading…
Cancel
Save