From 77ab08e5fc74c1756841b4c535b28f46d95b16f3 Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期五, 13 九月 2024 16:28:44 +0800
Subject: [PATCH] 装机先检查设备是否存在

---
 jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/jobrecord/JobRecordController.java |   16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/jobrecord/JobRecordController.java b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/jobrecord/JobRecordController.java
index b18ac68..2830e19 100644
--- a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/jobrecord/JobRecordController.java
+++ b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/jobrecord/JobRecordController.java
@@ -1,5 +1,6 @@
 package cn.lihu.jh.module.ecg.controller.admin.jobrecord;
 
+import cn.lihu.jh.framework.security.core.util.SecurityFrameworkUtils;
 import org.springframework.web.bind.annotation.*;
 import org.springframework.validation.annotation.Validated;
 import org.springframework.security.access.prepost.PreAuthorize;
@@ -79,6 +80,18 @@
         return success(BeanUtils.toBean(pageResult, JobRecordRespVO.class));
     }
 
+    @GetMapping("/doctor-page")
+    @Operation(summary = "鑾峰緱鐢ㄦ埛鑷繁鐨勫伐浣滆褰曞垎椤�")
+    @PreAuthorize("@ss.hasPermission('ecg:doctor:task')")
+    public CommonResult<PageResult<JobRecordRespVO>> getJobRecordDoctorPage(@Valid JobRecordPageReqVO pageReqVO) {
+        Long userId = SecurityFrameworkUtils.getLoginUserId();
+        String userNickname = SecurityFrameworkUtils.getLoginUserNickname();
+
+        pageReqVO.setDocId( userId );
+        PageResult<JobRecordDO> pageResult = jobRecordService.getJobRecordPage(pageReqVO);
+        return success(BeanUtils.toBean(pageResult, JobRecordRespVO.class));
+    }
+
     @GetMapping("/export-excel")
     @Operation(summary = "瀵煎嚭宸ヤ綔璁板綍 Excel")
     @PreAuthorize("@ss.hasPermission('ecg:job-record:export')")
@@ -92,5 +105,4 @@
                         BeanUtils.toBean(list, JobRecordRespVO.class));
     }
 
-}
-
+}
\ No newline at end of file

--
Gitblit v1.9.3