zqy
2024-08-02 ecc40c241fa80f0cd053a6dcfc99ba440b788629
分享
35个文件已添加
670 ■■■■■ 已修改文件
ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/TravelSharController.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfCleanShareController.java 83 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfCollectionShareController.java 83 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfContactShareController.java 83 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfEconomySharController.java 83 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfEquipShareController.java 83 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfPetSharController.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhang-content/src/main/java/com/ruoyi/service/TravelDownlService.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhang-content/src/main/java/com/ruoyi/service/TravelSharService.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhang-content/src/main/java/com/ruoyi/service/ZfCleanDownloadService.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhang-content/src/main/java/com/ruoyi/service/ZfCleanShareService.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhang-content/src/main/java/com/ruoyi/service/ZfCollectionDownloadService.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhang-content/src/main/java/com/ruoyi/service/ZfCollectionShareService.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhang-content/src/main/java/com/ruoyi/service/ZfContactDownlService.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhang-content/src/main/java/com/ruoyi/service/ZfContactShraService.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhang-content/src/main/java/com/ruoyi/service/ZfEconomyDownlService.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhang-content/src/main/java/com/ruoyi/service/ZfEconomyShaService.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhang-content/src/main/java/com/ruoyi/service/ZfEquipDownloadService.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhang-content/src/main/java/com/ruoyi/service/ZfEquipShareService.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhang-content/src/main/java/com/ruoyi/service/ZfPetDownlService.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhang-content/src/main/java/com/ruoyi/service/ZfPetSharService.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhang-content/src/main/java/com/ruoyi/service/impl/TravelDownServiceImpl.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhang-content/src/main/java/com/ruoyi/service/impl/TravelSharServiceImpl.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhang-content/src/main/java/com/ruoyi/service/impl/ZfCleanDownloadServiceImpl.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhang-content/src/main/java/com/ruoyi/service/impl/ZfCleanShareServiceImpl.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhang-content/src/main/java/com/ruoyi/service/impl/ZfCollectionDownlServiceImpl.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhang-content/src/main/java/com/ruoyi/service/impl/ZfCollectionShaServiceImpl.java 189 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhang-content/src/main/java/com/ruoyi/service/impl/ZfContactDownlServiceImpl.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhang-content/src/main/java/com/ruoyi/service/impl/ZfContactShraServiceImpl.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhang-content/src/main/java/com/ruoyi/service/impl/ZfEconomyDownlServiceImpl.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhang-content/src/main/java/com/ruoyi/service/impl/ZfEconomySharServiceImpl.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhang-content/src/main/java/com/ruoyi/service/impl/ZfEquipDownloadServiceImpl.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhang-content/src/main/java/com/ruoyi/service/impl/ZfEquipShareServiceImpl.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhang-content/src/main/java/com/ruoyi/service/impl/ZfPetDownlServiceImpl.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhang-content/src/main/java/com/ruoyi/service/impl/ZfPetSharServiceImpl.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/TravelSharController.java
New file
@@ -0,0 +1,4 @@
package com.ruoyi.web.controller.zhang;
public class TravelSharController {
}
ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfCleanShareController.java
New file
@@ -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查看已经授权给那些人那些数据
     */
    @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和shareId收回已经授权给那些人
     */
    @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);
    }
}
ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfCollectionShareController.java
New file
@@ -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查看已经授权给那些人那些数据
     */
    @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和shareId收回已经授权给那些人
     */
    @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);
    }
}
ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfContactShareController.java
New file
@@ -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查看已经授权给那些人那些数据
     */
    @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和shareId收回已经授权给那些人
     */
    @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);
    }
}
ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfEconomySharController.java
New file
@@ -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查看已经授权给那些人那些数据
     */
    @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和shareId收回已经授权给那些人
     */
    @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);
    }
}
ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfEquipShareController.java
New file
@@ -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查看已经授权给那些人那些数据
     */
    @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和shareId收回已经授权给那些人
     */
    @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);
    }
}
ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfPetSharController.java
New file
@@ -0,0 +1,4 @@
package com.ruoyi.web.controller.zhang;
public class ZfPetSharController {
}
zhang-content/src/main/java/com/ruoyi/service/TravelDownlService.java
New file
@@ -0,0 +1,2 @@
package com.ruoyi.service;public interface TravelDownlService {
}
zhang-content/src/main/java/com/ruoyi/service/TravelSharService.java
New file
@@ -0,0 +1,2 @@
package com.ruoyi.service;public class TravelSharService {
}
zhang-content/src/main/java/com/ruoyi/service/ZfCleanDownloadService.java
New file
@@ -0,0 +1,2 @@
package com.ruoyi.service;public interface ZfCleanDownloadService {
}
zhang-content/src/main/java/com/ruoyi/service/ZfCleanShareService.java
New file
@@ -0,0 +1,2 @@
package com.ruoyi.service;public class ZfCleanShareService {
}
zhang-content/src/main/java/com/ruoyi/service/ZfCollectionDownloadService.java
New file
@@ -0,0 +1,2 @@
package com.ruoyi.service;public interface ZfCollectionDownloadServie {
}
zhang-content/src/main/java/com/ruoyi/service/ZfCollectionShareService.java
New file
@@ -0,0 +1,2 @@
package com.ruoyi.service;public interface ZfCollectionShareService {
}
zhang-content/src/main/java/com/ruoyi/service/ZfContactDownlService.java
New file
@@ -0,0 +1,2 @@
package com.ruoyi.service;public interface ZfContactDownlService {
}
zhang-content/src/main/java/com/ruoyi/service/ZfContactShraService.java
New file
@@ -0,0 +1,2 @@
package com.ruoyi.service;public class ZfContactShraService {
}
zhang-content/src/main/java/com/ruoyi/service/ZfEconomyDownlService.java
New file
@@ -0,0 +1,2 @@
package com.ruoyi.service;public interface ZfEconomyDownlService {
}
zhang-content/src/main/java/com/ruoyi/service/ZfEconomyShaService.java
New file
@@ -0,0 +1,2 @@
package com.ruoyi.service;public interface ZfEconomyShaService {
}
zhang-content/src/main/java/com/ruoyi/service/ZfEquipDownloadService.java
New file
@@ -0,0 +1,2 @@
package com.ruoyi.service;public interface ZfEquipDoenloadService {
}
zhang-content/src/main/java/com/ruoyi/service/ZfEquipShareService.java
New file
@@ -0,0 +1,2 @@
package com.ruoyi.service;public interface ZfEquipShareService {
}
zhang-content/src/main/java/com/ruoyi/service/ZfPetDownlService.java
New file
@@ -0,0 +1,2 @@
package com.ruoyi.service;public interface ZfPetDownlService {
}
zhang-content/src/main/java/com/ruoyi/service/ZfPetSharService.java
New file
@@ -0,0 +1,2 @@
package com.ruoyi.service;public interface ZfPetSharService {
}
zhang-content/src/main/java/com/ruoyi/service/impl/TravelDownServiceImpl.java
New file
@@ -0,0 +1,2 @@
package com.ruoyi.service.impl;public class TravelDownServiceImpl {
}
zhang-content/src/main/java/com/ruoyi/service/impl/TravelSharServiceImpl.java
New file
@@ -0,0 +1,2 @@
package com.ruoyi.service.impl;public class TravelSharServiceImpl {
}
zhang-content/src/main/java/com/ruoyi/service/impl/ZfCleanDownloadServiceImpl.java
New file
@@ -0,0 +1,4 @@
package com.ruoyi.service.impl;
public class ZfCleanDownloadService {
}
zhang-content/src/main/java/com/ruoyi/service/impl/ZfCleanShareServiceImpl.java
New file
@@ -0,0 +1,2 @@
package com.ruoyi.service.impl;public class ZfCleanShareServiceImp {
}
zhang-content/src/main/java/com/ruoyi/service/impl/ZfCollectionDownlServiceImpl.java
New file
@@ -0,0 +1,4 @@
package com.ruoyi.service.impl;
public class ZfCollectionShareServiceImpl {
}
zhang-content/src/main/java/com/ruoyi/service/impl/ZfCollectionShaServiceImpl.java
New file
@@ -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;
        }
    }
}
zhang-content/src/main/java/com/ruoyi/service/impl/ZfContactDownlServiceImpl.java
New file
@@ -0,0 +1,2 @@
package com.ruoyi.service.impl;public class ZfContactDownlService {
}
zhang-content/src/main/java/com/ruoyi/service/impl/ZfContactShraServiceImpl.java
New file
@@ -0,0 +1,2 @@
package com.ruoyi.service.impl;public class ZfContactShraServiceImpl {
}
zhang-content/src/main/java/com/ruoyi/service/impl/ZfEconomyDownlServiceImpl.java
New file
@@ -0,0 +1,2 @@
package com.ruoyi.service.impl;public class ZfEconomyDownlServiceImpl {
}
zhang-content/src/main/java/com/ruoyi/service/impl/ZfEconomySharServiceImpl.java
New file
@@ -0,0 +1,2 @@
package com.ruoyi.service.impl;public class ZfEconomySharServiceImpl {
}
zhang-content/src/main/java/com/ruoyi/service/impl/ZfEquipDownloadServiceImpl.java
New file
@@ -0,0 +1,2 @@
package com.ruoyi.service.impl;public class ZfEquipDownloadServiceImpl {
}
zhang-content/src/main/java/com/ruoyi/service/impl/ZfEquipShareServiceImpl.java
New file
@@ -0,0 +1,2 @@
package com.ruoyi.service.impl;public class ZfEquipShareServiceImpl {
}
zhang-content/src/main/java/com/ruoyi/service/impl/ZfPetDownlServiceImpl.java
New file
@@ -0,0 +1,2 @@
package com.ruoyi.service.impl;public class ZfPetDownlServiceImpl {
}
zhang-content/src/main/java/com/ruoyi/service/impl/ZfPetSharServiceImpl.java
New file
@@ -0,0 +1,2 @@
package com.ruoyi.service.impl;public class ZfPetSharServiceImpl {
}