From ecc40c241fa80f0cd053a6dcfc99ba440b788629 Mon Sep 17 00:00:00 2001 From: zqy <2522236926@qq.com> Date: 星期五, 02 八月 2024 19:41:20 +0800 Subject: [PATCH] 分享 --- zhang-content/src/main/java/com/ruoyi/service/impl/ZfContactDownlServiceImpl.java | 2 ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfEquipShareController.java | 83 ++++++ zhang-content/src/main/java/com/ruoyi/service/impl/TravelSharServiceImpl.java | 2 zhang-content/src/main/java/com/ruoyi/service/impl/ZfCleanDownloadServiceImpl.java | 4 zhang-content/src/main/java/com/ruoyi/service/impl/ZfEconomySharServiceImpl.java | 2 zhang-content/src/main/java/com/ruoyi/service/ZfEquipDownloadService.java | 2 zhang-content/src/main/java/com/ruoyi/service/ZfPetSharService.java | 2 zhang-content/src/main/java/com/ruoyi/service/impl/ZfContactShraServiceImpl.java | 2 ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfCollectionShareController.java | 83 ++++++ zhang-content/src/main/java/com/ruoyi/service/impl/ZfEquipDownloadServiceImpl.java | 2 zhang-content/src/main/java/com/ruoyi/service/ZfEquipShareService.java | 2 zhang-content/src/main/java/com/ruoyi/service/impl/ZfEconomyDownlServiceImpl.java | 2 zhang-content/src/main/java/com/ruoyi/service/impl/ZfPetDownlServiceImpl.java | 2 zhang-content/src/main/java/com/ruoyi/service/impl/ZfEquipShareServiceImpl.java | 2 zhang-content/src/main/java/com/ruoyi/service/ZfCleanDownloadService.java | 2 zhang-content/src/main/java/com/ruoyi/service/ZfPetDownlService.java | 2 zhang-content/src/main/java/com/ruoyi/service/ZfEconomyDownlService.java | 2 ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfCleanShareController.java | 83 ++++++ zhang-content/src/main/java/com/ruoyi/service/impl/TravelDownServiceImpl.java | 2 ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfContactShareController.java | 83 ++++++ zhang-content/src/main/java/com/ruoyi/service/ZfEconomyShaService.java | 2 zhang-content/src/main/java/com/ruoyi/service/ZfCollectionDownloadService.java | 2 zhang-content/src/main/java/com/ruoyi/service/ZfCleanShareService.java | 2 zhang-content/src/main/java/com/ruoyi/service/impl/ZfCollectionShaServiceImpl.java | 189 +++++++++++++++ zhang-content/src/main/java/com/ruoyi/service/impl/ZfPetSharServiceImpl.java | 2 zhang-content/src/main/java/com/ruoyi/service/ZfContactShraService.java | 2 zhang-content/src/main/java/com/ruoyi/service/TravelDownlService.java | 2 ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfPetSharController.java | 4 zhang-content/src/main/java/com/ruoyi/service/impl/ZfCleanShareServiceImpl.java | 2 ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfEconomySharController.java | 83 ++++++ zhang-content/src/main/java/com/ruoyi/service/ZfCollectionShareService.java | 2 zhang-content/src/main/java/com/ruoyi/service/ZfContactDownlService.java | 2 ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/TravelSharController.java | 4 zhang-content/src/main/java/com/ruoyi/service/impl/ZfCollectionDownlServiceImpl.java | 4 zhang-content/src/main/java/com/ruoyi/service/TravelSharService.java | 2 35 files changed, 670 insertions(+), 0 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/TravelSharController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/TravelSharController.java new file mode 100644 index 0000000..7e9961d --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/TravelSharController.java @@ -0,0 +1,4 @@ +package com.ruoyi.web.controller.zhang; + +public class TravelSharController { +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfCleanShareController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfCleanShareController.java new file mode 100644 index 0000000..25e88f6 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfCleanShareController.java @@ -0,0 +1,83 @@ +package com.ruoyi.web.controller.zhang; + +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.ServletUtils; +import com.ruoyi.domain.ShareMore; +import com.ruoyi.domain.ZfDownload; +import com.ruoyi.service.ZfCleanDownloadService; +import com.ruoyi.service.ZfCleanShareService; +import com.ruoyi.service.ZfEventDownloadService; +import com.ruoyi.service.ZfEventShareService; +import org.springframework.web.bind.annotation.*; + +import javax.annotation.Resource; + +import static com.ruoyi.common.core.page.TableSupport.PAGE_NO; +import static com.ruoyi.common.core.page.TableSupport.PAGE_SIZE; + +@RestController +@RequestMapping("/zfCleanShare") +public class ZfCleanShareController extends BaseController { + @Resource + ZfCleanDownloadService zfCleanDownloadController; + + @Resource + ZfCleanShareService zfCleanShareService; + + @PostMapping("/share") + public AjaxResult share(@RequestBody ShareMore zfDoctor){ + zfDoctor.setSysMenuId(2020L); + return zfCleanShareService.saveZa(zfDoctor); + } + + /** + * 鏍规嵁UserId鍜屽垎浜汉shareId鏌ョ湅宸茬粡鎺堟潈缁欓偅浜涗汉閭d簺鏁版嵁 + */ + @PostMapping("/getInfoByUserId") + public AjaxResult empowerGetInfo(@RequestBody ShareMore zfDoctor){ + zfDoctor.setSysMenuId(2020L); + Integer pageNo = Convert.toInt(ServletUtils.getParameter(PAGE_NO), 1); + Integer pageSize = Convert.toInt(ServletUtils.getParameter(PAGE_SIZE), 10); + return zfCleanShareService.listByFidAid(zfDoctor,pageNo,pageSize) ; + } + + /** + * 鐢ㄦ埛鑷繁鏌ョ湅鍒汉鍒嗕韩鐨勬暟鎹拰鍒嗕韩浜� + */ + @GetMapping("/getInfoByShareId") + public AjaxResult empowerGetInfo2(){ + Integer pageNo = Convert.toInt(ServletUtils.getParameter(PAGE_NO), 1); + Integer pageSize = Convert.toInt(ServletUtils.getParameter(PAGE_SIZE), 10); + return zfCleanShareService.listUserId(pageNo ,pageSize); + } + /** + * 鏍规嵁userId鍜宻hareId鏀跺洖宸茬粡鎺堟潈缁欓偅浜涗汉 + */ + @PostMapping("/deleteInfoByUserId") + public AjaxResult deleteEmpower(@RequestBody ShareMore zfDoctor){ + zfDoctor.setSysMenuId(2020L); + return zfCleanShareService.deleteZa(zfDoctor); + } + + /** + * 涓嬭浇鍒嗕韩鐨勬暟鎹� + */ + @PostMapping("/downloadDate") + public AjaxResult ifDownLoad(@RequestBody ZfDownload zfDownload){ + zfDownload.setSysMenuId(2020L); + return zfCleanDownloadController.addData(zfDownload); + } + + /** + * 灞曠ず涓嬭浇鍒嗕韩鐨勬暟鎹� + */ + @GetMapping("/all") + public AjaxResult data(ZfDownload zfDownload){ + zfDownload.setSysMenuId(2020L); + Integer pageNo = Convert.toInt(ServletUtils.getParameter(PAGE_NO), 1); + Integer pageSize = Convert.toInt(ServletUtils.getParameter(PAGE_SIZE), 10); + return zfCleanDownloadController.selectDoctorList(zfDownload,pageNo ,pageSize); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfCollectionShareController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfCollectionShareController.java new file mode 100644 index 0000000..b97c12e --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfCollectionShareController.java @@ -0,0 +1,83 @@ +package com.ruoyi.web.controller.zhang; + +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.ServletUtils; +import com.ruoyi.domain.ShareMore; +import com.ruoyi.domain.ZfDownload; +import com.ruoyi.service.ZfCollectionDownloadService; +import com.ruoyi.service.ZfCollectionShareService; +import com.ruoyi.service.ZfEventDownloadService; +import com.ruoyi.service.ZfEventShareService; +import org.springframework.web.bind.annotation.*; + +import javax.annotation.Resource; + +import static com.ruoyi.common.core.page.TableSupport.PAGE_NO; +import static com.ruoyi.common.core.page.TableSupport.PAGE_SIZE; + +@RestController +@RequestMapping("/zfCollectionShare") +public class ZfCollectionShareController extends BaseController { + @Resource + ZfCollectionShareService zfCollectionShareService; + + @Resource + ZfCollectionDownloadService zfCollectionDownloadService; + + @PostMapping("/share") + public AjaxResult share(@RequestBody ShareMore zfDoctor){ + zfDoctor.setSysMenuId(2018L); + return zfCollectionShareService.saveZa(zfDoctor); + } + + /** + * 鏍规嵁UserId鍜屽垎浜汉shareId鏌ョ湅宸茬粡鎺堟潈缁欓偅浜涗汉閭d簺鏁版嵁 + */ + @PostMapping("/getInfoByUserId") + public AjaxResult empowerGetInfo(@RequestBody ShareMore zfDoctor){ + zfDoctor.setSysMenuId(2018L); + Integer pageNo = Convert.toInt(ServletUtils.getParameter(PAGE_NO), 1); + Integer pageSize = Convert.toInt(ServletUtils.getParameter(PAGE_SIZE), 10); + return zfCollectionShareService.listByFidAid(zfDoctor,pageNo,pageSize) ; + } + + /** + * 鐢ㄦ埛鑷繁鏌ョ湅鍒汉鍒嗕韩鐨勬暟鎹拰鍒嗕韩浜� + */ + @GetMapping("/getInfoByShareId") + public AjaxResult empowerGetInfo2(){ + Integer pageNo = Convert.toInt(ServletUtils.getParameter(PAGE_NO), 1); + Integer pageSize = Convert.toInt(ServletUtils.getParameter(PAGE_SIZE), 10); + return zfCollectionShareService.listUserId(pageNo ,pageSize); + } + /** + * 鏍规嵁userId鍜宻hareId鏀跺洖宸茬粡鎺堟潈缁欓偅浜涗汉 + */ + @PostMapping("/deleteInfoByUserId") + public AjaxResult deleteEmpower(@RequestBody ShareMore zfDoctor){ + zfDoctor.setSysMenuId(2018L); + return zfCollectionShareService.deleteZa(zfDoctor); + } + + /** + * 涓嬭浇鍒嗕韩鐨勬暟鎹� + */ + @PostMapping("/downloadDate") + public AjaxResult ifDownLoad(@RequestBody ZfDownload zfDownload){ + zfDownload.setSysMenuId(2018L); + return zfCollectionDownloadService.addData(zfDownload); + } + + /** + * 灞曠ず涓嬭浇鍒嗕韩鐨勬暟鎹� + */ + @GetMapping("/all") + public AjaxResult data(ZfDownload zfDownload){ + zfDownload.setSysMenuId(2018L); + Integer pageNo = Convert.toInt(ServletUtils.getParameter(PAGE_NO), 1); + Integer pageSize = Convert.toInt(ServletUtils.getParameter(PAGE_SIZE), 10); + return zfCollectionDownloadService.selectDoctorList(zfDownload,pageNo ,pageSize); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfContactShareController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfContactShareController.java new file mode 100644 index 0000000..3b565dc --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfContactShareController.java @@ -0,0 +1,83 @@ +package com.ruoyi.web.controller.zhang; + +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.ServletUtils; +import com.ruoyi.domain.ShareMore; +import com.ruoyi.domain.ZfDownload; +import com.ruoyi.service.ZfCollectionDownloadService; +import com.ruoyi.service.ZfCollectionShareService; +import com.ruoyi.service.ZfContactDownlService; +import com.ruoyi.service.ZfContactShraService; +import org.springframework.web.bind.annotation.*; + +import javax.annotation.Resource; + +import static com.ruoyi.common.core.page.TableSupport.PAGE_NO; +import static com.ruoyi.common.core.page.TableSupport.PAGE_SIZE; + +@RestController +@RequestMapping("/zfContactShare") +public class ZfContactShareController extends BaseController { + @Resource + ZfContactShraService zfContactShraService; + + @Resource + ZfContactDownlService zfContactDownlService; + + @PostMapping("/share") + public AjaxResult share(@RequestBody ShareMore zfDoctor){ + zfDoctor.setSysMenuId(2021L); + return zfContactShraService.saveZa(zfDoctor); + } + + /** + * 鏍规嵁UserId鍜屽垎浜汉shareId鏌ョ湅宸茬粡鎺堟潈缁欓偅浜涗汉閭d簺鏁版嵁 + */ + @PostMapping("/getInfoByUserId") + public AjaxResult empowerGetInfo(@RequestBody ShareMore zfDoctor){ + zfDoctor.setSysMenuId(2021L); + Integer pageNo = Convert.toInt(ServletUtils.getParameter(PAGE_NO), 1); + Integer pageSize = Convert.toInt(ServletUtils.getParameter(PAGE_SIZE), 10); + return zfContactShraService.listByFidAid(zfDoctor,pageNo,pageSize) ; + } + + /** + * 鐢ㄦ埛鑷繁鏌ョ湅鍒汉鍒嗕韩鐨勬暟鎹拰鍒嗕韩浜� + */ + @GetMapping("/getInfoByShareId") + public AjaxResult empowerGetInfo2(){ + Integer pageNo = Convert.toInt(ServletUtils.getParameter(PAGE_NO), 1); + Integer pageSize = Convert.toInt(ServletUtils.getParameter(PAGE_SIZE), 10); + return zfContactShraService.listUserId(pageNo ,pageSize); + } + /** + * 鏍规嵁userId鍜宻hareId鏀跺洖宸茬粡鎺堟潈缁欓偅浜涗汉 + */ + @PostMapping("/deleteInfoByUserId") + public AjaxResult deleteEmpower(@RequestBody ShareMore zfDoctor){ + zfDoctor.setSysMenuId(2021L); + return zfContactShraService.deleteZa(zfDoctor); + } + + /** + * 涓嬭浇鍒嗕韩鐨勬暟鎹� + */ + @PostMapping("/downloadDate") + public AjaxResult ifDownLoad(@RequestBody ZfDownload zfDownload){ + zfDownload.setSysMenuId(2021L); + return zfContactDownlService.addData(zfDownload); + } + + /** + * 灞曠ず涓嬭浇鍒嗕韩鐨勬暟鎹� + */ + @GetMapping("/all") + public AjaxResult data(ZfDownload zfDownload){ + zfDownload.setSysMenuId(2021L); + Integer pageNo = Convert.toInt(ServletUtils.getParameter(PAGE_NO), 1); + Integer pageSize = Convert.toInt(ServletUtils.getParameter(PAGE_SIZE), 10); + return zfContactDownlService.selectDoctorList(zfDownload,pageNo ,pageSize); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfEconomySharController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfEconomySharController.java new file mode 100644 index 0000000..cfb9c1b --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfEconomySharController.java @@ -0,0 +1,83 @@ +package com.ruoyi.web.controller.zhang; + +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.ServletUtils; +import com.ruoyi.domain.ShareMore; +import com.ruoyi.domain.ZfDownload; +import com.ruoyi.service.ZfCollectionDownloadService; +import com.ruoyi.service.ZfCollectionShareService; +import com.ruoyi.service.ZfEconomyDownlService; +import com.ruoyi.service.ZfEconomyShaService; +import org.springframework.web.bind.annotation.*; + +import javax.annotation.Resource; + +import static com.ruoyi.common.core.page.TableSupport.PAGE_NO; +import static com.ruoyi.common.core.page.TableSupport.PAGE_SIZE; + +@RestController +@RequestMapping("/zfEconomyShare") +public class ZfEconomySharController extends BaseController { + @Resource + ZfEconomyShaService zfEconomyShaService; + + @Resource + ZfEconomyDownlService zfEconomyDownlService; + + @PostMapping("/share") + public AjaxResult share(@RequestBody ShareMore zfDoctor){ + zfDoctor.setSysMenuId(2023L); + return zfEconomyShaService.saveZa(zfDoctor); + } + + /** + * 鏍规嵁UserId鍜屽垎浜汉shareId鏌ョ湅宸茬粡鎺堟潈缁欓偅浜涗汉閭d簺鏁版嵁 + */ + @PostMapping("/getInfoByUserId") + public AjaxResult empowerGetInfo(@RequestBody ShareMore zfDoctor){ + zfDoctor.setSysMenuId(2023L); + Integer pageNo = Convert.toInt(ServletUtils.getParameter(PAGE_NO), 1); + Integer pageSize = Convert.toInt(ServletUtils.getParameter(PAGE_SIZE), 10); + return zfEconomyShaService.listByFidAid(zfDoctor,pageNo,pageSize) ; + } + + /** + * 鐢ㄦ埛鑷繁鏌ョ湅鍒汉鍒嗕韩鐨勬暟鎹拰鍒嗕韩浜� + */ + @GetMapping("/getInfoByShareId") + public AjaxResult empowerGetInfo2(){ + Integer pageNo = Convert.toInt(ServletUtils.getParameter(PAGE_NO), 1); + Integer pageSize = Convert.toInt(ServletUtils.getParameter(PAGE_SIZE), 10); + return zfEconomyShaService.listUserId(pageNo ,pageSize); + } + /** + * 鏍规嵁userId鍜宻hareId鏀跺洖宸茬粡鎺堟潈缁欓偅浜涗汉 + */ + @PostMapping("/deleteInfoByUserId") + public AjaxResult deleteEmpower(@RequestBody ShareMore zfDoctor){ + zfDoctor.setSysMenuId(2023L); + return zfEconomyShaService.deleteZa(zfDoctor); + } + + /** + * 涓嬭浇鍒嗕韩鐨勬暟鎹� + */ + @PostMapping("/downloadDate") + public AjaxResult ifDownLoad(@RequestBody ZfDownload zfDownload){ + zfDownload.setSysMenuId(2023L); + return zfEconomyDownlService.addData(zfDownload); + } + + /** + * 灞曠ず涓嬭浇鍒嗕韩鐨勬暟鎹� + */ + @GetMapping("/all") + public AjaxResult data(ZfDownload zfDownload){ + zfDownload.setSysMenuId(2023L); + Integer pageNo = Convert.toInt(ServletUtils.getParameter(PAGE_NO), 1); + Integer pageSize = Convert.toInt(ServletUtils.getParameter(PAGE_SIZE), 10); + return zfEconomyDownlService.selectDoctorList(zfDownload,pageNo ,pageSize); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfEquipShareController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfEquipShareController.java new file mode 100644 index 0000000..917b412 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfEquipShareController.java @@ -0,0 +1,83 @@ +package com.ruoyi.web.controller.zhang; + +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.ServletUtils; +import com.ruoyi.domain.ShareMore; +import com.ruoyi.domain.ZfDownload; +import com.ruoyi.service.ZfEconomyDownlService; +import com.ruoyi.service.ZfEconomyShaService; +import com.ruoyi.service.ZfEquipDownloadService; +import com.ruoyi.service.ZfEquipShareService; +import org.springframework.web.bind.annotation.*; + +import javax.annotation.Resource; + +import static com.ruoyi.common.core.page.TableSupport.PAGE_NO; +import static com.ruoyi.common.core.page.TableSupport.PAGE_SIZE; + +@RestController +@RequestMapping("zfEquipmentShare") +public class ZfEquipShareController extends BaseController { + @Resource + ZfEquipShareService zfEquipShareService; + + @Resource + ZfEquipDownloadService zfEquipDownloadService; + + @PostMapping("/share") + public AjaxResult share(@RequestBody ShareMore zfDoctor){ + zfDoctor.setSysMenuId(2017L); + return zfEquipShareService.saveZa(zfDoctor); + } + + /** + * 鏍规嵁UserId鍜屽垎浜汉shareId鏌ョ湅宸茬粡鎺堟潈缁欓偅浜涗汉閭d簺鏁版嵁 + */ + @PostMapping("/getInfoByUserId") + public AjaxResult empowerGetInfo(@RequestBody ShareMore zfDoctor){ + zfDoctor.setSysMenuId(2017L); + Integer pageNo = Convert.toInt(ServletUtils.getParameter(PAGE_NO), 1); + Integer pageSize = Convert.toInt(ServletUtils.getParameter(PAGE_SIZE), 10); + return zfEquipShareService.listByFidAid(zfDoctor,pageNo,pageSize) ; + } + + /** + * 鐢ㄦ埛鑷繁鏌ョ湅鍒汉鍒嗕韩鐨勬暟鎹拰鍒嗕韩浜� + */ + @GetMapping("/getInfoByShareId") + public AjaxResult empowerGetInfo2(){ + Integer pageNo = Convert.toInt(ServletUtils.getParameter(PAGE_NO), 1); + Integer pageSize = Convert.toInt(ServletUtils.getParameter(PAGE_SIZE), 10); + return zfEquipShareService.listUserId(pageNo ,pageSize); + } + /** + * 鏍规嵁userId鍜宻hareId鏀跺洖宸茬粡鎺堟潈缁欓偅浜涗汉 + */ + @PostMapping("/deleteInfoByUserId") + public AjaxResult deleteEmpower(@RequestBody ShareMore zfDoctor){ + zfDoctor.setSysMenuId(2017L); + return zfEquipShareService.deleteZa(zfDoctor); + } + + /** + * 涓嬭浇鍒嗕韩鐨勬暟鎹� + */ + @PostMapping("/downloadDate") + public AjaxResult ifDownLoad(@RequestBody ZfDownload zfDownload){ + zfDownload.setSysMenuId(2017L); + return zfEquipDownloadService.addData(zfDownload); + } + + /** + * 灞曠ず涓嬭浇鍒嗕韩鐨勬暟鎹� + */ + @GetMapping("/all") + public AjaxResult data(ZfDownload zfDownload){ + zfDownload.setSysMenuId(2017L); + Integer pageNo = Convert.toInt(ServletUtils.getParameter(PAGE_NO), 1); + Integer pageSize = Convert.toInt(ServletUtils.getParameter(PAGE_SIZE), 10); + return zfEquipDownloadService.selectDoctorList(zfDownload,pageNo ,pageSize); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfPetSharController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfPetSharController.java new file mode 100644 index 0000000..ff5a81b --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfPetSharController.java @@ -0,0 +1,4 @@ +package com.ruoyi.web.controller.zhang; + +public class ZfPetSharController { +} diff --git a/zhang-content/src/main/java/com/ruoyi/service/TravelDownlService.java b/zhang-content/src/main/java/com/ruoyi/service/TravelDownlService.java new file mode 100644 index 0000000..82604e5 --- /dev/null +++ b/zhang-content/src/main/java/com/ruoyi/service/TravelDownlService.java @@ -0,0 +1,2 @@ +package com.ruoyi.service;public interface TravelDownlService { +} diff --git a/zhang-content/src/main/java/com/ruoyi/service/TravelSharService.java b/zhang-content/src/main/java/com/ruoyi/service/TravelSharService.java new file mode 100644 index 0000000..fd80b0e --- /dev/null +++ b/zhang-content/src/main/java/com/ruoyi/service/TravelSharService.java @@ -0,0 +1,2 @@ +package com.ruoyi.service;public class TravelSharService { +} diff --git a/zhang-content/src/main/java/com/ruoyi/service/ZfCleanDownloadService.java b/zhang-content/src/main/java/com/ruoyi/service/ZfCleanDownloadService.java new file mode 100644 index 0000000..9caea94 --- /dev/null +++ b/zhang-content/src/main/java/com/ruoyi/service/ZfCleanDownloadService.java @@ -0,0 +1,2 @@ +package com.ruoyi.service;public interface ZfCleanDownloadService { +} diff --git a/zhang-content/src/main/java/com/ruoyi/service/ZfCleanShareService.java b/zhang-content/src/main/java/com/ruoyi/service/ZfCleanShareService.java new file mode 100644 index 0000000..cc18dfb --- /dev/null +++ b/zhang-content/src/main/java/com/ruoyi/service/ZfCleanShareService.java @@ -0,0 +1,2 @@ +package com.ruoyi.service;public class ZfCleanShareService { +} diff --git a/zhang-content/src/main/java/com/ruoyi/service/ZfCollectionDownloadService.java b/zhang-content/src/main/java/com/ruoyi/service/ZfCollectionDownloadService.java new file mode 100644 index 0000000..acee57d --- /dev/null +++ b/zhang-content/src/main/java/com/ruoyi/service/ZfCollectionDownloadService.java @@ -0,0 +1,2 @@ +package com.ruoyi.service;public interface ZfCollectionDownloadServie { +} diff --git a/zhang-content/src/main/java/com/ruoyi/service/ZfCollectionShareService.java b/zhang-content/src/main/java/com/ruoyi/service/ZfCollectionShareService.java new file mode 100644 index 0000000..40bfa15 --- /dev/null +++ b/zhang-content/src/main/java/com/ruoyi/service/ZfCollectionShareService.java @@ -0,0 +1,2 @@ +package com.ruoyi.service;public interface ZfCollectionShareService { +} diff --git a/zhang-content/src/main/java/com/ruoyi/service/ZfContactDownlService.java b/zhang-content/src/main/java/com/ruoyi/service/ZfContactDownlService.java new file mode 100644 index 0000000..9f756d3 --- /dev/null +++ b/zhang-content/src/main/java/com/ruoyi/service/ZfContactDownlService.java @@ -0,0 +1,2 @@ +package com.ruoyi.service;public interface ZfContactDownlService { +} diff --git a/zhang-content/src/main/java/com/ruoyi/service/ZfContactShraService.java b/zhang-content/src/main/java/com/ruoyi/service/ZfContactShraService.java new file mode 100644 index 0000000..d73fe26 --- /dev/null +++ b/zhang-content/src/main/java/com/ruoyi/service/ZfContactShraService.java @@ -0,0 +1,2 @@ +package com.ruoyi.service;public class ZfContactShraService { +} diff --git a/zhang-content/src/main/java/com/ruoyi/service/ZfEconomyDownlService.java b/zhang-content/src/main/java/com/ruoyi/service/ZfEconomyDownlService.java new file mode 100644 index 0000000..b482232 --- /dev/null +++ b/zhang-content/src/main/java/com/ruoyi/service/ZfEconomyDownlService.java @@ -0,0 +1,2 @@ +package com.ruoyi.service;public interface ZfEconomyDownlService { +} diff --git a/zhang-content/src/main/java/com/ruoyi/service/ZfEconomyShaService.java b/zhang-content/src/main/java/com/ruoyi/service/ZfEconomyShaService.java new file mode 100644 index 0000000..0c6cc61 --- /dev/null +++ b/zhang-content/src/main/java/com/ruoyi/service/ZfEconomyShaService.java @@ -0,0 +1,2 @@ +package com.ruoyi.service;public interface ZfEconomyShaService { +} diff --git a/zhang-content/src/main/java/com/ruoyi/service/ZfEquipDownloadService.java b/zhang-content/src/main/java/com/ruoyi/service/ZfEquipDownloadService.java new file mode 100644 index 0000000..ab7ebeb --- /dev/null +++ b/zhang-content/src/main/java/com/ruoyi/service/ZfEquipDownloadService.java @@ -0,0 +1,2 @@ +package com.ruoyi.service;public interface ZfEquipDoenloadService { +} diff --git a/zhang-content/src/main/java/com/ruoyi/service/ZfEquipShareService.java b/zhang-content/src/main/java/com/ruoyi/service/ZfEquipShareService.java new file mode 100644 index 0000000..01affa6 --- /dev/null +++ b/zhang-content/src/main/java/com/ruoyi/service/ZfEquipShareService.java @@ -0,0 +1,2 @@ +package com.ruoyi.service;public interface ZfEquipShareService { +} diff --git a/zhang-content/src/main/java/com/ruoyi/service/ZfPetDownlService.java b/zhang-content/src/main/java/com/ruoyi/service/ZfPetDownlService.java new file mode 100644 index 0000000..508dd67 --- /dev/null +++ b/zhang-content/src/main/java/com/ruoyi/service/ZfPetDownlService.java @@ -0,0 +1,2 @@ +package com.ruoyi.service;public interface ZfPetDownlService { +} diff --git a/zhang-content/src/main/java/com/ruoyi/service/ZfPetSharService.java b/zhang-content/src/main/java/com/ruoyi/service/ZfPetSharService.java new file mode 100644 index 0000000..7a2b97f --- /dev/null +++ b/zhang-content/src/main/java/com/ruoyi/service/ZfPetSharService.java @@ -0,0 +1,2 @@ +package com.ruoyi.service;public interface ZfPetSharService { +} diff --git a/zhang-content/src/main/java/com/ruoyi/service/impl/TravelDownServiceImpl.java b/zhang-content/src/main/java/com/ruoyi/service/impl/TravelDownServiceImpl.java new file mode 100644 index 0000000..bf74509 --- /dev/null +++ b/zhang-content/src/main/java/com/ruoyi/service/impl/TravelDownServiceImpl.java @@ -0,0 +1,2 @@ +package com.ruoyi.service.impl;public class TravelDownServiceImpl { +} diff --git a/zhang-content/src/main/java/com/ruoyi/service/impl/TravelSharServiceImpl.java b/zhang-content/src/main/java/com/ruoyi/service/impl/TravelSharServiceImpl.java new file mode 100644 index 0000000..55b9739 --- /dev/null +++ b/zhang-content/src/main/java/com/ruoyi/service/impl/TravelSharServiceImpl.java @@ -0,0 +1,2 @@ +package com.ruoyi.service.impl;public class TravelSharServiceImpl { +} diff --git a/zhang-content/src/main/java/com/ruoyi/service/impl/ZfCleanDownloadServiceImpl.java b/zhang-content/src/main/java/com/ruoyi/service/impl/ZfCleanDownloadServiceImpl.java new file mode 100644 index 0000000..266424b --- /dev/null +++ b/zhang-content/src/main/java/com/ruoyi/service/impl/ZfCleanDownloadServiceImpl.java @@ -0,0 +1,4 @@ +package com.ruoyi.service.impl; + +public class ZfCleanDownloadService { +} diff --git a/zhang-content/src/main/java/com/ruoyi/service/impl/ZfCleanShareServiceImpl.java b/zhang-content/src/main/java/com/ruoyi/service/impl/ZfCleanShareServiceImpl.java new file mode 100644 index 0000000..9037607 --- /dev/null +++ b/zhang-content/src/main/java/com/ruoyi/service/impl/ZfCleanShareServiceImpl.java @@ -0,0 +1,2 @@ +package com.ruoyi.service.impl;public class ZfCleanShareServiceImp { +} diff --git a/zhang-content/src/main/java/com/ruoyi/service/impl/ZfCollectionDownlServiceImpl.java b/zhang-content/src/main/java/com/ruoyi/service/impl/ZfCollectionDownlServiceImpl.java new file mode 100644 index 0000000..8d35dfe --- /dev/null +++ b/zhang-content/src/main/java/com/ruoyi/service/impl/ZfCollectionDownlServiceImpl.java @@ -0,0 +1,4 @@ +package com.ruoyi.service.impl; + +public class ZfCollectionShareServiceImpl { +} diff --git a/zhang-content/src/main/java/com/ruoyi/service/impl/ZfCollectionShaServiceImpl.java b/zhang-content/src/main/java/com/ruoyi/service/impl/ZfCollectionShaServiceImpl.java new file mode 100644 index 0000000..b801735 --- /dev/null +++ b/zhang-content/src/main/java/com/ruoyi/service/impl/ZfCollectionShaServiceImpl.java @@ -0,0 +1,189 @@ +package com.ruoyi.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.domain.entity.SysUser; +import com.ruoyi.common.utils.MapUtils; +import com.ruoyi.common.utils.SecurityUtils; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.domain.*; +import com.ruoyi.mapper.ZfShareMapper; +import com.ruoyi.service.*; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.stream.Collectors; + +@Slf4j +@Service +public class ZfCollectionDownloadServiceImpl extends ServiceImpl<ZfShareMapper, ZfShare> implements ZfCollectionShareService { + + + @Resource + ZfCollectionService zfCollectionService; + + @Resource + private ZInfoUserService zInfoUserService; + + private LambdaQueryWrapper<ZfShare> uniqueCondition(ZfShare zfShare) { + LambdaQueryWrapper<ZfShare> lqw = new LambdaQueryWrapper<>(); + lqw.eq(StringUtils.isNotEmpty(String.valueOf(zfShare.getShareId())), ZfShare::getShareId, zfShare.getShareId()); + lqw.eq(StringUtils.isNotEmpty(String.valueOf(zfShare.getShareContent())), ZfShare::getShareContent, zfShare.getShareContent()); + lqw.eq(StringUtils.isNotEmpty(String.valueOf(zfShare.getSysMenuId())), ZfShare::getSysMenuId, zfShare.getSysMenuId()); + return lqw; + } + + @Override + public List<ZfShare> getAuthority() { + SysUser user = SecurityUtils.getLoginUser().getUser(); + Long userId = user.getUserId(); + + LambdaQueryWrapper<ZfShare> lqw = new LambdaQueryWrapper<>(); + lqw.eq(ZfShare::getShareId,userId); + + return list(lqw); + } + + public Long getUserId(){ + ZInfoUser myself = zInfoUserService.getMyself(); + return myself.getUserId(); + + } + + public void addData(ZfShare za) + { + LambdaQueryWrapper<ZfShare> lqw = uniqueCondition(za); + List<ZfShare> list = list(lqw); + + if(list.size()>0){ + throw new RuntimeException("璇峰嬁鍒嗕韩閲嶅鏁版嵁"); + } + else { + save(za); + } + + } + + @Override + public AjaxResult saveZa(ShareMore shareMore) { + Long [] shareIds = shareMore.getShareIds(); + Long [] shareContents = shareMore.getShareContents(); + for (Long shareId : shareIds) { + for (Long shareContent : shareContents) { + ZfShare za = new ZfShare(); + za.setUserId(getUserId()); + za.setShareContent(shareContent); + za.setShareId(shareId); + za.setSysMenuId(2002L); + addData(za); + } + } + // Long [] + // if(bl) + return AjaxResult.success("鍒嗕韩鎴愬姛!"); + } + + @Override + public AjaxResult listByFidAid(ShareMore shareMore, Integer pageNo, Integer pageSize) { + Long [] shareIds = shareMore.getShareIds(); + List<ZfCollection> beanRecord3 = new ArrayList<>(); + for (Long shareId : shareIds) { + { + LambdaQueryWrapper<ZfShare> lqw = new LambdaQueryWrapper<>(); + lqw.eq(ZfShare::getShareId,shareId) + .eq(ZfShare::getSysMenuId,shareMore.getSysMenuId()) + .eq(ZfShare::getUserId, getUserId()); + List<ZfShare> beanRecords = list(lqw); + for (ZfShare beanRecord : beanRecords ) { + beanRecord3.add(zfCollectionService.getById(beanRecord.getShareContent())); + } + } + } + List<ZfCollection> record = beanRecord3.stream().skip((pageNo-1)*pageSize).limit(pageSize).collect(Collectors.toList()); + + int totalPage = (beanRecord3.size() -1) / pageSize +1; + + Page<ZfCollection> zfPropertyPage = new Page<>(pageNo, pageSize,totalPage); + HashMap<String, Object> data = MapUtils.getShareResult(zfPropertyPage, record,beanRecord3.size()); + + return AjaxResult.success(data); + } + + @Override + public AjaxResult deleteZa(ShareMore shareMore) { + Long [] shareIds = shareMore.getShareIds(); + Long [] shareContents = shareMore.getShareContents(); + for(Long shareId : shareIds) + for(Long shareContent: shareContents) + { + LambdaQueryWrapper<ZfShare> lqw = new LambdaQueryWrapper<>(); + lqw.eq(ZfShare::getShareId,shareId) + .eq(ZfShare::getShareContent, shareContent) + .eq(ZfShare::getSysMenuId, shareMore.getSysMenuId()) + .eq(ZfShare::getUserId, getUserId()); + + remove(lqw); + // addData(za); + } + return AjaxResult.success("鏁版嵁鏀跺洖鎴愬姛!"); + } + + @Override + public AjaxResult listByUserId() { + HashMap<Long,List<ZfCollection>> bs = new HashMap<>(); + LambdaQueryWrapper<ZfShare> lqw = new LambdaQueryWrapper<>(); + lqw.eq(ZfShare::getShareId,getUserId()); + lqw.eq(ZfShare::getSysMenuId,2002L); + List<ZfShare> beanRecords = list(lqw); + List<ZfCollection> b1 = new ArrayList<>(); + for (ZfShare beanRecord : beanRecords ) { + b1.add(zfCollectionService.getById(beanRecord.getShareContent())); + bs.put(beanRecord.getUserId(),b1); + } + log.info("浠庢暟鎹簱涓煡鍒扮殑涓�:{}", bs); + return AjaxResult.success(bs); + } + + @Override + public AjaxResult listUserId(Integer pageNo, Integer pageSize) { + List<ZfCollection> bs = new ArrayList<>(); + LambdaQueryWrapper<ZfShare> lqw = new LambdaQueryWrapper<>(); + lqw.eq(ZfShare::getShareId,getUserId()); + lqw.eq(ZfShare::getSysMenuId,2002L); + List<ZfShare> beanRecords = list(lqw); + for (ZfShare beanRecord : beanRecords ) { + ZfCollection bs2 = zfCollectionService.getById(beanRecord.getShareContent()); + bs2.setShareId(beanRecord.getUserId().intValue()); + bs.add(bs2); + } + log.info("浠庢暟鎹簱涓煡鍒扮殑涓�:{}", bs); + List<ZfCollection> record = bs.stream().skip((pageNo-1)*pageSize).limit(pageSize).collect(Collectors.toList()); + + int totalPage = (bs.size() -1) / pageSize +1; + + Page<ZfProperty> zfCollectionPage = new Page<>(pageNo, pageSize,totalPage); + HashMap<String, Object> data = MapUtils.getShareResult(zfCollectionPage, record,bs.size()); + return AjaxResult.success(data); + } + + @Override + public Long getShareId(ZfDownload zfDownload) { + LambdaQueryWrapper<ZfShare> lqw = new LambdaQueryWrapper<>(); + lqw.eq(ZfShare::getShareId, zfDownload.getDownloadId()) + .eq(ZfShare::getShareContent, zfDownload.getDownloadContent()) + .eq(ZfShare::getSysMenuId, zfDownload.getSysMenuId()); + List<ZfShare> beanRecords = list(lqw); + if (beanRecords.size() != 0){ + return beanRecords.get(0).getUserId(); + } + else { + return null; + } + } +} diff --git a/zhang-content/src/main/java/com/ruoyi/service/impl/ZfContactDownlServiceImpl.java b/zhang-content/src/main/java/com/ruoyi/service/impl/ZfContactDownlServiceImpl.java new file mode 100644 index 0000000..568f860 --- /dev/null +++ b/zhang-content/src/main/java/com/ruoyi/service/impl/ZfContactDownlServiceImpl.java @@ -0,0 +1,2 @@ +package com.ruoyi.service.impl;public class ZfContactDownlService { +} diff --git a/zhang-content/src/main/java/com/ruoyi/service/impl/ZfContactShraServiceImpl.java b/zhang-content/src/main/java/com/ruoyi/service/impl/ZfContactShraServiceImpl.java new file mode 100644 index 0000000..f06096d --- /dev/null +++ b/zhang-content/src/main/java/com/ruoyi/service/impl/ZfContactShraServiceImpl.java @@ -0,0 +1,2 @@ +package com.ruoyi.service.impl;public class ZfContactShraServiceImpl { +} diff --git a/zhang-content/src/main/java/com/ruoyi/service/impl/ZfEconomyDownlServiceImpl.java b/zhang-content/src/main/java/com/ruoyi/service/impl/ZfEconomyDownlServiceImpl.java new file mode 100644 index 0000000..130aeaf --- /dev/null +++ b/zhang-content/src/main/java/com/ruoyi/service/impl/ZfEconomyDownlServiceImpl.java @@ -0,0 +1,2 @@ +package com.ruoyi.service.impl;public class ZfEconomyDownlServiceImpl { +} diff --git a/zhang-content/src/main/java/com/ruoyi/service/impl/ZfEconomySharServiceImpl.java b/zhang-content/src/main/java/com/ruoyi/service/impl/ZfEconomySharServiceImpl.java new file mode 100644 index 0000000..4b54df8 --- /dev/null +++ b/zhang-content/src/main/java/com/ruoyi/service/impl/ZfEconomySharServiceImpl.java @@ -0,0 +1,2 @@ +package com.ruoyi.service.impl;public class ZfEconomySharServiceImpl { +} diff --git a/zhang-content/src/main/java/com/ruoyi/service/impl/ZfEquipDownloadServiceImpl.java b/zhang-content/src/main/java/com/ruoyi/service/impl/ZfEquipDownloadServiceImpl.java new file mode 100644 index 0000000..224d078 --- /dev/null +++ b/zhang-content/src/main/java/com/ruoyi/service/impl/ZfEquipDownloadServiceImpl.java @@ -0,0 +1,2 @@ +package com.ruoyi.service.impl;public class ZfEquipDownloadServiceImpl { +} diff --git a/zhang-content/src/main/java/com/ruoyi/service/impl/ZfEquipShareServiceImpl.java b/zhang-content/src/main/java/com/ruoyi/service/impl/ZfEquipShareServiceImpl.java new file mode 100644 index 0000000..726adaf --- /dev/null +++ b/zhang-content/src/main/java/com/ruoyi/service/impl/ZfEquipShareServiceImpl.java @@ -0,0 +1,2 @@ +package com.ruoyi.service.impl;public class ZfEquipShareServiceImpl { +} diff --git a/zhang-content/src/main/java/com/ruoyi/service/impl/ZfPetDownlServiceImpl.java b/zhang-content/src/main/java/com/ruoyi/service/impl/ZfPetDownlServiceImpl.java new file mode 100644 index 0000000..20fc3e5 --- /dev/null +++ b/zhang-content/src/main/java/com/ruoyi/service/impl/ZfPetDownlServiceImpl.java @@ -0,0 +1,2 @@ +package com.ruoyi.service.impl;public class ZfPetDownlServiceImpl { +} diff --git a/zhang-content/src/main/java/com/ruoyi/service/impl/ZfPetSharServiceImpl.java b/zhang-content/src/main/java/com/ruoyi/service/impl/ZfPetSharServiceImpl.java new file mode 100644 index 0000000..e7aad12 --- /dev/null +++ b/zhang-content/src/main/java/com/ruoyi/service/impl/ZfPetSharServiceImpl.java @@ -0,0 +1,2 @@ +package com.ruoyi.service.impl;public class ZfPetSharServiceImpl { +} -- Gitblit v1.9.1