|
@@ -46,7 +46,8 @@ public class UploadChannelService {
|
|
|
return Result.fail(String.format("store_node with id %s not exist", nodeId));
|
|
return Result.fail(String.format("store_node with id %s not exist", nodeId));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- int createBy = UserContext.getUser().getId();
|
|
|
|
|
|
|
+ //int createBy = UserContext.getUser().getId();
|
|
|
|
|
+ int createBy = 410;
|
|
|
String channelPrefix = uploadChannelDto.getChannelPrefix();
|
|
String channelPrefix = uploadChannelDto.getChannelPrefix();
|
|
|
UploadChannel uploadChannel = uploadChannelRepository.findByPrefixAndCreateByAndNodeId(channelPrefix, createBy, nodeId);
|
|
UploadChannel uploadChannel = uploadChannelRepository.findByPrefixAndCreateByAndNodeId(channelPrefix, createBy, nodeId);
|
|
|
if (uploadChannel != null) {
|
|
if (uploadChannel != null) {
|
|
@@ -97,10 +98,6 @@ public class UploadChannelService {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public void deleteChannel(int id) {
|
|
|
|
|
- uploadChannelRepository.findById(id).ifPresent(uploadChannelRepository::delete);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
public Page<UploadChannelVo> getUploadChannels(PageRequest pageRequest) {
|
|
public Page<UploadChannelVo> getUploadChannels(PageRequest pageRequest) {
|
|
|
int loginUser = UserContext.getUser().getId();
|
|
int loginUser = UserContext.getUser().getId();
|
|
|
Page<UploadChannel> page = uploadChannelRepository.findByCreateBy(loginUser, pageRequest);
|
|
Page<UploadChannel> page = uploadChannelRepository.findByCreateBy(loginUser, pageRequest);
|