voip修改和删除功能

This commit is contained in:
duandongmei
2018-05-24 16:04:16 +08:00
parent 50663761c4
commit 4980354706
6 changed files with 486 additions and 73 deletions

View File

@@ -54,9 +54,12 @@ public class AvContentController extends BaseController {
//保存voip信息
@RequestMapping(value = {"/saveVoip"})
public String saveVoip(Model model,HttpServletRequest request,HttpServletResponse response,@ModelAttribute("cfg")CfgIndexInfo cfg){
public String saveVoip(Model model,HttpServletRequest request,HttpServletResponse response,
@ModelAttribute("cfg")CfgIndexInfo cfg,
@ModelAttribute("voipIpIds")String voipIpIds,
@ModelAttribute("voipAccountIds")String voipAccountIds){
try{
avContentCfgService.saveOrUpdateAvVoip(cfg);
avContentCfgService.saveOrUpdateAvVoip(cfg,voipIpIds,voipAccountIds);
}catch(Exception e){
logger.error("voip信息保存失败",e);
e.printStackTrace();
@@ -75,7 +78,7 @@ public class AvContentController extends BaseController {
if(entity.getVoipAccount()== null){
entity.setVoipAccount(new AvVoipAccountCfg());
}
Page<CfgIndexInfo> page = avContentCfgService.findPage(new Page<CfgIndexInfo>(request, response,"a"), entity);
Page<CfgIndexInfo> page = avContentCfgService.findPage(new Page<CfgIndexInfo>(request, response,"r"), entity);
model.addAttribute("page", page);
initPageCondition(model);
return "/cfg/av/voip/voipList";
@@ -83,9 +86,9 @@ public class AvContentController extends BaseController {
//修改VOIP例配置状态
@RequestMapping(value = {"/updateAvVoip"})
@RequestMapping(value = {"/updateAvVoipValid"})
public String updateVoipValid(Integer isAudit,Integer isValid,String ids,Integer functionId){
//avCfgService.updateAvFileSampleValid(isAudit,isValid,ids);
avContentCfgService.updateAvVoipValid(isAudit,isValid,ids,functionId);
return "redirect:" + adminPath +"/ntc/av/voipList?functionId="+functionId;
}
//修改VOIP配置审核状态