From 76bf91cb108a85aa65030dc444b461aae7691908 Mon Sep 17 00:00:00 2001 From: fengchenchen Date: Tue, 26 Apr 2022 14:07:14 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20-=E4=BF=AE=E6=94=B9=E6=98=AF?= =?UTF-8?q?=E5=90=A6=E6=98=AF=E5=86=85=E9=83=A8=E4=BC=81=E4=B8=9A=E7=9A=84?= =?UTF-8?q?sql?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/2022-1-4变更.sql | 2 +- .../src/main/java/com/jero/config/shiro/ShiroConfig.java | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/db/2022-1-4变更.sql b/db/2022-1-4变更.sql index c34c986a..a203cff8 100644 --- a/db/2022-1-4变更.sql +++ b/db/2022-1-4变更.sql @@ -186,7 +186,7 @@ INSERT INTO `sys_dict_item` VALUES ('1509830618775691265', '1509830472616779778' -- 2022-04-20 新增是否是内部企业 ALTER TABLE pay_company_management ADD COLUMN internal_enterprise VARCHAR(6) DEFAULT NULL COMMENT '是否内部企业'; -INSERT INTO `sys_permission`(`id`, `parent_id`, `name`, `url`, `component`, `component_name`, `redirect`, `menu_type`, `perms`, `perms_type`, `sort_no`, `always_show`, `icon`, `is_route`, `is_leaf`, `keep_alive`, `hidden`, `description`, `create_by`, `create_time`, `update_by`, `update_time`, `del_flag`, `rule_flag`, `status`, `internal_or_external`) VALUES ('1516688284384772098', '1430376267109978113', '是否内部企业', NULL, NULL, NULL, NULL, 2, 'company:internalEnterprise', '1', 1.00, 0, NULL, 1, 1, 0, 0, NULL, 'LKGLZ', '2022-04-20 16:00:40', NULL, NULL, 0, 0, '0', 0); +INSERT INTO `sys_permission`(`id`, `parent_id`, `name`, `url`, `component`, `component_name`, `redirect`, `menu_type`, `perms`, `perms_type`, `sort_no`, `always_show`, `icon`, `is_route`, `is_leaf`, `keep_alive`, `hidden`, `description`, `create_by`, `create_time`, `update_by`, `update_time`, `del_flag`, `rule_flag`, `status`, `internal_or_external`) VALUES ('1516688284384772098', '1430376267109978113', '是否内部企业', NULL, NULL, NULL, NULL, 2, 'company:updateInternalEnterprise', '1', 1.00, 0, NULL, 1, 1, 0, 0, NULL, 'LKGLZ', '2022-04-20 16:00:40', NULL, NULL, 0, 0, '1', 0); -- 2022-04-24 收入合同+支出合同查询邮寄详情按钮权限 INSERT INTO `income_payments`.`sys_permission`(`id`, `parent_id`, `name`, `url`, `component`, `component_name`, `redirect`, `menu_type`, `perms`, `perms_type`, `sort_no`, `always_show`, `icon`, `is_route`, `is_leaf`, `keep_alive`, `hidden`, `description`, `create_by`, `create_time`, `update_by`, `update_time`, `del_flag`, `rule_flag`, `status`, `internal_or_external`) VALUES ('1518071675121545217', '1433250634957398018', '查看邮寄详情', NULL, NULL, NULL, NULL, 2, 'revenueContract:mailDetail', '1', 1.00, 0, NULL, 1, 1, 0, 0, NULL, 'LKGLZ', '2022-04-24 11:37:46', NULL, NULL, 0, 0, '1', 0); diff --git a/jero-boot-base/jero-boot-base-core/src/main/java/com/jero/config/shiro/ShiroConfig.java b/jero-boot-base/jero-boot-base-core/src/main/java/com/jero/config/shiro/ShiroConfig.java index c38a7249..e1682ef1 100644 --- a/jero-boot-base/jero-boot-base-core/src/main/java/com/jero/config/shiro/ShiroConfig.java +++ b/jero-boot-base/jero-boot-base-core/src/main/java/com/jero/config/shiro/ShiroConfig.java @@ -178,9 +178,8 @@ public class ShiroConfig { filterChainDefinitionMap.put("/company/payContactsManagement/queryWXByCompany","anon"); //企业端注册个人 filterChainDefinitionMap.put("/home/registerSelf", "anon"); - - - + // 判断当前企业是否是内部企业 + filterChainDefinitionMap.put("/company/payCompanyManagement/getInternalEnterprise","anon"); // 添加自己的过滤器并且取名为jwt Map filterMap = new HashMap(1);