From 4f45f29e6b53f4c01b414409c5000ff4e212b3d9 Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期五, 05 六月 2026 13:36:54 +0800
Subject: [PATCH] 增加eip
---
report-server/src/main/java/com/ruoyi/report/controller/SampleRecordController.java | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 54 insertions(+), 0 deletions(-)
diff --git a/report-server/src/main/java/com/ruoyi/report/controller/SampleRecordController.java b/report-server/src/main/java/com/ruoyi/report/controller/SampleRecordController.java
new file mode 100644
index 0000000..66e9780
--- /dev/null
+++ b/report-server/src/main/java/com/ruoyi/report/controller/SampleRecordController.java
@@ -0,0 +1,54 @@
+package com.ruoyi.report.controller;
+
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.ruoyi.common.core.domain.Result;
+import com.ruoyi.report.dto.SampleRecordDto;
+import com.ruoyi.report.service.SampleRecordService;
+import com.ruoyi.report.vo.SampleRecordVo;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import lombok.AllArgsConstructor;
+import org.springframework.web.bind.annotation.*;
+
+import javax.servlet.http.HttpServletResponse;
+import java.util.List;
+
+/**
+ * 鏍峰搧棰嗘牱璁板綍鎺у埗鍣�
+ */
+@RequestMapping("/report/sampleRecord")
+@RestController
+@AllArgsConstructor
+@Api(tags = "鏍峰搧棰嗘牱璁板綍")
+public class SampleRecordController {
+
+ private SampleRecordService sampleRecordService;
+
+ /**
+ * 鍒嗛〉鏌ヨ棰嗘牱璁板綍
+ */
+ @ApiOperation(value = "鍒嗛〉鏌ヨ棰嗘牱璁板綍")
+ @GetMapping("/page")
+ public Result page(SampleRecordDto dto, Page page) {
+ return Result.success(sampleRecordService.pageSampleRecord(page, dto));
+ }
+
+ /**
+ * 鏌ヨ鏍峰搧娴佽浆璁板綍
+ */
+ @ApiOperation(value = "鏌ヨ鏍峰搧娴佽浆璁板綍")
+ @GetMapping("/flow")
+ public Result flow(@RequestParam Long sampleId) {
+ return Result.success(sampleRecordService.getFlowRecord(sampleId));
+ }
+
+ /**
+ * 瀵煎嚭璁板綍
+ */
+ @ApiOperation(value = "瀵煎嚭璁板綍")
+ @GetMapping("/export")
+ public void export(SampleRecordDto dto, HttpServletResponse response) {
+ sampleRecordService.exportSampleRecord(dto, response);
+ }
+
+}
\ No newline at end of file
--
Gitblit v1.9.3