From a69aafe60ce001834b981778f12fd74d4af77e23 Mon Sep 17 00:00:00 2001
From: zqy <2522236926@qq.com>
Date: 星期日, 23 六月 2024 22:04:42 +0800
Subject: [PATCH] 小医生修改&下载分享数据

---
 zhang-content/src/main/java/com/ruoyi/service/impl/ZfDoctorShareServiceImpl.java |   18 ++++++++++++++----
 1 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/zhang-content/src/main/java/com/ruoyi/service/impl/ZfDoctorShareServiceImpl.java b/zhang-content/src/main/java/com/ruoyi/service/impl/ZfDoctorShareServiceImpl.java
index cef2d83..b2a34d5 100644
--- a/zhang-content/src/main/java/com/ruoyi/service/impl/ZfDoctorShareServiceImpl.java
+++ b/zhang-content/src/main/java/com/ruoyi/service/impl/ZfDoctorShareServiceImpl.java
@@ -6,10 +6,7 @@
 import com.ruoyi.common.core.domain.entity.SysUser;
 import com.ruoyi.common.utils.SecurityUtils;
 import com.ruoyi.common.utils.StringUtils;
-import com.ruoyi.domain.ShareMore;
-import com.ruoyi.domain.ZInfoUser;
-import com.ruoyi.domain.ZfDoctor;
-import com.ruoyi.domain.ZfDoctorShare;
+import com.ruoyi.domain.*;
 import com.ruoyi.mapper.ZfDoctorShareMapper;
 import com.ruoyi.service.ZInfoUserService;
 import com.ruoyi.service.ZfDoctorService;
@@ -172,5 +169,18 @@
         return myself.getUserId();
 
     }
+    @Override
+    public Long getShareId(ZfDoctorDownload zfDoctorDownload){
+        LambdaQueryWrapper<ZfDoctorShare> lqw = new LambdaQueryWrapper<>();
+        lqw.eq(ZfDoctorShare::getShareId,zfDoctorDownload.getDownloadId())
+                .eq(ZfDoctorShare::getShareContent,zfDoctorDownload.getDownloadContent());
+        List<ZfDoctorShare> beanRecords = list(lqw);
+        if (beanRecords.size() != 0){
+            return beanRecords.get(0).getUserId();
+        }
+        else {
+            return null;
+        }
+    }
 
 }

--
Gitblit v1.9.1