支持清理异常业务分组节点,使通道可被挂载
This commit is contained in:
@@ -93,4 +93,8 @@ public interface IGbChannelService {
|
||||
PageInfo<CommonGBChannel> queryListByCivilCodeForUnusual(int page, int count, String query, Boolean online, Integer channelType);
|
||||
|
||||
void clearChannelCivilCode(Boolean all, List<Integer> channelIds);
|
||||
|
||||
PageInfo<CommonGBChannel> queryListByParentForUnusual(int page, int count, String query, Boolean online, Integer channelType);
|
||||
|
||||
void clearChannelParent(Boolean all, List<Integer> channelIds);
|
||||
}
|
||||
|
||||
@@ -768,10 +768,33 @@ public class GbChannelServiceImpl implements IGbChannelService {
|
||||
|
||||
List<Integer> channelIdsForClear;
|
||||
if (all != null && all) {
|
||||
channelIdsForClear = commonGBChannelMapper.queryAllForUnusual();
|
||||
channelIdsForClear = commonGBChannelMapper.queryAllForUnusualCivilCode();
|
||||
}else {
|
||||
channelIdsForClear = channelIds;
|
||||
}
|
||||
commonGBChannelMapper.removeCivilCodeByChannelIds(channelIdsForClear);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageInfo<CommonGBChannel> queryListByParentForUnusual(int page, int count, String query, Boolean online, Integer channelType) {
|
||||
PageHelper.startPage(page, count);
|
||||
if (query != null) {
|
||||
query = query.replaceAll("/", "//")
|
||||
.replaceAll("%", "/%")
|
||||
.replaceAll("_", "/_");
|
||||
}
|
||||
List<CommonGBChannel> all = commonGBChannelMapper.queryListByParentForUnusual(query, online, channelType);
|
||||
return new PageInfo<>(all);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void clearChannelParent(Boolean all, List<Integer> channelIds) {
|
||||
List<Integer> channelIdsForClear;
|
||||
if (all != null && all) {
|
||||
channelIdsForClear = commonGBChannelMapper.queryAllForUnusualParent();
|
||||
}else {
|
||||
channelIdsForClear = channelIds;
|
||||
}
|
||||
commonGBChannelMapper.removeParentIdByChannelIds(channelIdsForClear);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user