操控增加为admin添加权限sql,清理旧的字典和菜单sql。
去掉批量中的json打印
This commit is contained in:
@@ -421,7 +421,7 @@ public class CommonPolicyService extends CrudService<WebsiteCfgDao, CfgIndexInfo
|
||||
|
||||
//调用服务接口下发配置数据
|
||||
String json=gsonToJson(notAuditList);
|
||||
logger.debug("批量下发配置参数:"+json);
|
||||
//logger.debug("批量下发配置参数:"+json);
|
||||
//调用服务接口下发配置
|
||||
ToMaatResult result = ConfigServiceUtil.postCallbackCfg(json);
|
||||
logger.warn("批量下发响应信息:"+result.getMsg());
|
||||
@@ -528,7 +528,7 @@ public class CommonPolicyService extends CrudService<WebsiteCfgDao, CfgIndexInfo
|
||||
|
||||
//调用服务接口取消配置
|
||||
String json=gsonToJson(auditList);
|
||||
logger.debug("批量下发配置参数:"+json);
|
||||
//logger.debug("批量下发配置参数:"+json);
|
||||
if(!StringUtil.isEmpty(auditList)) {
|
||||
logger.warn("批量配置取消个数:"+auditList.size());
|
||||
}
|
||||
|
||||
@@ -14,3 +14,16 @@ INSERT INTO `function_region_dict` (`function_id`, `config_district`, `config_re
|
||||
INSERT INTO `function_region_dict` (`function_id`, `config_district`, `config_region_code`, `config_region_value`, `config_desc`, `is_valid`, `is_maat`, `region_type`, `creator_id`, `create_time`, `editor_id`, `edit_time`, `config_service_type`, `config_expr_type`, `config_match_method`, `config_ip_type`, `config_hex`, `config_multi_keywords`, `config_ip_pattern`, `config_port_pattern`, `config_direction`, `config_protocol`, `config_ip_port_show`, `config_region_sort`, `is_import`) VALUES ('215', '', '6', 'PXY_CTRL_HTTP_RES_BODY', 'HTTP应答内容管控配置', '1', '1', '2', NULL, '0000-00-00 00:00:00', NULL, '0000-00-00 00:00:00', '', '0,1', '0,1,2,3', '', '0,1,2', '1', '', '', '', '', '', '5', '1');
|
||||
INSERT INTO `function_region_dict` (`function_id`, `config_district`, `config_region_code`, `config_region_value`, `config_desc`, `is_valid`, `is_maat`, `region_type`, `creator_id`, `create_time`, `editor_id`, `edit_time`, `config_service_type`, `config_expr_type`, `config_match_method`, `config_ip_type`, `config_hex`, `config_multi_keywords`, `config_ip_pattern`, `config_port_pattern`, `config_direction`, `config_protocol`, `config_ip_port_show`, `config_region_sort`, `is_import`) VALUES ('215', '', '1', 'PXY_CTRL_IP', 'HTTP IP管控配置', '1', '1', '1', NULL, '0000-00-00 00:00:00', NULL, '0000-00-00 00:00:00', '', '', '', '4,6', '', '', '1,2,3;1,2,3', '1,2;1,2', '0', '0,6,17', '1,2,3,4', '6', '1');
|
||||
INSERT INTO `function_region_dict` (`function_id`, `config_district`, `config_region_code`, `config_region_value`, `config_desc`, `is_valid`, `is_maat`, `region_type`, `creator_id`, `create_time`, `editor_id`, `edit_time`, `config_service_type`, `config_expr_type`, `config_match_method`, `config_ip_type`, `config_hex`, `config_multi_keywords`, `config_ip_pattern`, `config_port_pattern`, `config_direction`, `config_protocol`, `config_ip_port_show`, `config_region_sort`, `is_import`) VALUES ('215', '', '3', 'PXY_CTRL_SUBSCRIBE_ID', 'proxy SUBSCRIBE字符串配置', '1', '1', '2', NULL, '0000-00-00 00:00:00', NULL, '0000-00-00 00:00:00', 'subscribe_id', '0', '3', '', '0', '0', '', '', '', '', '', '7', '0');
|
||||
|
||||
|
||||
#为admin角色分配操控菜单权限
|
||||
insert into sys_privilege (PRIVILEGE_MASTER,PRIVILEGE_MASTER_VALUE,PRIVILEGE_ACCESS,PRIVILEGE_ACCESS_VALUE,PRIVILEGE_OPERATION ) select 'ROLE',r.id,1000,m.id,1 from sys_role r,sys_menu m where r.name='admin' and m.code in ('http_manipulation');
|
||||
|
||||
#TODO 删除service、region字典*****************确认是否删除server_conf.xml
|
||||
#update function_region_dict set is_Valid=0 where function_id in(207,208,209) and is_valid=1;
|
||||
#update function_service_dict set is_Valid=0 where function_id in(207,208,209) and is_valid=1;
|
||||
#TODO 删除非ceiec用户之外的replace、redirect、block(配置、日志、统计)权限*****************此步骤需要确认
|
||||
#delete from sys_privilege t where t.PRIVILEGE_ACCESS_VALUE in(SELECT id FROM sys_menu WHERE CODE IN ('http_block','http_redirect','http_replace') AND IS_SHOW=1 AND del_flag=1) and t.PRIVILEGE_MASTER_VALUE <> 1;
|
||||
|
||||
#TODO 需要确认旧的数据是否需要更新为最新需求格式,提供更新SQL.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user