feat(ops): 新增工单业务日志查询接口
- 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:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user