Commit c950ea6e by wqc

大屏新增

parent 4bfbc703
......@@ -51,7 +51,7 @@ public class BigScreenController {
return ResultVo.success(bigScreenService.getYwuType());
}
@ApiOperation("获取线索数据统计")
@ApiOperation("获取市内各地区线索数据统计")
@GetMapping(value = "/getCluesNum")
public ResultVo getCluesNum() {
return ResultVo.success(bigScreenService.getCluesNum());
......@@ -86,4 +86,18 @@ public class BigScreenController {
public ResultVo getPtcgDetails(@ApiParam("1建设应用模型 2全国模型竞赛获奖 3推动建章立制") @RequestParam("type") Integer type) {
return ResultVo.success(bigScreenService.getPtcgDetails(type));
}
@ApiOperation("办案总量")
@GetMapping(value = "/getBazlNums")
public ResultVo getbazlNums() {
return ResultVo.success(bigScreenService.getbazlNums());
}
@ApiOperation("取保候审案件长期未结列表")
@GetMapping(value = "/getQbhsajcqwjList")
public ResultVo getQbhsajcqwjList() {
return ResultVo.success(bigScreenService.getQbhsajcqwjList());
}
}
......@@ -37,8 +37,25 @@ public class BigScreenService {
toDbId = list.getToDbId();
}
JdbcTemplate jdbcTemplate = DatabaseHolder.getJdbcTemplate(toDbId);
List<Map<String, Object>> mapList = jdbcTemplate.queryForList("SELECT mx.`建设进度状态` as jsjd, COUNT(1) as typeCount FROM qsdsjfljdmxsjmx mx GROUP BY mx.`建设进度状态`");
return mapList;
List<Map<String, Object>> cityArea = jdbcTemplate.queryForList("SELECT id,diqu FROM city_area");
List<Object> objects = new ArrayList<>();
for (Map<String, Object> city : cityArea) {
String diqu = city.get("diqu").toString();
Map<String, Object> dataMap = new HashMap<>();
if (diqu.contains("市院")) {
List<Map<String, Object>> mapList = jdbcTemplate.queryForList("SELECT '市院',mx.`建设进度状态` as jsjd, COUNT(1) as typeCount FROM qsdsjfljdmxsjmx mx WHERE mx.`部门` like CONCAT('市院','%') GROUP BY mx.`建设进度状态`");
dataMap.put("mapList", mapList);
} else if (diqu.contains("市总")) {
List<Map<String, Object>> mapList = jdbcTemplate.queryForList("SELECT '市总'as dept,mx.`建设进度状态` as jsjd, COUNT(1) as typeCount FROM qsdsjfljdmxsjmx mx GROUP BY mx.`建设进度状态`");
dataMap.put("mapList", mapList);
} else {
List<Map<String, Object>> mapList = jdbcTemplate.queryForList("SELECT mx.`部门` as dept,mx.`建设进度状态` as jsjd, COUNT(1) as typeCount FROM qsdsjfljdmxsjmx mx WHERE mx.`部门` like CONCAT('%','" + diqu + "','%') GROUP BY mx.`建设进度状态`");
dataMap.put("mapList", mapList);
}
objects.add(dataMap);
}
return objects;
}
public Object getModelCityCount() {
......@@ -55,7 +72,12 @@ public class BigScreenService {
String diqu = city.get("diqu").toString();
String id = city.get("id").toString();
Map<String, Object> dataMap = new HashMap<>();
List<Map<String, Object>> mapLists = jdbcTemplate.queryForList("SELECT mx.`部门` as dept,mx.`模型名称` as modelName,mx.业务条线 as caseType, mx.`建设进度状态` as jsjd FROM qsdsjfljdmxsjmx mx WHERE mx.`部门` like CONCAT('%','" + diqu + "','%')");
List<Map<String, Object>> mapLists = null;
if (diqu.contains("市总")) {
continue;
} else {
mapLists = jdbcTemplate.queryForList("SELECT mx.`部门` as dept,mx.`模型名称` as modelName,mx.业务条线 as caseType, mx.`建设进度状态` as jsjd FROM qsdsjfljdmxsjmx mx WHERE mx.`部门` like CONCAT('%','" + diqu + "','%')");
}
dataMap.put("id", id);
dataMap.put("numCount", mapLists.size());
dataMap.put("cityName", mapLists);
......@@ -137,10 +159,13 @@ public class BigScreenService {
String id = city.get("id").toString();
Map<String, Object> dataMap = new HashMap<>();
if (diqu.contains("市院")) {
List<Map<String, Object>> mapList = jdbcTemplate.queryForList("SELECT '市院' as dept ,SUM(mx.筛查出线索数) as screenNums,SUM(mx.符合监督线索数) as clueNums FROM qsdsjfljdmxsjmx mx WHERE mx.`部门` like CONCAT('市院','%')");
List<Map<String, Object>> mapList = jdbcTemplate.queryForList("SELECT '市院' as dept ,SUM(mx.筛查出线索数) as screenNums,SUM(mx.符合监督线索数) as clueNums,SUM(mx.监督数成效) as effectNums FROM qsdsjfljdmxsjmx mx WHERE mx.`部门` like CONCAT('市院','%')");
dataMap.put("cityNums", mapList);
} else if (diqu.contains("市总")) {
List<Map<String, Object>> mapList = jdbcTemplate.queryForList("SELECT '市总'as dept ,SUM(mx.筛查出线索数) as screenNums,SUM(mx.符合监督线索数) as clueNums,SUM(mx.监督数成效) as effectNums FROM qsdsjfljdmxsjmx mx");
dataMap.put("cityNums", mapList);
} else {
List<Map<String, Object>> mapLists = jdbcTemplate.queryForList("SELECT mx.`部门` as dept,SUM(mx.筛查出线索数) as screenNums,SUM(mx.符合监督线索数) as clueNums FROM qsdsjfljdmxsjmx mx WHERE mx.`部门` like CONCAT('%','" + diqu + "','%') GROUP BY dept");
List<Map<String, Object>> mapLists = jdbcTemplate.queryForList("SELECT mx.`部门` as dept,SUM(mx.筛查出线索数) as screenNums,SUM(mx.符合监督线索数) as clueNums,SUM(mx.监督数成效) as effectNums FROM qsdsjfljdmxsjmx mx WHERE mx.`部门` like CONCAT('%','" + diqu + "','%') GROUP BY dept");
dataMap.put("cityNums", mapLists);
}
dataMap.put("id", id);
......@@ -224,4 +249,27 @@ public class BigScreenService {
}
return list;
}
public Object getbazlNums() {
List<DataCollectSetting> collectList = getCollectList();
Integer toDbId = null;
for (DataCollectSetting list : collectList) {
toDbId = list.getToDbId();
}
JdbcTemplate jdbcTemplate = DatabaseHolder.getJdbcTemplate(toDbId);
List<Map<String, Object>> mapList = jdbcTemplate.queryForList("SELECT `单位` as dept,`1审查逮捕件` as scdbj,`2审查起诉件一审二审审监` as hcqsjysessj,`3民事` as ms,`4行政` as xz,`5公益` as gy,`6职务犯罪立案` as zwfzla,`7其他形执刑申检察建议听证` as qtxzxsjcjytz,`8办案总量件` as bazlj FROM bazl");
return mapList;
}
public Object getQbhsajcqwjList() {
List<DataCollectSetting> collectList = getCollectList();
Integer toDbId = null;
for (DataCollectSetting list : collectList) {
toDbId = list.getToDbId();
}
JdbcTemplate jdbcTemplate = DatabaseHolder.getJdbcTemplate(toDbId);
List<Map<String, Object>> mapList = jdbcTemplate.queryForList("SELECT `单位` as dept,`超过1个半月未结` as oneMonth,`超过2个半月未结`as twoMonth,`超过3个半月未结` as threeMonth,`超过6个半月未结` as sixMonth,`超过1年未结` as oneYear,`合计` as total FROM qbajcqwj");
return mapList;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment