月球大数据地理空间分析展示平台-【后端】-月球后台服务
1
13693261870
2024-11-17 796b44ea813a1133beae4f3a67f1c0263510c0c7
src/main/java/com/moon/server/service/data/DownloadService.java
@@ -15,11 +15,8 @@
import java.io.File;
import java.util.*;
/**
 * 下载记录
 * @author WWW
 */
@Service
@SuppressWarnings("ALL")
public class DownloadService implements DownloadMapper {
    @Autowired
    PathHelper pathHelper;
@@ -102,22 +99,10 @@
        return downloadMapper.updates(list);
    }
    /**
     * 获取下载文件路径
     *
     * @param de 下载实体类
     * @return 下载文件路径
     */
    public String getDownloadFilePath(DownloadEntity de) {
        return pathHelper.getConfig().getDownloadPath() + File.separator + de.getUrl();
    }
    /**
     * 解密
     *
     * @param entity 密码抽象类
     * @return 是/否解密成功
     */
    public static boolean decryptPwd(AbstractPwdEntity entity) {
        try {
            String pwd = RsaHelper.decrypt(entity.getPwd());
@@ -134,12 +119,6 @@
        }
    }
    /**
     * 解密
     *
     * @param pe 管道分析实体类
     * @return 是/否解密成功
     */
    public static boolean decryptPwd(PipelineEntity pe) {
        try {
            String pwd = RsaHelper.decrypt(pe.getPwd());
@@ -156,12 +135,6 @@
        }
    }
    /**
     * 解密
     *
     * @param pwd 加密密码
     * @return 原始密码
     */
    public static String decryptPwd(String pwd) {
        try {
            return RsaHelper.decrypt(pwd);