1.VoIP增加compileId查询2.异常处理3.增加国家化
This commit is contained in:
@@ -172,7 +172,7 @@ public class BasicProtocolController extends BaseController {
|
||||
throw new MaatConvertException("<spring:message code=\"request_service_failed\"/>");
|
||||
}else {
|
||||
e.printStackTrace();
|
||||
logger.error("auditAvAudioSignSample failed",e);
|
||||
logger.error("app策略配置下发失败",e);
|
||||
addMessage(redirectAttributes,"audit_failed");
|
||||
}
|
||||
|
||||
|
||||
@@ -94,9 +94,16 @@ public class AvContentController extends BaseController {
|
||||
avContentCfgService.saveOrUpdateAvVoip(cfg);
|
||||
addMessage(redirectAttributes,"save_success");
|
||||
}catch(Exception e){
|
||||
if(e instanceof MaatConvertException) {
|
||||
e.printStackTrace();
|
||||
logger.error("voip IP信息保存失败",e);
|
||||
throw new MaatConvertException("<spring:message code=\"request_service_failed\"/>");
|
||||
}else {
|
||||
e.printStackTrace();
|
||||
logger.error("voip IP信息保存失败",e);
|
||||
addMessage(redirectAttributes,"save_failed");
|
||||
}
|
||||
}
|
||||
return "redirect:" + adminPath +"/ntc/av/voipList?functionId="+cfg.getFunctionId();
|
||||
}
|
||||
//保存voip Account信息
|
||||
@@ -107,9 +114,16 @@ public class AvContentController extends BaseController {
|
||||
avContentCfgService.saveOrUpdateAvVoipAccount(cfg);
|
||||
addMessage(redirectAttributes,"save_success");
|
||||
}catch(Exception e){
|
||||
if(e instanceof MaatConvertException) {
|
||||
e.printStackTrace();
|
||||
logger.error("voip Account信息保存失败",e);
|
||||
throw new MaatConvertException("<spring:message code=\"request_service_failed\"/>");
|
||||
}else {
|
||||
e.printStackTrace();
|
||||
logger.error("voip Account信息保存失败",e);
|
||||
addMessage(redirectAttributes,"save_failed");
|
||||
}
|
||||
}
|
||||
return "redirect:" + adminPath +"/ntc/av/voipAccountList?functionId="+cfg.getFunctionId();
|
||||
}
|
||||
//视频文本VOIP IP配置列表
|
||||
@@ -155,7 +169,19 @@ public class AvContentController extends BaseController {
|
||||
public String updateVoipValid(Integer isAudit,String compileIds,Integer isValid,String ids,Integer functionId
|
||||
,RedirectAttributes redirectAttributes
|
||||
) {
|
||||
try {
|
||||
avContentCfgService.updateAvVoipValid(isAudit,isValid,compileIds,functionId);
|
||||
} catch (Exception e) {
|
||||
if(e instanceof MaatConvertException) {
|
||||
e.printStackTrace();
|
||||
logger.error("voip IP信息审核失败",e);
|
||||
throw new MaatConvertException("<spring:message code=\"request_service_failed\"/>");
|
||||
}else {
|
||||
e.printStackTrace();
|
||||
logger.error("voip IP信息审核失败",e);
|
||||
addMessage(redirectAttributes,"audit_failed");
|
||||
}
|
||||
}
|
||||
return "redirect:" + adminPath +"/ntc/av/voipList?functionId="+functionId;
|
||||
}
|
||||
//修改VOIP account配置状态
|
||||
@@ -164,7 +190,19 @@ public class AvContentController extends BaseController {
|
||||
public String updateVoipAccountValid(Integer isAudit,String compileIds,Integer isValid,String ids,Integer functionId
|
||||
,RedirectAttributes redirectAttributes
|
||||
) {
|
||||
try {
|
||||
avContentCfgService.updateAvVoipAccountValid(isAudit,isValid,compileIds,functionId);
|
||||
} catch (Exception e) {
|
||||
if(e instanceof MaatConvertException) {
|
||||
e.printStackTrace();
|
||||
logger.error("voip Account信息审核失败",e);
|
||||
throw new MaatConvertException("<spring:message code=\"request_service_failed\"/>");
|
||||
}else {
|
||||
e.printStackTrace();
|
||||
logger.error("voip Account信息审核失败",e);
|
||||
addMessage(redirectAttributes,"audit_failed");
|
||||
}
|
||||
}
|
||||
return "redirect:" + adminPath +"/ntc/av/voipAccountList?functionId="+functionId;
|
||||
}
|
||||
//修改VOIP IP配置审核状态
|
||||
@@ -180,8 +218,16 @@ public class AvContentController extends BaseController {
|
||||
try {
|
||||
avContentCfgService.auditAvVoip(isAudit,isValid,functionId,id,auditTime);
|
||||
} catch (MaatConvertException e) {
|
||||
if(e instanceof MaatConvertException) {
|
||||
e.printStackTrace();
|
||||
logger.info("VOIP配置下发失败:"+e.getMessage());;
|
||||
throw new MaatConvertException("<spring:message code=\"request_service_failed\"/>");
|
||||
}else {
|
||||
e.printStackTrace();
|
||||
logger.error("VOIP配置下发失败",e);
|
||||
addMessage(redirectAttributes, e.getMessage());
|
||||
addMessage(redirectAttributes,"audit_failed");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -201,8 +247,15 @@ public class AvContentController extends BaseController {
|
||||
try {
|
||||
avContentCfgService.auditAvVoipAccount(isAudit,isValid,functionId,id,auditTime);
|
||||
} catch (MaatConvertException e) {
|
||||
logger.error("VOIP Account配置下发失败",e);
|
||||
addMessage(redirectAttributes, e.getMessage());
|
||||
if(e instanceof MaatConvertException) {
|
||||
e.printStackTrace();
|
||||
logger.info("VOIPAccount配置下发失败:"+e.getMessage());;
|
||||
throw new MaatConvertException("<spring:message code=\"request_service_failed\"/>");
|
||||
}else {
|
||||
e.printStackTrace();
|
||||
logger.error("VOIPAccount配置下发失败",e);
|
||||
addMessage(redirectAttributes,"audit_failed");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -209,6 +209,9 @@
|
||||
<if test="cfgId != null">
|
||||
AND r.CFG_ID=#{cfgId,jdbcType=BIGINT}
|
||||
</if>
|
||||
<if test="compileId != null">
|
||||
AND r.compile_id=#{compileId,jdbcType=BIGINT}
|
||||
</if>
|
||||
<if test="cfgDesc != null and cfgDesc != ''">
|
||||
AND r.CFG_DESC like concat(concat('%',#{cfgDesc,jdbcType=VARCHAR}),'%')
|
||||
</if>
|
||||
|
||||
@@ -617,7 +617,7 @@ val_dst_ip=Server IP format is incorrect or inconsistent with IP type
|
||||
val_dst_mask=Server IP mask format is incorrect or inconsistent with IP type
|
||||
val_dst_port=Server port is empty or incorrectly formatting(0-65535)
|
||||
val_dst_port_mask=Server port mask format is incorrect(0-65535)
|
||||
val_protocol=Protocol Can't be empty,and should be 6(TCP),17(UDP),0(\u4efb\u610f)
|
||||
val_protocol=Protocol Can't be empty,and should be 6(TCP),17(UDP),0(\u4EFB\u610F)
|
||||
val_direction=Direction should be 0(bidirectional) or 1(unidirectional)
|
||||
#===============protocol IP Import end=================
|
||||
|
||||
@@ -1089,3 +1089,4 @@ file_desc=File Desc
|
||||
content_type=Content Type
|
||||
content_length=Content Length
|
||||
response_file=Response File
|
||||
APP_SUBSCRIBE_ID=Certification Mark Configuration
|
||||
File diff suppressed because it is too large
Load Diff
@@ -27,6 +27,8 @@
|
||||
$("#intype").val("${cfg.cfgDesc}");
|
||||
}else if("${cfg.ntcSubscribeIdCfg.cfgKeywords}"){
|
||||
$("#intype").val("${cfg.ntcSubscribeIdCfg.cfgKeywords}");
|
||||
}else if("${cfg.compileId}"){
|
||||
$("#intype").val("${cfg.compileId}");
|
||||
}else if("${cfg.voipAccount.cfgKeywords}"){
|
||||
$("#intype").val("${cfg.voipAccount.cfgKeywords}");
|
||||
}else{
|
||||
@@ -360,6 +362,7 @@
|
||||
|
||||
<form:select path="seltype" class="selectpicker select2 input-small" >
|
||||
<form:option value="cfgDesc"><spring:message code="config_describe"></spring:message></form:option>
|
||||
<form:option value="compileId"><spring:message code="cfg_id"/></form:option>
|
||||
<form:option value="voipAccount.cfgKeywords"><spring:message code="account"/></form:option>
|
||||
<form:option value="ntcSubscribeIdCfg.cfgKeywords"><spring:message code="NTC_SUBSCRIBE_ID"/></form:option>
|
||||
</form:select>
|
||||
@@ -533,6 +536,7 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th><input type="checkbox" class="i-checks" id="checkAll"></th>
|
||||
<th style="display: none"><spring:message code="cfg_id"/></th>
|
||||
<th class="cfgDesc"><spring:message code="config_describe"/></th>
|
||||
<th><spring:message code="block_type"/></th>
|
||||
<th><spring:message code="do_log"/></th>
|
||||
@@ -559,6 +563,7 @@
|
||||
<span id="open${status.index}" class="" compileId="${indexCfg.compileId}" cfgId="${indexCfg.cfgId}"> ▷ </span><span style="display: none" id="close${status.index}" > ▼ </span>
|
||||
<input type="checkbox" class="i-checks child-checks" id="${indexCfg.cfgId}" compileId="${indexCfg.compileId}" value="${indexCfg.isAudit}">
|
||||
</td>
|
||||
<td>${indexCfg.compileId }</td>
|
||||
<td>${indexCfg.cfgDesc }</td>
|
||||
<td>
|
||||
<c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict">
|
||||
|
||||
@@ -27,6 +27,8 @@
|
||||
$("#intype").val("${cfg.cfgDesc}");
|
||||
}else if("${cfg.voipIp.srcIpAddress}"){
|
||||
$("#intype").val("${cfg.voipIp.srcIpAddress}");
|
||||
}else if("${cfg.compileId}"){
|
||||
$("#intype").val("${cfg.compileId}");
|
||||
}else if("${cfg.voipIp.srcPort}"){
|
||||
$("#intype").val("${cfg.voipIp.srcPort}");
|
||||
}else if("${cfg.ntcSubscribeIdCfg.cfgKeywords}"){
|
||||
@@ -426,6 +428,7 @@
|
||||
|
||||
<form:select path="seltype" class="selectpicker select2 input-small" >
|
||||
<form:option value="cfgDesc"><spring:message code="config_describe"></spring:message></form:option>
|
||||
<form:option value="compileId"><spring:message code="cfg_id"/></form:option>
|
||||
<form:option value="voipIp.srcIpAddress"><spring:message code="client_ip"/></form:option>
|
||||
<form:option value="voipIp.srcPort"><spring:message code="client_port"/></form:option>
|
||||
<form:option value="ntcSubscribeIdCfg.cfgKeywords"><spring:message code="NTC_SUBSCRIBE_ID"/></form:option>
|
||||
@@ -601,6 +604,7 @@
|
||||
<tr>
|
||||
<th><input type="checkbox" class="i-checks" id="checkAll"></th>
|
||||
<th class="cfgDesc"><spring:message code="config_describe"/></th>
|
||||
<th style="display: none"><spring:message code="cfg_id"/></th>
|
||||
<th><spring:message code="block_type"/></th>
|
||||
<th><spring:message code="do_log"/></th>
|
||||
<th><spring:message code="whether_area_block"/></th>
|
||||
@@ -626,6 +630,7 @@
|
||||
<span id="open${status.index}" class="" compileId="${indexCfg.compileId}" cfgId="${indexCfg.cfgId}"> ▷ </span><span style="display: none" id="close${status.index}" > ▼ </span>
|
||||
<input type="checkbox" class="i-checks child-checks" id="${indexCfg.cfgId}" compileId="${indexCfg.compileId}" value="${indexCfg.isAudit}">
|
||||
</td>
|
||||
<td>${indexCfg.compileId }</td>
|
||||
<td>${indexCfg.cfgDesc }</td>
|
||||
<td>
|
||||
<c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict">
|
||||
|
||||
Reference in New Issue
Block a user