mirror of
https://gitee.com/dromara/Jpom.git
synced 2024-12-03 12:29:14 +08:00
fix
This commit is contained in:
parent
9068862573
commit
552d6734cb
@ -48,7 +48,6 @@ import io.jpom.system.extconf.BuildExtConfig;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.io.File;
|
||||
import java.nio.file.StandardCopyOption;
|
||||
import java.util.List;
|
||||
@ -75,12 +74,6 @@ public class FileStorageService extends BaseGlobalOrWorkspaceService<FileStorage
|
||||
this.buildExtConfig = buildExtConfig;
|
||||
}
|
||||
|
||||
@Override
|
||||
public FileStorageModel getByKey(String keyValue, HttpServletRequest request) {
|
||||
String workspace = this.getCheckUserWorkspace(request);
|
||||
return super.getByKey(keyValue, true, entity -> entity.set("workspaceId", CollUtil.newArrayList(workspace, ServerConst.WORKSPACE_GLOBAL)));
|
||||
}
|
||||
|
||||
/**
|
||||
* 远程下载
|
||||
*
|
||||
@ -289,8 +282,8 @@ public class FileStorageService extends BaseGlobalOrWorkspaceService<FileStorage
|
||||
Entity updateEntity = this.dataBeanToEntity(update);
|
||||
//
|
||||
Entity where = Entity.create()
|
||||
.set("source", 2)
|
||||
.set("status", 0);
|
||||
.set("source", 2)
|
||||
.set("status", 0);
|
||||
return this.update(updateEntity, where);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user