From 220cba3f3148bb95e9d53ab028059b72b962eebf Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期一, 01 九月 2025 23:00:25 +0800
Subject: [PATCH] 分页处理

---
 ruoyi-quartz/src/main/java/com/ruoyi/quartz/controller/CollectHISController.java |   69 ++++++++++++++++++++++++++++++++++
 1 files changed, 69 insertions(+), 0 deletions(-)

diff --git a/ruoyi-quartz/src/main/java/com/ruoyi/quartz/controller/CollectHISController.java b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/controller/CollectHISController.java
new file mode 100644
index 0000000..a5b760f
--- /dev/null
+++ b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/controller/CollectHISController.java
@@ -0,0 +1,69 @@
+package com.ruoyi.quartz.controller;
+
+import com.ruoyi.common.core.controller.BaseController;
+import com.ruoyi.common.core.domain.AjaxResult;
+import com.ruoyi.common.core.domain.entity.SysDept;
+import com.ruoyi.common.core.domain.entity.SysUser;
+import com.ruoyi.quartz.service.ICollectHISService;
+import com.smartor.domain.HnDataGatherVO;
+import com.smartor.domain.Icd10;
+import com.smartor.service.IHNGatherPatArchiveService;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+@Slf4j
+@RestController
+@RequestMapping("/monitor/his")
+@Api(description = "閲囬泦鎮h�呬俊鎭帴鍙�")
+public class CollectHISController extends BaseController {
+    @Autowired
+    private ICollectHISService ichService;
+
+    /**
+     * 娌冲崡鏁版嵁閲囬泦
+     */
+    @PostMapping("/collect")
+    @ApiOperation("鍚屾鐥呬汉鐩稿叧鏁版嵁")
+    public AjaxResult hnDataGather(@RequestBody HnDataGatherVO hnDataGatherVO) {
+        log.info("寮�濮嬫寜澶╁悓姝ョ敤鎴锋暟鎹紝鏃堕棿鑼冨洿: {} 鍒� {}", hnDataGatherVO.getStartTime(), hnDataGatherVO.getEndTime());
+        Boolean aBoolean = ichService.hnDataGather(hnDataGatherVO);
+        return AjaxResult.success(aBoolean);
+    }
+
+    /**
+     * 鏌ヨ鐤剧梾鍒楄〃鏁版嵁閲囬泦
+     */
+    @PostMapping("/collectIcd10")
+    @ApiOperation("鍚屾鏍囧噯璇婃柇")
+    public AjaxResult selectIcd10List(@RequestBody Icd10 icd10) {
+        Integer integer = ichService.selectIcd10List(icd10);
+        return AjaxResult.success(integer);
+    }
+
+    /**
+     * 鐢ㄦ埛淇℃伅闆嗗悎淇℃伅鏁版嵁閲囬泦
+     */
+    @PostMapping("/collectUser")
+    @ApiOperation("鍚屾鐢ㄦ埛淇℃伅")
+    public AjaxResult selectUserList(@RequestBody SysUser sysUser) {
+        Integer integer = ichService.selectUserList(sysUser);
+        return AjaxResult.success(integer);
+    }
+
+    /**
+     * 閮ㄩ棬淇℃伅闆嗗悎淇℃伅鏁版嵁閲囬泦
+     */
+    @PostMapping("/collectDept")
+    @ApiOperation("鍚屾绉戝淇℃伅")
+    public AjaxResult selectDeptList(@RequestBody SysDept sysDept) {
+        Integer integer = ichService.selectDeptList(sysDept);
+        return AjaxResult.success(integer);
+    }
+
+}

--
Gitblit v1.9.3