基础协议,加密隧道行为IP导入提交
This commit is contained in:
@@ -2483,7 +2483,9 @@ public class BaseController {
|
||||
String specServiceId=request.getParameter("appId");
|
||||
String behaviorId=request.getParameter("behaviorId");
|
||||
SpecificServiceCfg specificServiceCfg=null;
|
||||
if(serviceDict.getServiceId().intValue()==33||serviceDict.getServiceId().intValue()==145) {
|
||||
if(serviceDict.getServiceId().intValue()==33||serviceDict.getServiceId().intValue()==145||
|
||||
serviceDict.getServiceId().intValue()==35||serviceDict.getServiceId().intValue()==147||
|
||||
serviceDict.getServiceId().intValue()==36||serviceDict.getServiceId().intValue()==148) {
|
||||
if(StringUtils.isNotBlank(specServiceId)) {
|
||||
specificServiceCfg=specificServiceCfgService.getBySpecServiceId(Integer.parseInt(specServiceId));
|
||||
}
|
||||
@@ -2508,7 +2510,9 @@ public class BaseController {
|
||||
cfg.setServiceId(serviceDict.getServiceId());
|
||||
cfg.setTableName("ip_port_cfg");
|
||||
cfg.setCompileId(ipCfgService.getCompileId());
|
||||
if(serviceDict.getServiceId().intValue()==33||serviceDict.getServiceId().intValue()==145) {
|
||||
if(serviceDict.getServiceId().intValue()==33||serviceDict.getServiceId().intValue()==145||
|
||||
serviceDict.getServiceId().intValue()==35||serviceDict.getServiceId().intValue()==147||
|
||||
serviceDict.getServiceId().intValue()==36||serviceDict.getServiceId().intValue()==148) {
|
||||
if(specificServiceCfg!=null&&appRegion!=null) {
|
||||
AppPolicyCfg appPolicyCfg=new AppPolicyCfg();
|
||||
BeanUtils.copyProperties(cfg, appPolicyCfg);
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
UPDATE function_service_dict SET region_code='1,2,3' WHERE function_id=63;
|
||||
UPDATE function_service_dict SET region_code='1,2,3' WHERE function_id=407;
|
||||
UPDATE function_service_dict SET region_code='1,2,3' WHERE function_id=408;
|
||||
|
||||
UPDATE function_region_dict SET is_import=1 WHERE function_id=63 AND config_service_type='app_policy';
|
||||
UPDATE function_region_dict SET is_import=1 WHERE function_id=407 AND config_service_type='app_policy';
|
||||
UPDATE function_region_dict SET is_import=1 WHERE function_id=408 AND config_service_type='app_policy';
|
||||
@@ -101,6 +101,9 @@
|
||||
onClick="javascript:window.location='${ctx}/basicprotocol/form?functionId=${cfg.functionId}'">
|
||||
<i class="fa fa-plus"></i>
|
||||
<spring:message code="add"></spring:message></button>
|
||||
<button type="button" class="btn btn-primary import" >
|
||||
<i class="fa fa-plus"></i>
|
||||
<spring:message code="import"></spring:message></button>
|
||||
</shiro:hasPermission>
|
||||
</div>
|
||||
|
||||
@@ -489,6 +492,8 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<c:set var="importPath" value="/basicprotocol/list?functionId=${cfg.functionId}"/>
|
||||
<!-- 模板导入,start -->
|
||||
<%@include file="/WEB-INF/include/excel/importModal.jsp" %>
|
||||
</body>
|
||||
</html>
|
||||
@@ -98,6 +98,9 @@
|
||||
onClick="javascript:window.location='${ctx}/encryptedtunnelbehav/form?functionId=${cfg.functionId}'">
|
||||
<i class="fa fa-plus"></i>
|
||||
<spring:message code="add"></spring:message></button>
|
||||
<button type="button" class="btn btn-primary import" >
|
||||
<i class="fa fa-plus"></i>
|
||||
<spring:message code="import"></spring:message></button>
|
||||
</shiro:hasPermission>
|
||||
</div>
|
||||
|
||||
@@ -486,6 +489,8 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<c:set var="importPath" value="/encryptedtunnelbehav/list?functionId=${cfg.functionId}"/>
|
||||
<!-- 模板导入,start -->
|
||||
<%@include file="/WEB-INF/include/excel/importModal.jsp" %>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user