Browse Source

权限注释

wangfeng 4 years ago
parent
commit
7f20051b53

+ 52 - 52
src/main/java/com/diagbot/config/ResourceServerConfigurer.java

@@ -40,58 +40,58 @@ public class ResourceServerConfigurer extends ResourceServerConfigurerAdapter {
                 .antMatchers("/sys/user/getJwt").permitAll()
                 .antMatchers("/sys/user/refreshJwt").permitAll()
                 .antMatchers("/sys/user/checkToken").permitAll()
-                .antMatchers("/sys/user/getUserOrgMenu").permitAll()
+                //.antMatchers("/sys/user/getUserOrgMenu").permitAll()
                 .antMatchers("/oauth/token").permitAll()
                 .antMatchers("/oauth/check_token").permitAll()
-                .antMatchers("/tran/lisConfig/isExistRecord").permitAll()
-                .antMatchers("/tran/lisConfig/saveOrUpdateRecord").permitAll()
-                .antMatchers("/tran/lisConfig/saveOrUpdateRecords").permitAll()
-                .antMatchers("/tran/lisConfig/deleteRecord").permitAll()
-                .antMatchers("/tran/lisConfig/deleteRecords").permitAll()
+                //.antMatchers("/tran/lisConfig/isExistRecord").permitAll()
+                //.antMatchers("/tran/lisConfig/saveOrUpdateRecord").permitAll()
+                //.antMatchers("/tran/lisConfig/saveOrUpdateRecords").permitAll()
+                //.antMatchers("/tran/lisConfig/deleteRecord").permitAll()
+                //.antMatchers("/tran/lisConfig/deleteRecords").permitAll()
                 .antMatchers("/tran/lisConfig/getPage").permitAll()
-                .antMatchers("/tran/lisConfig/importExcel").permitAll()
-                .antMatchers("/tran/lisConfig/exportExcel").permitAll()
-                .antMatchers("/tran/pacsConfig/isExistRecord").permitAll()
-                .antMatchers("/tran/pacsConfig/saveOrUpdateRecord").permitAll()
-                .antMatchers("/tran/pacsConfig/saveOrUpdateRecords").permitAll()
-                .antMatchers("/tran/pacsConfig/deleteRecord").permitAll()
-                .antMatchers("/tran/pacsConfig/deleteRecords").permitAll()
+                //.antMatchers("/tran/lisConfig/importExcel").permitAll()
+                //.antMatchers("/tran/lisConfig/exportExcel").permitAll()
+                //.antMatchers("/tran/pacsConfig/isExistRecord").permitAll()
+                //.antMatchers("/tran/pacsConfig/saveOrUpdateRecord").permitAll()
+                //.antMatchers("/tran/pacsConfig/saveOrUpdateRecords").permitAll()
+                //.antMatchers("/tran/pacsConfig/deleteRecord").permitAll()
+                //.antMatchers("/tran/pacsConfig/deleteRecords").permitAll()
                 .antMatchers("/tran/pacsConfig/getPage").permitAll()
-                .antMatchers("/tran/pacsConfig/importExcel").permitAll()
-                .antMatchers("/tran/pacsConfig/exportExcel").permitAll()
-                .antMatchers("/tran/diseaseConfig/isExistRecord").permitAll()
-                .antMatchers("/tran/diseaseConfig/saveOrUpdateRecord").permitAll()
-                .antMatchers("/tran/diseaseConfig/saveOrUpdateRecords").permitAll()
-                .antMatchers("/tran/diseaseConfig/deleteRecord").permitAll()
-                .antMatchers("/tran/diseaseConfig/deleteRecords").permitAll()
+                //.antMatchers("/tran/pacsConfig/importExcel").permitAll()
+                //.antMatchers("/tran/pacsConfig/exportExcel").permitAll()
+                //.antMatchers("/tran/diseaseConfig/isExistRecord").permitAll()
+                //.antMatchers("/tran/diseaseConfig/saveOrUpdateRecord").permitAll()
+                //.antMatchers("/tran/diseaseConfig/saveOrUpdateRecords").permitAll()
+                //.antMatchers("/tran/diseaseConfig/deleteRecord").permitAll()
+                //.antMatchers("/tran/diseaseConfig/deleteRecords").permitAll()
                 .antMatchers("/tran/diseaseConfig/getPage").permitAll()
-                .antMatchers("/tran/diseaseConfig/importExcel").permitAll()
-                .antMatchers("/tran/diseaseConfig/exportExcel").permitAll()
-                .antMatchers("/tran/drugConfig/isExistRecord").permitAll()
-                .antMatchers("/tran/drugConfig/saveOrUpdateRecord").permitAll()
-                .antMatchers("/tran/drugConfig/saveOrUpdateRecords").permitAll()
-                .antMatchers("/tran/drugConfig/deleteRecord").permitAll()
-                .antMatchers("/tran/drugConfig/deleteRecords").permitAll()
+                //.antMatchers("/tran/diseaseConfig/importExcel").permitAll()
+                //.antMatchers("/tran/diseaseConfig/exportExcel").permitAll()
+                //.antMatchers("/tran/drugConfig/isExistRecord").permitAll()
+                //.antMatchers("/tran/drugConfig/saveOrUpdateRecord").permitAll()
+                //.antMatchers("/tran/drugConfig/saveOrUpdateRecords").permitAll()
+                //.antMatchers("/tran/drugConfig/deleteRecord").permitAll()
+                // .antMatchers("/tran/drugConfig/deleteRecords").permitAll()
                 .antMatchers("/tran/drugConfig/getPage").permitAll()
-                .antMatchers("/tran/drugConfig/importExcel").permitAll()
-                .antMatchers("/tran/drugConfig/exportExcel").permitAll()
-                .antMatchers("/tran/operationConfig/isExistRecord").permitAll()
-                .antMatchers("/tran/operationConfig/saveOrUpdateRecord").permitAll()
-                .antMatchers("/tran/operationConfig/saveOrUpdateRecords").permitAll()
-                .antMatchers("/tran/operationConfig/deleteRecord").permitAll()
-                .antMatchers("/tran/operationConfig/deleteRecords").permitAll()
+                //.antMatchers("/tran/drugConfig/importExcel").permitAll()
+                // .antMatchers("/tran/drugConfig/exportExcel").permitAll()
+                //.antMatchers("/tran/operationConfig/isExistRecord").permitAll()
+                //.antMatchers("/tran/operationConfig/saveOrUpdateRecord").permitAll()
+                //.antMatchers("/tran/operationConfig/saveOrUpdateRecords").permitAll()
+                //.antMatchers("/tran/operationConfig/deleteRecord").permitAll()
+                //.antMatchers("/tran/operationConfig/deleteRecords").permitAll()
                 .antMatchers("/tran/operationConfig/getPage").permitAll()
-                .antMatchers("/tran/operationConfig/importExcel").permitAll()
-                .antMatchers("/tran/operationConfig/exportExcel").permitAll()
-                .antMatchers("/tran/deptConfig/isExistRecord").permitAll()
-                .antMatchers("/tran/deptConfig/saveOrUpdateRecord").permitAll()
-                .antMatchers("/tran/deptConfig/saveOrUpdateRecords").permitAll()
-                .antMatchers("/tran/deptConfig/deleteRecord").permitAll()
-                .antMatchers("/tran/deptConfig/deleteRecords").permitAll()
+                //.antMatchers("/tran/operationConfig/importExcel").permitAll()
+                //.antMatchers("/tran/operationConfig/exportExcel").permitAll()
+                //.antMatchers("/tran/deptConfig/isExistRecord").permitAll()
+                //.antMatchers("/tran/deptConfig/saveOrUpdateRecord").permitAll()
+                //.antMatchers("/tran/deptConfig/saveOrUpdateRecords").permitAll()
+                //.antMatchers("/tran/deptConfig/deleteRecord").permitAll()
+                //.antMatchers("/tran/deptConfig/deleteRecords").permitAll()
                 .antMatchers("/tran/deptConfig/getPage").permitAll()
-                .antMatchers("/tran/deptConfig/importExcel").permitAll()
-                .antMatchers("/tran/deptConfig/exportExcel").permitAll()
-                .antMatchers("/tran/hospitalInfo/saveRecord").permitAll()
+                //.antMatchers("/tran/deptConfig/importExcel").permitAll()
+                //.antMatchers("/tran/deptConfig/exportExcel").permitAll()
+                //.antMatchers("/tran/hospitalInfo/saveRecord").permitAll()
                 .antMatchers("/tran/hospitalInfo/getHospitalInfo").permitAll()
                 .antMatchers("/tran/hospitalInfo/getHospitalInfoById").permitAll()
                 .antMatchers("/sys/versionInfo/getVersionInfoAlls").permitAll()
@@ -110,11 +110,11 @@ public class ResourceServerConfigurer extends ResourceServerConfigurerAdapter {
                 .antMatchers("/demo/templateInfo/getTemplatePageAlls").permitAll()
                 .antMatchers("/demo/templateInfo/getTemplatebyId").permitAll()
                 .antMatchers("/sys/tokenPermission/getPermission").permitAll()
-                .antMatchers("/sys/plan/getPlanInfoPages").permitAll()
-                .antMatchers("/sys/plan/savePlanInfoDatas").permitAll()
+                //.antMatchers("/sys/plan/getPlanInfoPages").permitAll()
+                //.antMatchers("/sys/plan/savePlanInfoDatas").permitAll()
                 .antMatchers("/sys/plan/getSysPlanInfoDatas").permitAll()
-                .antMatchers("/sys/plan/cancelPlanDatas").permitAll()
-                .antMatchers("/sys/plan/revStopPlans").permitAll()
+                //.antMatchers("/sys/plan/cancelPlanDatas").permitAll()
+                //.antMatchers("/sys/plan/revStopPlans").permitAll()
                 .antMatchers("/sys/tokenHospital/getTokenHospital").permitAll()
                 .antMatchers("/demo/retrieval/index").permitAll()
                 .antMatchers("/graph/conceptInfo/staticKnowledgeIndex").permitAll()
@@ -127,10 +127,10 @@ public class ResourceServerConfigurer extends ResourceServerConfigurerAdapter {
                 .antMatchers("/graph/conceptInfo/isExist").permitAll()
                 .antMatchers("/graph/conceptInfo/getRecordById").permitAll()
                 .antMatchers("/sys/planDetail/getPlanDetailDatas").permitAll()
-                .antMatchers("/sys/planDetail/savePlanDetails").permitAll()
-                .antMatchers("/sys/planDetail/cancelPlanDetails").permitAll()
-                .antMatchers("/sys/planDetail/revStopPlanDetails").permitAll()
-                .antMatchers("/sys/plan/getDefaultPlans").permitAll()
+                //.antMatchers("/sys/planDetail/savePlanDetails").permitAll()
+                //.antMatchers("/sys/planDetail/cancelPlanDetails").permitAll()
+                //.antMatchers("/sys/planDetail/revStopPlanDetails").permitAll()
+                //.antMatchers("/sys/plan/getDefaultPlans").permitAll()
                 .antMatchers("/sys/dictionaryInfo/getList").permitAll()
                 .antMatchers("/sys/dictionaryInfo/getListBack").permitAll()
                 .antMatchers("/**").authenticated();

+ 50 - 50
src/main/java/com/diagbot/config/security/UrlAccessDecisionManager.java

@@ -83,65 +83,65 @@ public class UrlAccessDecisionManager implements AccessDecisionManager {
                 || matchers("/sys/user/getJwt", request)
                 || matchers("/sys/user/refreshJwt", request)
                 || matchers("/sys/user/checkToken", request)
-                || matchers("/sys/user/getUserOrgMenu", request)
+                //|| matchers("/sys/user/getUserOrgMenu", request)
                 || matchers("/oauth/token", request)
                 || matchers("/oauth/check_token", request)
-                || matchers("/tran/lisConfig/isExistRecord", request)
-                || matchers("/tran/lisConfig/saveOrUpdateRecord", request)
-                || matchers("/tran/lisConfig/saveOrUpdateRecords", request)
-                || matchers("/tran/lisConfig/deleteRecord", request)
-                || matchers("/tran/lisConfig/deleteRecords", request)
+                //|| matchers("/tran/lisConfig/isExistRecord", request)
+                //|| matchers("/tran/lisConfig/saveOrUpdateRecord", request)
+                //|| matchers("/tran/lisConfig/saveOrUpdateRecords", request)
+                // || matchers("/tran/lisConfig/deleteRecord", request)
+                //|| matchers("/tran/lisConfig/deleteRecords", request)
                 || matchers("/tran/lisConfig/getPage", request)
-                || matchers("/tran/lisConfig/importExcel", request)
-                || matchers("/tran/lisConfig/exportExcel", request)
-                || matchers("/tran/pacsConfig/isExistRecord", request)
-                || matchers("/tran/pacsConfig/saveOrUpdateRecord", request)
-                || matchers("/tran/pacsConfig/saveOrUpdateRecords", request)
-                || matchers("/tran/pacsConfig/deleteRecord", request)
-                || matchers("/tran/pacsConfig/deleteRecords", request)
+                // || matchers("/tran/lisConfig/importExcel", request)
+                // || matchers("/tran/lisConfig/exportExcel", request)
+                // || matchers("/tran/pacsConfig/isExistRecord", request)
+                //|| matchers("/tran/pacsConfig/saveOrUpdateRecord", request)
+                // || matchers("/tran/pacsConfig/saveOrUpdateRecords", request)
+                // || matchers("/tran/pacsConfig/deleteRecord", request)
+                //|| matchers("/tran/pacsConfig/deleteRecords", request)
                 || matchers("/tran/pacsConfig/getPage", request)
-                || matchers("/tran/pacsConfig/importExcel", request)
-                || matchers("/tran/pacsConfig/exportExcel", request)
-                || matchers("/tran/diseaseConfig/isExistRecord", request)
-                || matchers("/tran/diseaseConfig/saveOrUpdateRecord", request)
-                || matchers("/tran/diseaseConfig/saveOrUpdateRecords", request)
-                || matchers("/tran/diseaseConfig/deleteRecord", request)
-                || matchers("/tran/diseaseConfig/deleteRecords", request)
+                // || matchers("/tran/pacsConfig/importExcel", request)
+                //|| matchers("/tran/pacsConfig/exportExcel", request)
+                //|| matchers("/tran/diseaseConfig/isExistRecord", request)
+                //|| matchers("/tran/diseaseConfig/saveOrUpdateRecord", request)
+                //|| matchers("/tran/diseaseConfig/saveOrUpdateRecords", request)
+                //|| matchers("/tran/diseaseConfig/deleteRecord", request)
+                //|| matchers("/tran/diseaseConfig/deleteRecords", request)
                 || matchers("/tran/diseaseConfig/getPage", request)
-                || matchers("/tran/diseaseConfig/importExcel", request)
-                || matchers("/tran/diseaseConfig/exportExcel", request)
-                || matchers("/tran/drugConfig/isExistRecord", request)
-                || matchers("/tran/drugConfig/saveOrUpdateRecord", request)
-                || matchers("/tran/drugConfig/saveOrUpdateRecords", request)
-                || matchers("/tran/drugConfig/deleteRecord", request)
-                || matchers("/tran/drugConfig/deleteRecords", request)
+                //|| matchers("/tran/diseaseConfig/importExcel", request)
+                //|| matchers("/tran/diseaseConfig/exportExcel", request)
+                //|| matchers("/tran/drugConfig/isExistRecord", request)
+                //|| matchers("/tran/drugConfig/saveOrUpdateRecord", request)
+                //|| matchers("/tran/drugConfig/saveOrUpdateRecords", request)
+                // || matchers("/tran/drugConfig/deleteRecord", request)
+                //|| matchers("/tran/drugConfig/deleteRecords", request)
                 || matchers("/tran/drugConfig/getPage", request)
-                || matchers("/tran/drugConfig/importExcel", request)
-                || matchers("/tran/drugConfig/exportExcel", request)
-                || matchers("/tran/operationConfig/isExistRecord", request)
-                || matchers("/tran/operationConfig/saveOrUpdateRecord", request)
-                || matchers("/tran/operationConfig/saveOrUpdateRecords", request)
-                || matchers("/tran/operationConfig/deleteRecord", request)
-                || matchers("/tran/operationConfig/deleteRecords", request)
+                //|| matchers("/tran/drugConfig/importExcel", request)
+                //|| matchers("/tran/drugConfig/exportExcel", request)
+                // || matchers("/tran/operationConfig/isExistRecord", request)
+                // || matchers("/tran/operationConfig/saveOrUpdateRecord", request)
+                //|| matchers("/tran/operationConfig/saveOrUpdateRecords", request)
+                // || matchers("/tran/operationConfig/deleteRecord", request)
+                //|| matchers("/tran/operationConfig/deleteRecords", request)
                 || matchers("/tran/operationConfig/getPage", request)
-                || matchers("/tran/operationConfig/importExcel", request)
-                || matchers("/tran/operationConfig/exportExcel", request)
-                || matchers("/tran/deptConfig/isExistRecord", request)
-                || matchers("/tran/deptConfig/saveOrUpdateRecord", request)
-                || matchers("/tran/deptConfig/saveOrUpdateRecords", request)
-                || matchers("/tran/deptConfig/deleteRecord", request)
-                || matchers("/tran/deptConfig/deleteRecords", request)
+                //|| matchers("/tran/operationConfig/importExcel", request)
+                //|| matchers("/tran/operationConfig/exportExcel", request)
+                // || matchers("/tran/deptConfig/isExistRecord", request)
+                // || matchers("/tran/deptConfig/saveOrUpdateRecord", request)
+                //|| matchers("/tran/deptConfig/saveOrUpdateRecords", request)
+                // || matchers("/tran/deptConfig/deleteRecord", request)
+                //|| matchers("/tran/deptConfig/deleteRecords", request)
                 || matchers("/tran/deptConfig/getPage", request)
-                || matchers("/tran/deptConfig/importExcel", request)
-                || matchers("/tran/deptConfig/exportExcel", request)
-                || matchers("/tran/hospitalInfo/saveRecord", request)
+                // || matchers("/tran/deptConfig/importExcel", request)
+                // || matchers("/tran/deptConfig/exportExcel", request)
+                //|| matchers("/tran/hospitalInfo/saveRecord", request)
                 || matchers("/tran/hospitalInfo/getHospitalInfo", request)
                 || matchers("/tran/hospitalInfo/getHospitalInfoById", request)
                 || matchers("/sys/versionInfo/getVersionInfoAlls", request)
                 || matchers("/sys/disclaimerInfo/getDisclaimerInfo", request)
                 || matchers("/sys/mr/createMr", request)
                 || matchers("/sys/mr/getMr", request)
-                || matchers("/sys/plan/getSysPlanInfoDatas", request)
+                //|| matchers("/sys/plan/getSysPlanInfoDatas", request)
                 || matchers("/sys/mrqc/analyze_run", request)
                 || matchers("/sys/tokenPermission/delPermission", request)
                 || matchers("/sys/tokenPermission/getPermission", request)
@@ -153,10 +153,10 @@ public class UrlAccessDecisionManager implements AccessDecisionManager {
                 || matchers("/demo/templateInfo/getTemplatePageAlls", request)
                 || matchers("/demo/templateInfo/getTemplatebyId", request)
                 || matchers("/sys/plan/getPlanInfoPages", request)
-                || matchers("/sys/plan/savePlanInfoDatas", request)
+                /*|| matchers("/sys/plan/savePlanInfoDatas", request)
                 || matchers("/sys/plan/getSysPlanInfoDatas", request)
-                || matchers("/sys/plan/cancelPlanDatas", request)
-                || matchers("/sys/plan/revStopPlans", request)
+                || matchers("/sys/plan/cancelPlanDatas", request)*/
+                //|| matchers("/sys/plan/revStopPlans", request)
                 || matchers("/sys/tokenHospital/getTokenHospital", request)
                 || matchers("/demo/retrieval/index", request)
                 || matchers("/graph/conceptInfo/staticKnowledgeIndex", request)
@@ -169,10 +169,10 @@ public class UrlAccessDecisionManager implements AccessDecisionManager {
                 || matchers("/graph/conceptInfo/isExist", request)
                 || matchers("/graph/conceptInfo/getRecordById", request)
                 || matchers("/sys/planDetail/getPlanDetailDatas", request)
-                || matchers("/sys/planDetail/savePlanDetails", request)
+                /*|| matchers("/sys/planDetail/savePlanDetails", request)
                 || matchers("/sys/planDetail/cancelPlanDetails", request)
                 || matchers("/sys/planDetail/revStopPlanDetails", request)
-                || matchers("/sys/plan/getDefaultPlans", request)
+                || matchers("/sys/plan/getDefaultPlans", request)*/
                 || matchers("/sys/dictionaryInfo/getList", request)
                 || matchers("/sys/dictionaryInfo/getListBack", request)
                 || matchers("/", request)) {