fix(ops): 移除废弃接口
This commit is contained in:
@@ -4,8 +4,6 @@ import com.viewsh.framework.common.pojo.CommonResult;
|
||||
import com.viewsh.framework.common.pojo.PageResult;
|
||||
import com.viewsh.module.ops.api.clean.QuickStatsRespDTO;
|
||||
import com.viewsh.module.ops.controller.admin.workorder.vo.statistics.DashboardStatsRespVO;
|
||||
import com.viewsh.module.ops.controller.admin.workorder.vo.statistics.TrafficRealtimeRespVO;
|
||||
import com.viewsh.module.ops.controller.admin.workorder.vo.statistics.TrafficTrendRespVO;
|
||||
import com.viewsh.module.ops.controller.admin.workorder.vo.statistics.WorkspaceStatsRespVO;
|
||||
import com.viewsh.module.ops.environment.service.dashboard.CleanDashboardService;
|
||||
import com.viewsh.module.ops.service.OrderDetailVO;
|
||||
@@ -118,17 +116,6 @@ public class OrderCenterController {
|
||||
return success(opsStatisticsService.getDashboardStats(orderType, startDate, endDate));
|
||||
}
|
||||
|
||||
@GetMapping("/traffic-realtime")
|
||||
@Operation(summary = "实时客流监测")
|
||||
@PreAuthorize("@ss.hasPermission('ops:order-center:query')")
|
||||
public CommonResult<TrafficRealtimeRespVO> getTrafficRealtime() {
|
||||
if (opsStatisticsService == null) {
|
||||
log.warn("[getTrafficRealtime] OpsStatisticsService 未注入,返回默认值");
|
||||
return success(TrafficRealtimeRespVO.builder().build());
|
||||
}
|
||||
return success(opsStatisticsService.getTrafficRealtime());
|
||||
}
|
||||
|
||||
@GetMapping("/workspace-stats")
|
||||
@Operation(summary = "工作台统计")
|
||||
@PreAuthorize("@ss.hasPermission('ops:order-center:query')")
|
||||
@@ -140,14 +127,4 @@ public class OrderCenterController {
|
||||
return success(opsStatisticsService.getWorkspaceStats());
|
||||
}
|
||||
|
||||
@GetMapping("/traffic-trend")
|
||||
@Operation(summary = "近7天客流趋势统计")
|
||||
@PreAuthorize("@ss.hasPermission('ops:order-center:query')")
|
||||
public CommonResult<TrafficTrendRespVO> getTrafficTrend() {
|
||||
if (opsStatisticsService == null) {
|
||||
log.warn("[getTrafficTrend] OpsStatisticsService 未注入,返回默认值");
|
||||
return success(TrafficTrendRespVO.builder().build());
|
||||
}
|
||||
return success(opsStatisticsService.getTrafficTrend());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user