|
|
|
|
@ -28,9 +28,9 @@ import static com.biutag.supervision.constants.enums.ProblemSourcesEnum.*;
|
|
|
|
|
/** |
|
|
|
|
* @Auther: sh |
|
|
|
|
* @Date: 2024/12/4 16:30 |
|
|
|
|
* @Description: 首页一级子屏 |
|
|
|
|
* @Description: 首页二级大屏 |
|
|
|
|
*/ |
|
|
|
|
@Tag(name = "首页一级子屏") |
|
|
|
|
@Tag(name = "首页二级大屏") |
|
|
|
|
@RequestMapping("datav/sub1/") |
|
|
|
|
@RequiredArgsConstructor |
|
|
|
|
@RestController |
|
|
|
|
@ -42,7 +42,7 @@ public class SubOneController {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// region右边
|
|
|
|
|
@Operation(summary = "获取首页一级子屏督察问题排名") |
|
|
|
|
@Operation(summary = "获取首页二级大屏督察问题排名") |
|
|
|
|
@GetMapping("/getSubOneSupervisionRank") |
|
|
|
|
public Result<JSONObject> getSubOneSupervisionRank(@RequestParam Integer departPId, |
|
|
|
|
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date beginTime, |
|
|
|
|
@ -67,13 +67,13 @@ public class SubOneController {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 获取一级子屏总览 |
|
|
|
|
* 获取首页二级大屏总览 |
|
|
|
|
* @param departPId 2级单位的id |
|
|
|
|
* @param beginTime 开始时间 |
|
|
|
|
* @param endTime 结束时间 |
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
@Operation(summary = "获取一级子屏总览") |
|
|
|
|
@Operation(summary = "获取首页二级大屏总览") |
|
|
|
|
@GetMapping("/getSubOneOverView") |
|
|
|
|
public Result<JSONObject> getSubOneOverView(@RequestParam Integer departPId, |
|
|
|
|
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date beginTime, |
|
|
|
|
@ -92,7 +92,7 @@ public class SubOneController {
|
|
|
|
|
* @param year 年份 |
|
|
|
|
* @return EchartsVo的list |
|
|
|
|
*/ |
|
|
|
|
@Operation(summary = "获取一级子屏问题趋势") |
|
|
|
|
@Operation(summary = "获取首页二级大屏问题趋势") |
|
|
|
|
@GetMapping("/getSubOneTrend") |
|
|
|
|
public Result<JSONObject> getSubOneTrend(@RequestParam Integer departPId, @RequestParam Integer year) { |
|
|
|
|
List<EchartsVo> superviseProTrend = subOneService.getSubOneTrend(departPId, year, XCDC.getValue(), ZXDC.getValue(), SPDC.getValue()); // 督察问题趋势
|
|
|
|
|
@ -114,7 +114,7 @@ public class SubOneController {
|
|
|
|
|
* @param departPId 2级单位的id |
|
|
|
|
* @return json格式的地图数据 |
|
|
|
|
*/ |
|
|
|
|
@Operation(summary = "获取一级子屏地图JSON") |
|
|
|
|
@Operation(summary = "获取二级大屏地图JSON") |
|
|
|
|
@GetMapping("/getSubOneStreetMap") |
|
|
|
|
public Result<JSONObject> getSubOneStreetMap(@RequestParam Integer departPId) { |
|
|
|
|
List<CountyStreetDept> depts = countyStreetDeptService.getSubOneStreetMap(departPId); |
|
|
|
|
@ -131,8 +131,8 @@ public class SubOneController {
|
|
|
|
|
properties.put("name", dept.getName()); |
|
|
|
|
properties.put("id", dept.getId()); |
|
|
|
|
feature.put("properties", properties); // 第二个键值
|
|
|
|
|
log.info("===========现在的id是=============="); |
|
|
|
|
log.info(dept.getId().toString()); |
|
|
|
|
// log.info("===========现在的id是==============");
|
|
|
|
|
// log.info(dept.getId().toString());
|
|
|
|
|
|
|
|
|
|
feature.put("geometry", new Gson().fromJson(dept.getGeometry(), Object.class)); // 第三个键值
|
|
|
|
|
features.add(feature); |
|
|
|
|
@ -147,14 +147,14 @@ public class SubOneController {
|
|
|
|
|
// region右边
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 获取首页一级子屏案件核查排名 |
|
|
|
|
* 获取首页二级大屏案件核查排名 |
|
|
|
|
* |
|
|
|
|
* @param departPId 2级单位的id |
|
|
|
|
* @param beginTime 开始时间 |
|
|
|
|
* @param endTime 结束时间 |
|
|
|
|
* @return 总览和排名 |
|
|
|
|
*/ |
|
|
|
|
@Operation(summary = "获取首页一级子屏案件核查排名") |
|
|
|
|
@Operation(summary = "获取首页二级大屏案件核查排名") |
|
|
|
|
@GetMapping("/getSubOneCaseVerifyRank") |
|
|
|
|
public Result<JSONObject> getSubOneCaseVerifyRank(@RequestParam Integer departPId, |
|
|
|
|
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date beginTime, |
|
|
|
|
|