voipForm界面修改业务调整

This commit is contained in:
duandongmei
2018-05-23 18:39:29 +08:00
parent 1175e0d3a5
commit 965c741917
2 changed files with 49 additions and 13 deletions

View File

@@ -79,9 +79,17 @@ public class AvContentCfgService extends BaseService{
*/
public CfgIndexInfo getCfgIndexInfo(CfgIndexInfo entity) {
CfgIndexInfo cfg=avContentCfgDao.getCfgIndexInfo(entity);
List<AvVoipAccountCfg> voipAccounts=getVoipAccountCfgList(entity);
List<AvVoipIpCfg> voipIps=getVoipIpCfgList(entity);
getVoipIpCfgList(entity);
List<AvVoipAccountCfg> voipAccounts=new ArrayList<>();
voipAccounts=getVoipAccountCfgList(entity);
if(voipAccounts ==null || voipAccounts.size() <=0){
voipAccounts.add(new AvVoipAccountCfg());
}
List<AvVoipIpCfg> voipIps=new ArrayList<>();
voipIps=getVoipIpCfgList(entity);
if(voipIps ==null || voipIps.size() <=0){
voipIps.add(new AvVoipIpCfg());
}
cfg.setVoipAccounts(voipAccounts);
cfg.setVoipIps(voipIps);