管道基础大数据平台系统开发-【后端】-Server
13693261870
2024-04-18 48897e3d10652ad6ed1f790357a5839baff8de31
src/main/java/com/lf/server/service/data/DownloadService.java
@@ -1,6 +1,6 @@
package com.lf.server.service.data;
import com.lf.server.entity.ctrl.DownloadReqEntity;
import com.lf.server.entity.all.AbstractPwdEntity;
import com.lf.server.entity.data.DownloadEntity;
import com.lf.server.entity.show.PipelineEntity;
import com.lf.server.helper.*;
@@ -42,17 +42,17 @@
    }
    @Override
    public Integer selectCountForUser(Integer createUser, Integer type, String name) {
    public Integer selectCountForUser(Integer createUser, String types, String name) {
        name = StringHelper.getLikeUpperStr(name);
        return downloadMapper.selectCountForUser(createUser, type, name);
        return downloadMapper.selectCountForUser(createUser, types, name);
    }
    @Override
    public List<DownloadEntity> selectByPageForUser(Integer createUser, Integer type, String name, Integer limit, Integer offset) {
    public List<DownloadEntity> selectByPageForUser(Integer createUser, String types, String name, Integer limit, Integer offset) {
        name = StringHelper.getLikeUpperStr(name);
        return downloadMapper.selectByPageForUser(createUser, type, name, limit, offset);
        return downloadMapper.selectByPageForUser(createUser, types, name, limit, offset);
    }
    @Override
@@ -113,17 +113,17 @@
    /**
     * 解密
     *
     * @param reqEntity 请求下载实体类
     * @param entity 密码抽象类
     * @return 是/否解密成功
     */
    public static boolean decryptPwd(DownloadReqEntity reqEntity) {
    public static boolean decryptPwd(AbstractPwdEntity entity) {
        try {
            String pwd = RsaHelper.decrypt(reqEntity.getPwd());
            String pwd = RsaHelper.decrypt(entity.getPwd());
            if (StringHelper.isEmpty(pwd)) {
                return false;
            }
            reqEntity.setPwd(pwd);
            entity.setPwd(pwd);
            return true;
        } catch (Exception ex) {