From 77d25195f86ae6ac7b021525b9f8d3890eae74e4 Mon Sep 17 00:00:00 2001 From: zqy <2522236926@qq.com> Date: 星期五, 02 八月 2024 19:57:58 +0800 Subject: [PATCH] 分享 --- ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfCollectionShareController.java | 83 ++++++++++ ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfContactShareController.java | 83 ++++++++++ ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfEquipShareController.java | 83 ++++++++++ ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfPetSharController.java | 4 ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfEconomySharController.java | 83 ++++++++++ ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/TravelSharController.java | 4 ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfCleanShareController.java | 83 ++++++++++ 7 files changed, 423 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 { +} -- Gitblit v1.9.1