| | |
| | | import com.sandu.ximon.admin.vo.ListDataResponseVO; |
| | | import com.sandu.ximon.admin.vo.TerminalVO; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | public class TerminalAPIUtils { |
| | |
| | | CharUtils.GBK), |
| | | ListDataResponseVO.class |
| | | ); |
| | | return responseVO.covertTerminalList(); |
| | | return responseVO.covertTerminalList() == null ? new ArrayList<>() : responseVO.covertTerminalList(); |
| | | // return responseVO.covertTerminalList(); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | public static boolean changeVol(Integer terminalId, Integer defaultVolumn) { |
| | | TerminalVO terminalInfo = getTerminalInfo(terminalId); |
| | | if(terminalInfo == null){ |
| | | if (terminalInfo == null) { |
| | | throw new BusinessException("IP音柱硬件设备不存在"); |
| | | } |
| | | terminalInfo.setDefaultVolumn(defaultVolumn); |