| | |
| | | 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; |
| | |
| | | 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.*; |
| | | |
| | |
| | | */ |
| | | @PostMapping("/share") |
| | | public AjaxResult share(@RequestBody ShareMore zfDoctor){ |
| | | zfDoctor.setSysMenuId(2019L); |
| | | return zfDoctorShareService.saveZa(zfDoctor); |
| | | } |
| | | |
| | |
| | | */ |
| | | @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) ; |
| | |
| | | */ |
| | | @PostMapping("/deleteInfoByUserId") |
| | | public AjaxResult deleteEmpower(@RequestBody ShareMore zfDoctor){ |
| | | zfDoctor.setSysMenuId(2019L); |
| | | return zfDoctorShareService.deleteZa(zfDoctor); |
| | | } |
| | | |
| | |
| | | * 下载分享的数据 |
| | | */ |
| | | @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); |
| | | } |
| | | |
| | | } |