修改区域地域ip和地域运营商不互斥的bug
去掉cfgIndexInfo中areaIpCfg对象 cont_ip修改功能完成
This commit is contained in:
@@ -141,9 +141,12 @@ public class AvContentController extends BaseController {
|
||||
@RequestMapping(value = {"/contentIpForm"})
|
||||
public String contIpForm(Model model,HttpServletRequest request,HttpServletResponse response,String ids,@ModelAttribute("cfg")AvContIpCfg cfg){
|
||||
if(!StringUtil.isEmpty(ids)){
|
||||
cfg.setCfgId(Long.parseLong(ids));
|
||||
cfg = avContentCfgService.getContIpCfgById(cfg);
|
||||
initUpdateFormCondition(model, cfg);
|
||||
}else{
|
||||
initFormCondition(model,cfg);
|
||||
}
|
||||
initFormCondition(model,cfg);
|
||||
model.addAttribute("_cfg", cfg);
|
||||
return "/cfg/av/contIp/contIpForm";
|
||||
}
|
||||
@@ -151,9 +154,10 @@ public class AvContentController extends BaseController {
|
||||
//保存voip信息
|
||||
@RequestMapping(value = {"/saveContIp"})
|
||||
public String saveContIp(Model model,HttpServletRequest request,HttpServletResponse response,
|
||||
@ModelAttribute("cfg")AvContIpCfg cfg){
|
||||
@ModelAttribute("cfg")AvContIpCfg cfg,
|
||||
@ModelAttribute("areaCfgIds")String areaCfgIds){
|
||||
try{
|
||||
avContentCfgService.saveOrUpdateAvContIp(cfg);
|
||||
avContentCfgService.saveOrUpdateAvContIp(cfg,areaCfgIds);
|
||||
addMessage(model,"save_success");
|
||||
}catch(Exception e){
|
||||
logger.error("信息保存失败",e);
|
||||
|
||||
Reference in New Issue
Block a user