|
|
@@ -68,9 +68,9 @@ public class UploadChannelService {
|
|
|
String name = uploadChannel.getName();
|
|
|
long maxSize = uploadChannel.getMaxSize();
|
|
|
int fileType = uploadChannel.getFileType();
|
|
|
- boolean processFile = uploadChannel.getProcessFile();
|
|
|
+ boolean seturl = uploadChannel.getSeturl();
|
|
|
int scope = uploadChannel.getScope();
|
|
|
- ObjectChannel channel = new ObjectChannel(channelId, name, channelPrefix, maxSize, fileType, processFile, scope, domain, createBy);
|
|
|
+ ObjectChannel channel = new ObjectChannel(channelId, name, channelPrefix, maxSize, fileType, seturl, scope, domain, createBy);
|
|
|
|
|
|
String host = storeNode.getNodeAddr();
|
|
|
int port = storeNode.getRpcPort();
|
|
|
@@ -99,14 +99,14 @@ public class UploadChannelService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public void updateProcessFile(ChannelProcessDto channelProcessDto) {
|
|
|
+ public void updateSeturl(ChannelProcessDto channelProcessDto) {
|
|
|
int id = channelProcessDto.getId();
|
|
|
UploadChannel uploadChannel = uploadChannelRepository.findById(id).orElse(null);
|
|
|
if (uploadChannel != null) {
|
|
|
- boolean processFile = channelProcessDto.getProcessFile();
|
|
|
- boolean current = uploadChannel.getProcessFile();
|
|
|
- if (processFile != current) {
|
|
|
- uploadChannel.setProcessFile(processFile);
|
|
|
+ boolean seturl = channelProcessDto.getSeturl();
|
|
|
+ boolean current = uploadChannel.getSeturl();
|
|
|
+ if (seturl != current) {
|
|
|
+ uploadChannel.setSeturl(seturl);
|
|
|
uploadChannelRepository.save(uploadChannel);
|
|
|
|
|
|
}
|
|
|
@@ -151,11 +151,11 @@ public class UploadChannelService {
|
|
|
String channelPrefix = uploadChannel.getPrefix();
|
|
|
long maxSize = uploadChannel.getMaxSize();
|
|
|
int fileType = uploadChannel.getFileType();
|
|
|
- boolean processFile = uploadChannel.getProcessFile();
|
|
|
+ boolean seturl = uploadChannel.getSeturl();
|
|
|
int scope = uploadChannel.getScope();
|
|
|
String domain = storeNodeService.getById(uploadChannel.getNodeId()).getDomain();
|
|
|
int createBy = uploadChannel.getCreateBy();
|
|
|
- return new ObjectChannel(channelId, name, channelPrefix, maxSize, fileType, processFile, scope, domain, createBy);
|
|
|
+ return new ObjectChannel(channelId, name, channelPrefix, maxSize, fileType, seturl, scope, domain, createBy);
|
|
|
}
|
|
|
|
|
|
public StoreNode getStoreNodeByChannelId(int channelId) throws Exception {
|