|
|
@ -103,7 +103,7 @@ public class TerminalChannelServiceImpl implements TerminalChannelService {
|
|
|
|
int pagesize = vo.getPagesize();
|
|
|
|
int pagesize = vo.getPagesize();
|
|
|
|
PageUtils.SetPage(pageindex, pagesize);
|
|
|
|
PageUtils.SetPage(pageindex, pagesize);
|
|
|
|
TerminalChannelListModel model = new TerminalChannelListModel();
|
|
|
|
TerminalChannelListModel model = new TerminalChannelListModel();
|
|
|
|
List<TerminalChannels> list = terminalChannelsDao.selectChannelList();
|
|
|
|
List<TerminalChannels> list = terminalChannelsDao.selectAllChannelList();
|
|
|
|
boolean empty = CollectionUtil.isEmpty(list);
|
|
|
|
boolean empty = CollectionUtil.isEmpty(list);
|
|
|
|
if (empty) {
|
|
|
|
if (empty) {
|
|
|
|
model.setList(new ArrayList<>());
|
|
|
|
model.setList(new ArrayList<>());
|
|
|
@ -127,12 +127,13 @@ public class TerminalChannelServiceImpl implements TerminalChannelService {
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 获取所有通道
|
|
|
|
* 获取所有通道
|
|
|
|
|
|
|
|
*
|
|
|
|
* @return
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public ServiceBody<TerminalAllChannelListModel> getAllChannelList() {
|
|
|
|
public ServiceBody<TerminalAllChannelListModel> getAllChannelList() {
|
|
|
|
TerminalAllChannelListModel model = new TerminalAllChannelListModel();
|
|
|
|
TerminalAllChannelListModel model = new TerminalAllChannelListModel();
|
|
|
|
List<TerminalChannels> list = terminalChannelsDao.selectChannelList();
|
|
|
|
List<TerminalChannels> list = terminalChannelsDao.selectAllChannelList();
|
|
|
|
boolean empty = CollectionUtil.isEmpty(list);
|
|
|
|
boolean empty = CollectionUtil.isEmpty(list);
|
|
|
|
if (empty) {
|
|
|
|
if (empty) {
|
|
|
|
model.setList(new ArrayList<>());
|
|
|
|
model.setList(new ArrayList<>());
|
|
|
@ -176,6 +177,17 @@ public class TerminalChannelServiceImpl implements TerminalChannelService {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public ServiceBody<DyLineTreeAndChannelListModel> getChannelTreeList(TerminalIdVo vo) {
|
|
|
|
public ServiceBody<DyLineTreeAndChannelListModel> getChannelTreeList(TerminalIdVo vo) {
|
|
|
|
DyLineTreeAndChannelListModel model = new DyLineTreeAndChannelListModel();
|
|
|
|
DyLineTreeAndChannelListModel model = new DyLineTreeAndChannelListModel();
|
|
|
|
|
|
|
|
List<TerminalChannels> channellist = terminalChannelsDao.selectChannelList(CommonStatus.EFFECTIVE.value());
|
|
|
|
|
|
|
|
ArrayList<DyLineTreeAndChannelListModel.ChannelChooseBean> channels = new ArrayList<>();
|
|
|
|
|
|
|
|
for (TerminalChannels item : channellist) {
|
|
|
|
|
|
|
|
Integer id = item.getId();
|
|
|
|
|
|
|
|
String channelName = item.getChannelName();
|
|
|
|
|
|
|
|
DyLineTreeAndChannelListModel.ChannelChooseBean channelChooseBean = new DyLineTreeAndChannelListModel.ChannelChooseBean();
|
|
|
|
|
|
|
|
channelChooseBean.setId(id);
|
|
|
|
|
|
|
|
channelChooseBean.setName(channelName);
|
|
|
|
|
|
|
|
channels.add(channelChooseBean);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
model.setChannellist(channels);
|
|
|
|
List<DyLineAndTerminalAndChannelDto> list = terminalChannelsDao.selectAllAndChannelByTermid(vo.getTermid(), CommonStatus.EFFECTIVE.value());
|
|
|
|
List<DyLineAndTerminalAndChannelDto> list = terminalChannelsDao.selectAllAndChannelByTermid(vo.getTermid(), CommonStatus.EFFECTIVE.value());
|
|
|
|
boolean empty = CollectionUtil.isEmpty(list);
|
|
|
|
boolean empty = CollectionUtil.isEmpty(list);
|
|
|
|
if (empty) {
|
|
|
|
if (empty) {
|
|
|
|