From 0c621621889c90a119e2ff9e41c4f5528f395f7e Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期五, 16 五月 2025 16:04:18 +0800
Subject: [PATCH] 代码提交

---
 ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatArchiveController.java |   16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatArchiveController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatArchiveController.java
index 355593a..7533e6f 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatArchiveController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatArchiveController.java
@@ -47,7 +47,7 @@
     //@PreAuthorize("@ss.hasPermi('smartor:patarchive:list')")
     @PostMapping("/list")
     public TableDataInfo list(@RequestBody PatArchive patArchive) {
-        startPage();
+        PageUtils.startPageByPost(patArchive.getPageNum(), patArchive.getPageSize());
         List<PatArchive> list = patArchiveService.selectPatArchiveList(patArchive);
         return getDataTable(list);
     }
@@ -173,7 +173,10 @@
     @ApiOperation("鏌ヨ鎮h�呭垪琛�")
     @PostMapping("/patInfoByContion")
     public TableDataInfo patInfoByCondition(@RequestBody PatArchiveReq patArchive) {
-        PageUtils.startPageByPost(patArchive.getPageNum(), patArchive.getPageSize());
+//        PageUtils.startPageByPost(patArchive.getPageNum(), patArchive.getPageSize());
+        LoginUser loginUser = getLoginUser();
+        SysUser user = loginUser.getUser();
+        patArchive.setOrgid(user.getOrgid());
         if (CollectionUtils.isEmpty(patArchive.getLeavehospitaldistrictcodes()) || patArchive.getLeavehospitaldistrictcodes().size() == 0) {
             patArchive.setLeavehospitaldistrictcodes(null);
         }
@@ -198,6 +201,9 @@
     @PostMapping("/exportPatInfo")
     public void exportPpatInfo(HttpServletResponse response, @RequestBody PatArchiveReq patArchive) {
         startPage();
+        LoginUser loginUser = getLoginUser();
+        SysUser user = loginUser.getUser();
+        patArchive.setOrgid(user.getOrgid());
         List<PatArchive> patArchives = patArchiveService.patInfoByContion(patArchive);
         if (!CollectionUtils.isEmpty(patArchives)) {
             for (int i = 0; i < patArchives.size(); i++) {
@@ -215,6 +221,9 @@
     @PostMapping("/getPatientInfo")
     public TableDataInfo getPatientInfo(@RequestBody PatArchiveReq patArchiveReq) {
         PageUtils.startPageByPost(patArchiveReq.getPageNum(), patArchiveReq.getPageSize());
+        LoginUser loginUser = getLoginUser();
+        SysUser user = loginUser.getUser();
+        patArchiveReq.setOrgid(user.getOrgid());
         if (CollectionUtils.isEmpty(patArchiveReq.getLeavehospitaldistrictcodes()) || patArchiveReq.getLeavehospitaldistrictcodes().size() == 0) {
             patArchiveReq.setLeavehospitaldistrictcodes(null);
         }
@@ -238,6 +247,9 @@
     @PostMapping("/getPatientInfoQC")
     public TableDataInfo getPatientInfoQC(@RequestBody PatArchiveReq patArchiveReq) {
         PageUtils.startPageByPost(patArchiveReq.getPageNum(), patArchiveReq.getPageSize());
+        LoginUser loginUser = getLoginUser();
+        SysUser user = loginUser.getUser();
+        patArchiveReq.setOrgid(user.getOrgid());
         if (CollectionUtils.isEmpty(patArchiveReq.getLeavehospitaldistrictcodes()) || patArchiveReq.getLeavehospitaldistrictcodes().size() == 0) {
             patArchiveReq.setLeavehospitaldistrictcodes(null);
         }

--
Gitblit v1.9.3