Browse Source

fix--删除多余代码

master
buaixuexideshitongxue 1 month ago
parent
commit
c2d082a9c8
  1. 53
      src/main/java/com/biutag/supervision/controller/datav/DataVGlobalController.java

53
src/main/java/com/biutag/supervision/controller/datav/DataVGlobalController.java

@ -21,12 +21,7 @@ import java.util.Date;
import java.util.List;
/**
* 数据大屏首页
*
* @author: sh
* @date: 2024/11/7
*/
@Tag(name = "数据大屏一级首页", description = "数据大屏一级首页")
@RestController
@Slf4j
@ -38,24 +33,13 @@ public class DataVGlobalController {
@Resource
private DatavService datavService;
//region 左边
/**
* 机构问题排名
* @return Result<JSONObject>
*/
@Operation(summary = "机构问题排名")
@PostMapping("/getOrganizationRank")
public Result<JSONObject> getOrganizationRank(@RequestBody DataVRequest request) {
return datavService.getOrganizationRank(request);
}
/**
* 业务类型占比
*
* @param beginTime 开始时间
* @param endTime 结束时间
* @return Result<JSONObject>
*/
@Operation(summary = "业务类型占比")
@GetMapping("/getBusinessRate")
public Result<JSONObject> getBusinessRate(@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date beginTime,
@ -66,17 +50,8 @@ public class DataVGlobalController {
JSONObject res = new JSONObject().fluentPut("ywzblist", ywzblist);
return Result.success(res);
}
//endregion
//region 中间
/**
* 获取首页大屏中央数据
*
* @param request 时间
* @return Result<JSONObject>
*/
@Operation(summary = "大屏中央数据")
@PostMapping("/getAllGlobalCount")
public Result<JSONObject> getAllGlobalCount(@RequestBody DataVRequest request) {
@ -84,19 +59,13 @@ public class DataVGlobalController {
}
@Operation(description = "首页大屏地图Icon数据")
@PostMapping("/getGlobalMap")
public Result<JSONObject> getGlobalMap(@RequestBody DataVRequest request) {
return datavService.getGlobalMap(request);
}
/**
* 数据大屏问题趋势统计
*
* @param year 年份
* @return Result<JSONObject>
*/
@Operation(summary = "数据大屏问题趋势统计")
@GetMapping("/getGlobalTrend")
public Result<JSONObject> getGlobalRecentlyTrendByMonth(@RequestParam Integer year) {
@ -105,18 +74,9 @@ public class DataVGlobalController {
JSONObject jsonObject = new JSONObject().fluentPut("globalRecentlyTrendList", GlobalRecentlyTrendList);
return Result.success(jsonObject);
}
//endregion
//region 右边
/**
* 突出问题排名
*
* @param beginTime 开始时间
* @param endTime 结束时间
* @return Result<JSONObject>
*/
@Operation(summary = "突出问题排名")
@GetMapping("/getStrongProblemRate")
public Result<JSONObject> getStrongProblemRate(@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date beginTime,
@ -132,13 +92,6 @@ public class DataVGlobalController {
}
/**
* 问题类型占比
*
* @param beginTime 开始时间
* @param endTime 结束时间
* @return Result<JSONObject>
*/
@Operation(summary = "问题类型占比")
@GetMapping("/getProblemBusinessRate")
public Result<JSONObject> getProblemBusinessRate(@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date beginTime,

Loading…
Cancel
Save