feat(ops): 巡检统计接口(合格率、不合格热点区域 TOP10)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
lzh
2026-03-05 20:13:13 +08:00
parent 743875e65e
commit f70402587d
5 changed files with 145 additions and 0 deletions

View File

@@ -62,4 +62,11 @@ public class InspectionController {
return success(BeanUtils.toBean(pageResult, InspectionRecordRespVO.class));
}
@GetMapping("/record/stats")
@Operation(summary = "获得巡检统计(合格率、不合格热点区域)")
@PreAuthorize("@ss.hasPermission('ops:inspection:query')")
public CommonResult<InspectionStatsRespVO> getInspectionStats(@Valid InspectionStatsReqVO reqVO) {
return success(inspectionRecordService.getInspectionStats(reqVO));
}
}