From 2723e04976f006ace42c6c53627b87e1cc95ff07 Mon Sep 17 00:00:00 2001 From: zqy <2522236926@qq.com> Date: 星期三, 31 七月 2024 12:27:48 +0800 Subject: [PATCH] 修改bug&分享 --- ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfDoctorShareController.java | 26 ++++++++++++-------------- 1 files changed, 12 insertions(+), 14 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfDoctorShareController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfDoctorShareController.java index ea95f3a..604ee7f 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfDoctorShareController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfDoctorShareController.java @@ -1,14 +1,11 @@ package com.ruoyi.web.controller.zhang; -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.text.Convert; -import com.ruoyi.common.utils.MapUtils; import com.ruoyi.common.utils.ServletUtils; import com.ruoyi.domain.ShareMore; -import com.ruoyi.domain.ZfDoctor; -import com.ruoyi.domain.ZfDoctorDownload; +import com.ruoyi.domain.ZfDownload; import com.ruoyi.service.ZInfoUserService; import com.ruoyi.service.ZfDoctorDownloadService; import com.ruoyi.service.ZfDoctorService; @@ -16,10 +13,6 @@ import org.springframework.web.bind.annotation.*; import javax.annotation.Resource; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.stream.Collectors; import static com.ruoyi.common.core.page.TableSupport.*; @@ -42,6 +35,7 @@ */ @PostMapping("/share") public AjaxResult share(@RequestBody ShareMore zfDoctor){ + zfDoctor.setSysMenuId(2019L); return zfDoctorShareService.saveZa(zfDoctor); } @@ -50,6 +44,7 @@ */ @PostMapping("/getInfoByUserId") public AjaxResult empowerGetInfo(@RequestBody ShareMore zfDoctor){ + zfDoctor.setSysMenuId(2019L); Integer pageNo = Convert.toInt(ServletUtils.getParameter(PAGE_NO), 1); Integer pageSize = Convert.toInt(ServletUtils.getParameter(PAGE_SIZE), 10); return zfDoctorShareService.listByFidAid(zfDoctor,pageNo,pageSize) ; @@ -59,16 +54,17 @@ * 鐢ㄦ埛鑷繁鏌ョ湅鍒汉鍒嗕韩鐨勬暟鎹拰鍒嗕韩浜� */ @GetMapping("/getInfoByShareId") - public AjaxResult empowerGetInfo2(@RequestBody ShareMore zfDoctor){ + public AjaxResult empowerGetInfo2(){ Integer pageNo = Convert.toInt(ServletUtils.getParameter(PAGE_NO), 1); Integer pageSize = Convert.toInt(ServletUtils.getParameter(PAGE_SIZE), 10); - return zfDoctorShareService.listUserId(zfDoctor,pageNo ,pageSize); + return zfDoctorShareService.listUserId(pageNo ,pageSize); } /** * 鏍规嵁userId鍜宻hareId鏀跺洖宸茬粡鎺堟潈缁欓偅浜涗汉 */ @PostMapping("/deleteInfoByUserId") public AjaxResult deleteEmpower(@RequestBody ShareMore zfDoctor){ + zfDoctor.setSysMenuId(2019L); return zfDoctorShareService.deleteZa(zfDoctor); } @@ -76,18 +72,20 @@ * 涓嬭浇鍒嗕韩鐨勬暟鎹� */ @PostMapping("/downloadDate") - public AjaxResult ifDownLoad(@RequestBody ZfDoctorDownload zfDoctorDownload){ - return zfDoctorDownloadService.addData(zfDoctorDownload); + public AjaxResult ifDownLoad(@RequestBody ZfDownload zfDownload){ + zfDownload.setSysMenuId(2019L); + return zfDoctorDownloadService.addData(zfDownload); } /** * 灞曠ず涓嬭浇鍒嗕韩鐨勬暟鎹� */ @GetMapping("/all") - public AjaxResult data(ZfDoctorDownload zfDoctorDownload){ + public AjaxResult data(ZfDownload zfDownload){ + zfDownload.setSysMenuId(2019L); Integer pageNo = Convert.toInt(ServletUtils.getParameter(PAGE_NO), 1); Integer pageSize = Convert.toInt(ServletUtils.getParameter(PAGE_SIZE), 10); - return zfDoctorDownloadService.selectDoctorList(zfDoctorDownload,pageNo ,pageSize); + return zfDoctorDownloadService.selectDoctorList(zfDownload,pageNo ,pageSize); } } -- Gitblit v1.9.1