diff --git a/healthlink-his-server/healthlink-his-application/src/main/java/com/healthlink/his/web/Inspection/controller/ClinicalManageLaboratoryController.java b/healthlink-his-server/healthlink-his-application/src/main/java/com/healthlink/his/web/Inspection/controller/ClinicalManageLaboratoryController.java new file mode 100644 index 000000000..df7164d76 --- /dev/null +++ b/healthlink-his-server/healthlink-his-application/src/main/java/com/healthlink/his/web/Inspection/controller/ClinicalManageLaboratoryController.java @@ -0,0 +1,37 @@ +package com.healthlink.his.web.Inspection.controller; + +import com.core.common.core.domain.R; +import com.healthlink.his.web.Inspection.appservice.ILaboratoryManageAppService; +import com.healthlink.his.web.Inspection.dto.ReportResultManageDto; +import lombok.AllArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.springframework.web.bind.annotation.*; + +import jakarta.servlet.http.HttpServletRequest; + +/** + * 前端 lisPascResult 页面 API 兼容映射 + * 前端调用 /clinical-manage/laboratory/* 和 /clinical-manage/observation/* + * 路由到已有的 /inspection/* 服务 + */ +@RestController +@Slf4j +@AllArgsConstructor +@RequestMapping("/clinical-manage/laboratory") +public class ClinicalManageLaboratoryController { + private final ILaboratoryManageAppService appService; + + @GetMapping("/result-page") + public R getResultPage(ReportResultManageDto dto, + @RequestParam(value = "pageNo", defaultValue = "1") Integer pageNo, + @RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize, + @RequestParam(name = "searchKey", required = false) String searchKey, + HttpServletRequest request) { + return appService.getReportResultList(dto, pageNo, pageSize, searchKey, request); + } + + @GetMapping("/result-detail/{id}") + public R getResultDetail(@PathVariable Long id) { + return appService.getReportById(id); + } +} \ No newline at end of file diff --git a/healthlink-his-server/healthlink-his-application/src/main/java/com/healthlink/his/web/Inspection/controller/ClinicalManageObservationController.java b/healthlink-his-server/healthlink-his-application/src/main/java/com/healthlink/his/web/Inspection/controller/ClinicalManageObservationController.java new file mode 100644 index 000000000..68712743a --- /dev/null +++ b/healthlink-his-server/healthlink-his-application/src/main/java/com/healthlink/his/web/Inspection/controller/ClinicalManageObservationController.java @@ -0,0 +1,30 @@ +package com.healthlink.his.web.Inspection.controller; + +import com.core.common.core.domain.R; +import lombok.AllArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.springframework.web.bind.annotation.*; + +import java.util.Collections; + +/** + * 前端 lisPascResult 检查结果 API 兼容映射 + * 后端暂无检查结果独立服务,返回空列表避免前端报错 + * TODO: 接入检查报告数据源后替换实现 + */ +@RestController +@Slf4j +@AllArgsConstructor +@RequestMapping("/clinical-manage/observation") +public class ClinicalManageObservationController { + + @GetMapping("/result-page") + public R getResultPage(@RequestParam(value = "pageNo", defaultValue = "1") Integer pageNo, + @RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize) { + // 暂时返回空列表,前端可正常渲染 + return R.ok(new java.util.HashMap() {{ + put("records", Collections.emptyList()); + put("total", 0); + }}); + } +} \ No newline at end of file