feat(ops): 新增工单业务日志查询接口
Some checks failed
Java CI with Maven / build (11) (push) Has been cancelled
Java CI with Maven / build (17) (push) Has been cancelled
Java CI with Maven / build (8) (push) Has been cancelled

- OpsOrderService/Impl: 新增 getOrderBusinessLogs,将 OpsBusinessEventLogDO
  转换为前端友好的 OpsOrderBusinessLogRespDTO(type/title/operator/status/extra)
- OpsOrderController: 新增 GET /business-logs/{orderId} 端点
- 新增 OpsOrderBusinessLogRespDTO 和 OpsOrderBusinessLogsRespDTO

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
lzh
2026-02-03 15:41:04 +08:00
parent fe64216286
commit 8c03253446
3 changed files with 102 additions and 0 deletions

View File

@@ -141,4 +141,13 @@ public class OpsOrderController {
return success(true);
}
@GetMapping("/business-logs/{orderId}")
@Operation(summary = "获取工单业务日志")
@Parameter(name = "orderId", description = "工单ID", required = true)
@PreAuthorize("@ss.hasPermission('ops:order:query')")
public CommonResult<OpsOrderBusinessLogsRespDTO> getOrderBusinessLogs(@PathVariable("orderId") Long orderId) {
OpsOrderBusinessLogsRespDTO logs = opsOrderService.getOrderBusinessLogs(orderId);
return success(logs);
}
}