Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cneeds-server
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhangzr
cneeds-server
Commits
ff367eff
Commit
ff367eff
authored
Jun 09, 2020
by
zzrdark
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.增加权限
parent
d6276f17
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
322 additions
and
84 deletions
+322
-84
workspace.xml
.idea/workspace.xml
+109
-76
AuthorizaitonApplication.java
...cneeds/server/anthorization/AuthorizaitonApplication.java
+2
-0
UserClient.java
...com/mx/cneeds/server/anthorization/client/UserClient.java
+130
-0
MyUserDetailsService.java
...ds/server/anthorization/service/MyUserDetailsService.java
+30
-3
SysUserServiceImpl.java
...server/anthorization/service/impl/SysUserServiceImpl.java
+2
-1
OAuth2ResourceServer.java
...x/cneeds/server/datashow/config/OAuth2ResourceServer.java
+2
-0
DeviceController.java
...x/cneeds/server/datashow/web/device/DeviceController.java
+23
-0
SystemController.java
...x/cneeds/server/datashow/web/system/SystemController.java
+22
-0
UserController.java
.../mx/cneeds/server/datashow/web/system/UserController.java
+2
-4
No files found.
.idea/workspace.xml
View file @
ff367eff
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<project
version=
"4"
>
<component
name=
"ChangeListManager"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"58efcb75-622d-40c1-b8e0-10cd2fb456b4"
name=
"Default Changelist"
comment=
"1."
>
<list
default=
"true"
id=
"58efcb75-622d-40c1-b8e0-10cd2fb456b4"
name=
"Default Changelist"
comment=
"1.增加系统模块查询 2.添加页面"
>
<change
afterPath=
"$PROJECT_DIR$/cneeds-common-pojo/src/main/java/com/mx/cneeds/common/dto/StatisticsDeviceChannelDto.java"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/cneeds-server-authorization/src/main/java/com/mx/cneeds/server/anthorization/client/UserClient.java"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/cneeds-common-pojo/src/main/java/com/mx/cneeds/common/vo/StatisticsDeviceChannelVo.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/cneeds-common-pojo/src/main/java/com/mx/cneeds/common/dto/DeviceChannelStatisticsDto.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/cneeds-common-pojo/src/main/java/com/mx/cneeds/common/dto/DeviceChannelStatisticsDto.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/cneeds-server-authorization/src/main/java/com/mx/cneeds/server/anthorization/AuthorizaitonApplication.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/cneeds-server-authorization/src/main/java/com/mx/cneeds/server/anthorization/AuthorizaitonApplication.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/DatashowApplication.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/DatashowApplication.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/cneeds-server-authorization/src/main/java/com/mx/cneeds/server/anthorization/service/MyUserDetailsService.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/cneeds-server-authorization/src/main/java/com/mx/cneeds/server/anthorization/service/MyUserDetailsService.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/client/DeviceClient.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/client/DeviceClient.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/cneeds-server-authorization/src/main/java/com/mx/cneeds/server/anthorization/service/impl/SysUserServiceImpl.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/cneeds-server-authorization/src/main/java/com/mx/cneeds/server/anthorization/service/impl/SysUserServiceImpl.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/config/OAuth2ResourceServer.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/config/OAuth2ResourceServer.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/web/device/DeviceController.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/web/device/DeviceController.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/web/device/DeviceController.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/web/device/DeviceController.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/cneeds-server-device/src/main/java/com/mx/cneeds/server/device/service/DeviceInfoChannelService.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/cneeds-server-device/src/main/java/com/mx/cneeds/server/device/service/DeviceInfoChannelService.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/web/system/SystemController.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/web/system/SystemController.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/cneeds-server-device/src/main/java/com/mx/cneeds/server/device/service/DeviceInfoService.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/cneeds-server-device/src/main/java/com/mx/cneeds/server/device/service/DeviceInfoService.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/web/system/UserController.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/web/system/UserController.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/cneeds-server-device/src/main/java/com/mx/cneeds/server/device/service/impl/DeviceInfoChannelServiceImpl.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/cneeds-server-device/src/main/java/com/mx/cneeds/server/device/service/impl/DeviceInfoChannelServiceImpl.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/cneeds-server-device/src/main/java/com/mx/cneeds/server/device/service/impl/DeviceInfoServiceImpl.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/cneeds-server-device/src/main/java/com/mx/cneeds/server/device/service/impl/DeviceInfoServiceImpl.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/cneeds-server-device/src/main/java/com/mx/cneeds/server/device/web/DeviceChannelController.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/cneeds-server-device/src/main/java/com/mx/cneeds/server/device/web/DeviceChannelController.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/cneeds-server-device/src/main/java/com/mx/cneeds/server/device/web/DeviceInfoController.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/cneeds-server-device/src/main/java/com/mx/cneeds/server/device/web/DeviceInfoController.java"
afterDir=
"false"
/>
</list>
</list>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"HIGHLIGHT_CONFLICTS"
value=
"true"
/>
<option
name=
"HIGHLIGHT_CONFLICTS"
value=
"true"
/>
...
@@ -115,18 +111,18 @@
...
@@ -115,18 +111,18 @@
<recent
name=
"E:\mx_project\cneeds-server\cneeds-common-hadoop-dfs\src\main\resources"
/>
<recent
name=
"E:\mx_project\cneeds-server\cneeds-common-hadoop-dfs\src\main\resources"
/>
</key>
</key>
<key
name=
"CopyClassDialog.RECENTS_KEY"
>
<key
name=
"CopyClassDialog.RECENTS_KEY"
>
<recent
name=
"com.mx.cneeds.server.anthorization.client"
/>
<recent
name=
"com.mx.cneeds.common.dto"
/>
<recent
name=
"com.mx.cneeds.common.dto"
/>
<recent
name=
"com.mx.cneeds.common.vo"
/>
<recent
name=
"com.mx.cneeds.common.vo"
/>
<recent
name=
"com.mx.cneeds.server.device.service.impl"
/>
<recent
name=
"com.mx.cneeds.server.device.service.impl"
/>
<recent
name=
"com.mx.cneeds.server.device.service"
/>
<recent
name=
"com.mx.cneeds.server.device.service"
/>
<recent
name=
"com.mx.cneeds.server.datashow.web.device"
/>
</key>
</key>
<key
name=
"MoveFile.RECENT_KEYS"
>
<key
name=
"MoveFile.RECENT_KEYS"
>
<recent
name=
"E:\mx_project\cneeds-server\cneeds-server-datashow\target"
/>
<recent
name=
"E:\mx_project\cneeds-server\cneeds-server-datashow\src\main\resources\template"
/>
<recent
name=
"E:\mx_project\cneeds-server\cneeds-server-datashow\src\main\resources\template"
/>
<recent
name=
"E:\mx_project\cneeds-server\cneeds-common-data\src\test"
/>
<recent
name=
"E:\mx_project\cneeds-server\cneeds-common-data\src\test"
/>
<recent
name=
"E:\mx_project\cneeds-server\cneeds-server-datashow\src\main\java\com\mx\cneeds"
/>
<recent
name=
"E:\mx_project\cneeds-server\cneeds-server-datashow\src\main\java\com\mx\cneeds"
/>
<recent
name=
"E:\mx_project\cneeds-server\cneeds-server-datashow\src\main\resources"
/>
<recent
name=
"E:\mx_project\cneeds-server\cneeds-server-datashow\src\main\resources"
/>
<recent
name=
"E:\mx_project\cneeds-server"
/>
</key>
</key>
</component>
</component>
<component
name=
"RestServicesNavigator"
>
<component
name=
"RestServicesNavigator"
>
...
@@ -139,7 +135,7 @@
...
@@ -139,7 +135,7 @@
<select
/>
<select
/>
</treeState>
</treeState>
</component>
</component>
<component
name=
"RunManager"
selected=
"Spring Boot.D
evice
Application"
>
<component
name=
"RunManager"
selected=
"Spring Boot.D
atashow
Application"
>
<configuration
name=
"EurekaServerApplication"
type=
"Application"
factoryName=
"Application"
temporary=
"true"
nameIsGenerated=
"true"
>
<configuration
name=
"EurekaServerApplication"
type=
"Application"
factoryName=
"Application"
temporary=
"true"
nameIsGenerated=
"true"
>
<option
name=
"MAIN_CLASS_NAME"
value=
"com.mx.cneeds.server.eureka.EurekaServerApplication"
/>
<option
name=
"MAIN_CLASS_NAME"
value=
"com.mx.cneeds.server.eureka.EurekaServerApplication"
/>
<module
name=
"cneeds-server-eureka"
/>
<module
name=
"cneeds-server-eureka"
/>
...
@@ -375,7 +371,15 @@
...
@@ -375,7 +371,15 @@
<workItem
from=
"1590457495095"
duration=
"8778000"
/>
<workItem
from=
"1590457495095"
duration=
"8778000"
/>
<workItem
from=
"1590494119415"
duration=
"255000"
/>
<workItem
from=
"1590494119415"
duration=
"255000"
/>
<workItem
from=
"1590544161162"
duration=
"18204000"
/>
<workItem
from=
"1590544161162"
duration=
"18204000"
/>
<workItem
from=
"1590631453001"
duration=
"20430000"
/>
<workItem
from=
"1590631453001"
duration=
"20759000"
/>
<workItem
from=
"1590716848160"
duration=
"10280000"
/>
<workItem
from=
"1590976281098"
duration=
"5091000"
/>
<workItem
from=
"1591061544801"
duration=
"7323000"
/>
<workItem
from=
"1591151835760"
duration=
"17120000"
/>
<workItem
from=
"1591237160810"
duration=
"15104000"
/>
<workItem
from=
"1591323587575"
duration=
"5626000"
/>
<workItem
from=
"1591582504524"
duration=
"12232000"
/>
<workItem
from=
"1591667434216"
duration=
"21014000"
/>
</task>
</task>
<task
id=
"LOCAL-00001"
summary=
"1.修改不需要web服务 2.增加一个logupload"
>
<task
id=
"LOCAL-00001"
summary=
"1.修改不需要web服务 2.增加一个logupload"
>
<created>
1578451117064
</created>
<created>
1578451117064
</created>
...
@@ -664,7 +668,35 @@
...
@@ -664,7 +668,35 @@
<option
name=
"project"
value=
"LOCAL"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1590577249854
</updated>
<updated>
1590577249854
</updated>
</task>
</task>
<option
name=
"localTasksCounter"
value=
"42"
/>
<task
id=
"LOCAL-00042"
summary=
"1.增加删除统计设备渠道号 2.修复查询统计设备渠道号信息 3.修复适配配置"
>
<created>
1590664625409
</created>
<option
name=
"number"
value=
"00042"
/>
<option
name=
"presentableId"
value=
"LOCAL-00042"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1590664625409
</updated>
</task>
<task
id=
"LOCAL-00043"
summary=
"1.增加各模块查询参数 2.log日志详情imei参数增加"
>
<created>
1591097136815
</created>
<option
name=
"number"
value=
"00043"
/>
<option
name=
"presentableId"
value=
"LOCAL-00043"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1591097136815
</updated>
</task>
<task
id=
"LOCAL-00044"
summary=
"1.增加系统模块查询 2.添加页面"
>
<created>
1591185928382
</created>
<option
name=
"number"
value=
"00044"
/>
<option
name=
"presentableId"
value=
"LOCAL-00044"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1591185928382
</updated>
</task>
<task
id=
"LOCAL-00045"
summary=
"1.修复 新增用户"
>
<created>
1591356905359
</created>
<option
name=
"number"
value=
"00045"
/>
<option
name=
"presentableId"
value=
"LOCAL-00045"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1591356905359
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"46"
/>
<servers
/>
<servers
/>
</component>
</component>
<component
name=
"TypeScriptGeneratedFilesManager"
>
<component
name=
"TypeScriptGeneratedFilesManager"
>
...
@@ -715,10 +747,6 @@
...
@@ -715,10 +747,6 @@
</component>
</component>
<component
name=
"VcsManagerConfiguration"
>
<component
name=
"VcsManagerConfiguration"
>
<option
name=
"ADD_EXTERNAL_FILES_SILENTLY"
value=
"true"
/>
<option
name=
"ADD_EXTERNAL_FILES_SILENTLY"
value=
"true"
/>
<MESSAGE
value=
"1.mqtt 2.日志上传模块"
/>
<MESSAGE
value=
"1.日志上传模块"
/>
<MESSAGE
value=
"1.日志上传模块 2.修改数据库"
/>
<MESSAGE
value=
"1.日志上传文件上传"
/>
<MESSAGE
value=
"1.add日志上传模块"
/>
<MESSAGE
value=
"1.add日志上传模块"
/>
<MESSAGE
value=
"1.修改渠道管理 2.增加测试环境配置"
/>
<MESSAGE
value=
"1.修改渠道管理 2.增加测试环境配置"
/>
<MESSAGE
value=
"1.mqttBean"
/>
<MESSAGE
value=
"1.mqttBean"
/>
...
@@ -740,7 +768,11 @@
...
@@ -740,7 +768,11 @@
<MESSAGE
value=
"1.增加下载模板 2.修复其他接口请求问题"
/>
<MESSAGE
value=
"1.增加下载模板 2.修复其他接口请求问题"
/>
<MESSAGE
value=
"1.fix 系列号修改不成功"
/>
<MESSAGE
value=
"1.fix 系列号修改不成功"
/>
<MESSAGE
value=
"1.修改适配配置配置结果"
/>
<MESSAGE
value=
"1.修改适配配置配置结果"
/>
<option
name=
"LAST_COMMIT_MESSAGE"
value=
"1.修改适配配置配置结果"
/>
<MESSAGE
value=
"1.增加删除统计设备渠道号 2.修复查询统计设备渠道号信息 3.修复适配配置"
/>
<MESSAGE
value=
"1.增加各模块查询参数 2.log日志详情imei参数增加"
/>
<MESSAGE
value=
"1.增加系统模块查询 2.添加页面"
/>
<MESSAGE
value=
"1.修复 新增用户"
/>
<option
name=
"LAST_COMMIT_MESSAGE"
value=
"1.修复 新增用户"
/>
</component>
</component>
<component
name=
"WindowStateProjectService"
>
<component
name=
"WindowStateProjectService"
>
<state
x=
"590"
y=
"156"
key=
"#LogUploadApplication"
timestamp=
"1585894479679"
>
<state
x=
"590"
y=
"156"
key=
"#LogUploadApplication"
timestamp=
"1585894479679"
>
...
@@ -751,22 +783,22 @@
...
@@ -751,22 +783,22 @@
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
</state>
</state>
<state
x=
"552"
y=
"178"
key=
"#Project_Structure/0.0.1920.1040@0.0.1920.1040"
timestamp=
"1587954208897"
/>
<state
x=
"552"
y=
"178"
key=
"#Project_Structure/0.0.1920.1040@0.0.1920.1040"
timestamp=
"1587954208897"
/>
<state
x=
"
378"
y=
"114"
key=
"#com.intellij.execution.impl.EditConfigurationsDialog"
timestamp=
"1587558670160
"
>
<state
x=
"
552"
y=
"178"
key=
"#TODO"
timestamp=
"1590723910073
"
>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
</state>
</state>
<state
x=
"
378"
y=
"114"
key=
"#com.intellij.execution.impl.EditConfigurationsDialog/0.0.1920.1040@0.0.1920.1040"
timestamp=
"1587558670160
"
/>
<state
x=
"
552"
y=
"178"
key=
"#TODO/0.0.1920.1040@0.0.1920.1040"
timestamp=
"1590723910073
"
/>
<state
x=
"
765"
y=
"229"
key=
"#com.intellij.ide.util.MemberChooser"
timestamp=
"1589193842611
"
>
<state
x=
"
378"
y=
"114"
key=
"#com.intellij.execution.impl.EditConfigurationsDialog"
timestamp=
"1591587501395
"
>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
</state>
</state>
<state
x=
"
765"
y=
"229"
key=
"#com.intellij.ide.util.MemberChooser/0.0.1920.1040@0.0.1920.1040"
timestamp=
"1589193842611
"
/>
<state
x=
"
378"
y=
"114"
key=
"#com.intellij.execution.impl.EditConfigurationsDialog/0.0.1920.1040@0.0.1920.1040"
timestamp=
"1591587501395
"
/>
<state
x=
"
640"
y=
"246"
key=
"#com.intellij.openapi.updateSettings.impl.PluginUpdateInfoDialog"
timestamp=
"1582697117117
"
>
<state
x=
"
765"
y=
"229"
key=
"#com.intellij.ide.util.MemberChooser"
timestamp=
"1589193842611
"
>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
</state>
</state>
<state
x=
"
640"
y=
"246"
key=
"#com.intellij.openapi.updateSettings.impl.PluginUpdateInfoDialog/0.0.1920.1040@0.0.1920.1040"
timestamp=
"1582697117117
"
/>
<state
x=
"
765"
y=
"229"
key=
"#com.intellij.ide.util.MemberChooser/0.0.1920.1040@0.0.1920.1040"
timestamp=
"1589193842611
"
/>
<state
x=
"598"
y=
"445"
key=
"#com.intellij.refactoring.move.MoveHandler.SelectRefactoringDialog"
timestamp=
"15
83319176856
"
>
<state
x=
"598"
y=
"445"
key=
"#com.intellij.refactoring.move.MoveHandler.SelectRefactoringDialog"
timestamp=
"15
91689111948
"
>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
</state>
</state>
<state
x=
"598"
y=
"445"
key=
"#com.intellij.refactoring.move.MoveHandler.SelectRefactoringDialog/0.0.1920.1040@0.0.1920.1040"
timestamp=
"15
83319176856
"
/>
<state
x=
"598"
y=
"445"
key=
"#com.intellij.refactoring.move.MoveHandler.SelectRefactoringDialog/0.0.1920.1040@0.0.1920.1040"
timestamp=
"15
91689111948
"
/>
<state
x=
"690"
y=
"266"
key=
"#com.intellij.refactoring.safeDelete.UnsafeUsagesDialog"
timestamp=
"1583224455231"
>
<state
x=
"690"
y=
"266"
key=
"#com.intellij.refactoring.safeDelete.UnsafeUsagesDialog"
timestamp=
"1583224455231"
>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
</state>
</state>
...
@@ -775,82 +807,78 @@
...
@@ -775,82 +807,78 @@
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
</state>
</state>
<state
x=
"703"
y=
"356"
key=
"ANALYSIS_DLG_com.intellij.analysis.BaseAnalysisAction$1/0.0.1920.1040@0.0.1920.1040"
timestamp=
"1583822701848"
/>
<state
x=
"703"
y=
"356"
key=
"ANALYSIS_DLG_com.intellij.analysis.BaseAnalysisAction$1/0.0.1920.1040@0.0.1920.1040"
timestamp=
"1583822701848"
/>
<state
x=
"463"
y=
"112"
width=
"953"
height=
"816"
key=
"CommitChangelistDialog2"
timestamp=
"159
0577246304
"
>
<state
x=
"463"
y=
"112"
width=
"953"
height=
"816"
key=
"CommitChangelistDialog2"
timestamp=
"159
1699176903
"
>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
</state>
</state>
<state
x=
"463"
y=
"112"
width=
"953"
height=
"816"
key=
"CommitChangelistDialog2/0.0.1920.1040@0.0.1920.1040"
timestamp=
"159
0577246304
"
/>
<state
x=
"463"
y=
"112"
width=
"953"
height=
"816"
key=
"CommitChangelistDialog2/0.0.1920.1040@0.0.1920.1040"
timestamp=
"159
1699176903
"
/>
<state
x=
"150"
y=
"103"
key=
"DiffContextDialog"
timestamp=
"159
0549880859
"
>
<state
x=
"150"
y=
"103"
key=
"DiffContextDialog"
timestamp=
"159
1699175750
"
>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
</state>
</state>
<state
x=
"150"
y=
"103"
key=
"DiffContextDialog/0.0.1920.1040@0.0.1920.1040"
timestamp=
"159
0549880859
"
/>
<state
x=
"150"
y=
"103"
key=
"DiffContextDialog/0.0.1920.1040@0.0.1920.1040"
timestamp=
"159
1699175750
"
/>
<state
x=
"740"
y=
"275"
key=
"FileChooserDialogImpl"
timestamp=
"1588922129570"
>
<state
x=
"740"
y=
"275"
key=
"FileChooserDialogImpl"
timestamp=
"1588922129570"
>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
</state>
</state>
<state
x=
"740"
y=
"275"
key=
"FileChooserDialogImpl/0.0.1920.1040@0.0.1920.1040"
timestamp=
"1588922129570"
/>
<state
x=
"740"
y=
"275"
key=
"FileChooserDialogImpl/0.0.1920.1040@0.0.1920.1040"
timestamp=
"1588922129570"
/>
<state
width=
"1877"
height=
"
365"
key=
"GridCell.Tab.0.bottom"
timestamp=
"1590663931653
"
>
<state
width=
"1877"
height=
"
268"
key=
"GridCell.Tab.0.bottom"
timestamp=
"1591705496562
"
>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
</state>
</state>
<state
width=
"1877"
height=
"
365"
key=
"GridCell.Tab.0.bottom/0.0.1920.1040@0.0.1920.1040"
timestamp=
"1590663931653
"
/>
<state
width=
"1877"
height=
"
268"
key=
"GridCell.Tab.0.bottom/0.0.1920.1040@0.0.1920.1040"
timestamp=
"1591705496562
"
/>
<state
width=
"1877"
height=
"
365"
key=
"GridCell.Tab.0.center"
timestamp=
"159066393165
2"
>
<state
width=
"1877"
height=
"
268"
key=
"GridCell.Tab.0.center"
timestamp=
"159170549656
2"
>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
</state>
</state>
<state
width=
"1877"
height=
"
365"
key=
"GridCell.Tab.0.center/0.0.1920.1040@0.0.1920.1040"
timestamp=
"159066393165
2"
/>
<state
width=
"1877"
height=
"
268"
key=
"GridCell.Tab.0.center/0.0.1920.1040@0.0.1920.1040"
timestamp=
"159170549656
2"
/>
<state
width=
"1877"
height=
"
365"
key=
"GridCell.Tab.0.left"
timestamp=
"159066393165
2"
>
<state
width=
"1877"
height=
"
268"
key=
"GridCell.Tab.0.left"
timestamp=
"159170549656
2"
>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
</state>
</state>
<state
width=
"1877"
height=
"
365"
key=
"GridCell.Tab.0.left/0.0.1920.1040@0.0.1920.1040"
timestamp=
"159066393165
2"
/>
<state
width=
"1877"
height=
"
268"
key=
"GridCell.Tab.0.left/0.0.1920.1040@0.0.1920.1040"
timestamp=
"159170549656
2"
/>
<state
width=
"1877"
height=
"
365"
key=
"GridCell.Tab.0.right"
timestamp=
"159066393165
2"
>
<state
width=
"1877"
height=
"
268"
key=
"GridCell.Tab.0.right"
timestamp=
"159170549656
2"
>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
</state>
</state>
<state
width=
"1877"
height=
"
365"
key=
"GridCell.Tab.0.right/0.0.1920.1040@0.0.1920.1040"
timestamp=
"159066393165
2"
/>
<state
width=
"1877"
height=
"
268"
key=
"GridCell.Tab.0.right/0.0.1920.1040@0.0.1920.1040"
timestamp=
"159170549656
2"
/>
<state
width=
"1877"
height=
"
365"
key=
"GridCell.Tab.1.bottom"
timestamp=
"1590663943291
"
>
<state
width=
"1877"
height=
"
268"
key=
"GridCell.Tab.1.bottom"
timestamp=
"1591705496603
"
>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
</state>
</state>
<state
width=
"1877"
height=
"
365"
key=
"GridCell.Tab.1.bottom/0.0.1920.1040@0.0.1920.1040"
timestamp=
"1590663943291
"
/>
<state
width=
"1877"
height=
"
268"
key=
"GridCell.Tab.1.bottom/0.0.1920.1040@0.0.1920.1040"
timestamp=
"1591705496603
"
/>
<state
width=
"1877"
height=
"
365"
key=
"GridCell.Tab.1.center"
timestamp=
"1590663943291
"
>
<state
width=
"1877"
height=
"
268"
key=
"GridCell.Tab.1.center"
timestamp=
"1591705496603
"
>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
</state>
</state>
<state
width=
"1877"
height=
"
365"
key=
"GridCell.Tab.1.center/0.0.1920.1040@0.0.1920.1040"
timestamp=
"1590663943291
"
/>
<state
width=
"1877"
height=
"
268"
key=
"GridCell.Tab.1.center/0.0.1920.1040@0.0.1920.1040"
timestamp=
"1591705496603
"
/>
<state
width=
"1877"
height=
"
365"
key=
"GridCell.Tab.1.left"
timestamp=
"1590663943291
"
>
<state
width=
"1877"
height=
"
268"
key=
"GridCell.Tab.1.left"
timestamp=
"1591705496603
"
>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
</state>
</state>
<state
width=
"1877"
height=
"
365"
key=
"GridCell.Tab.1.left/0.0.1920.1040@0.0.1920.1040"
timestamp=
"1590663943291
"
/>
<state
width=
"1877"
height=
"
268"
key=
"GridCell.Tab.1.left/0.0.1920.1040@0.0.1920.1040"
timestamp=
"1591705496603
"
/>
<state
width=
"1877"
height=
"
365"
key=
"GridCell.Tab.1.right"
timestamp=
"1590663943291
"
>
<state
width=
"1877"
height=
"
268"
key=
"GridCell.Tab.1.right"
timestamp=
"1591705496603
"
>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
</state>
</state>
<state
width=
"1877"
height=
"
365"
key=
"GridCell.Tab.1.right/0.0.1920.1040@0.0.1920.1040"
timestamp=
"1590663943291
"
/>
<state
width=
"1877"
height=
"
268"
key=
"GridCell.Tab.1.right/0.0.1920.1040@0.0.1920.1040"
timestamp=
"1591705496603
"
/>
<state
width=
"1877"
height=
"
365"
key=
"GridCell.Tab.2.bottom"
timestamp=
"1590663931511
"
>
<state
width=
"1877"
height=
"
268"
key=
"GridCell.Tab.2.bottom"
timestamp=
"1591705496562
"
>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
</state>
</state>
<state
width=
"1877"
height=
"
365"
key=
"GridCell.Tab.2.bottom/0.0.1920.1040@0.0.1920.1040"
timestamp=
"1590663931511
"
/>
<state
width=
"1877"
height=
"
268"
key=
"GridCell.Tab.2.bottom/0.0.1920.1040@0.0.1920.1040"
timestamp=
"1591705496562
"
/>
<state
width=
"1877"
height=
"
365"
key=
"GridCell.Tab.2.center"
timestamp=
"1590663931511
"
>
<state
width=
"1877"
height=
"
268"
key=
"GridCell.Tab.2.center"
timestamp=
"1591705496562
"
>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
</state>
</state>
<state
width=
"1877"
height=
"
365"
key=
"GridCell.Tab.2.center/0.0.1920.1040@0.0.1920.1040"
timestamp=
"1590663931511
"
/>
<state
width=
"1877"
height=
"
268"
key=
"GridCell.Tab.2.center/0.0.1920.1040@0.0.1920.1040"
timestamp=
"1591705496562
"
/>
<state
width=
"1877"
height=
"
365"
key=
"GridCell.Tab.2.left"
timestamp=
"1590663931510
"
>
<state
width=
"1877"
height=
"
268"
key=
"GridCell.Tab.2.left"
timestamp=
"1591705496562
"
>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
</state>
</state>
<state
width=
"1877"
height=
"
365"
key=
"GridCell.Tab.2.left/0.0.1920.1040@0.0.1920.1040"
timestamp=
"1590663931510
"
/>
<state
width=
"1877"
height=
"
268"
key=
"GridCell.Tab.2.left/0.0.1920.1040@0.0.1920.1040"
timestamp=
"1591705496562
"
/>
<state
width=
"1877"
height=
"
365"
key=
"GridCell.Tab.2.right"
timestamp=
"1590663931511
"
>
<state
width=
"1877"
height=
"
268"
key=
"GridCell.Tab.2.right"
timestamp=
"1591705496562
"
>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
</state>
</state>
<state
width=
"1877"
height=
"
365"
key=
"GridCell.Tab.2.right/0.0.1920.1040@0.0.1920.1040"
timestamp=
"1590663931511
"
/>
<state
width=
"1877"
height=
"
268"
key=
"GridCell.Tab.2.right/0.0.1920.1040@0.0.1920.1040"
timestamp=
"1591705496562
"
/>
<state
x=
"490"
y=
"175"
key=
"Maven.ArtifactSearchDialog"
timestamp=
"1583320014926"
>
<state
x=
"490"
y=
"175"
key=
"Maven.ArtifactSearchDialog"
timestamp=
"1583320014926"
>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
</state>
</state>
<state
x=
"490"
y=
"175"
key=
"Maven.ArtifactSearchDialog/0.0.1920.1040@0.0.1920.1040"
timestamp=
"1583320014926"
/>
<state
x=
"490"
y=
"175"
key=
"Maven.ArtifactSearchDialog/0.0.1920.1040@0.0.1920.1040"
timestamp=
"1583320014926"
/>
<state
x=
"600"
y=
"217"
key=
"NewModule_or_Project.wizard"
timestamp=
"1582699806601"
>
<state
x=
"438"
y=
"166"
width=
"1352"
height=
"708"
key=
"SettingsEditor"
timestamp=
"1591693189478"
>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
</state>
<state
x=
"600"
y=
"217"
key=
"NewModule_or_Project.wizard/0.0.1920.1040@0.0.1920.1040"
timestamp=
"1582699806601"
/>
<state
x=
"438"
y=
"166"
width=
"1352"
height=
"708"
key=
"SettingsEditor"
timestamp=
"1587869864619"
>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
</state>
</state>
<state
x=
"438"
y=
"166"
width=
"1352"
height=
"708"
key=
"SettingsEditor/0.0.1920.1040@0.0.1920.1040"
timestamp=
"15
87869864619
"
/>
<state
x=
"438"
y=
"166"
width=
"1352"
height=
"708"
key=
"SettingsEditor/0.0.1920.1040@0.0.1920.1040"
timestamp=
"15
91693189478
"
/>
<state
x=
"552"
y=
"253"
key=
"Vcs.Push.Dialog.v2"
timestamp=
"159
0577251052
"
>
<state
x=
"552"
y=
"253"
key=
"Vcs.Push.Dialog.v2"
timestamp=
"159
1356906819
"
>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
</state>
</state>
<state
x=
"552"
y=
"253"
key=
"Vcs.Push.Dialog.v2/0.0.1920.1040@0.0.1920.1040"
timestamp=
"159
0577251052
"
/>
<state
x=
"552"
y=
"253"
key=
"Vcs.Push.Dialog.v2/0.0.1920.1040@0.0.1920.1040"
timestamp=
"159
1356906819
"
/>
<state
width=
"968"
height=
"528"
key=
"XDebugger.FullValuePopup"
timestamp=
"1585818529449"
>
<state
width=
"968"
height=
"528"
key=
"XDebugger.FullValuePopup"
timestamp=
"1585818529449"
>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
</state>
</state>
...
@@ -867,10 +895,10 @@
...
@@ -867,10 +895,10 @@
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
</state>
</state>
<state
x=
"690"
y=
"284"
key=
"extract.method.dialog/0.0.1920.1040@0.0.1920.1040"
timestamp=
"1584010366958"
/>
<state
x=
"690"
y=
"284"
key=
"extract.method.dialog/0.0.1920.1040@0.0.1920.1040"
timestamp=
"1584010366958"
/>
<state
x=
"636"
y=
"253"
width=
"7
02"
height=
"534"
key=
"find.popup"
timestamp=
"1589537559918
"
>
<state
x=
"636"
y=
"253"
width=
"7
86"
height=
"600"
key=
"find.popup"
timestamp=
"1591705280055
"
>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
</state>
</state>
<state
x=
"636"
y=
"253"
width=
"7
02"
height=
"534"
key=
"find.popup/0.0.1920.1040@0.0.1920.1040"
timestamp=
"1589537559918
"
/>
<state
x=
"636"
y=
"253"
width=
"7
86"
height=
"600"
key=
"find.popup/0.0.1920.1040@0.0.1920.1040"
timestamp=
"1591705280055
"
/>
<state
x=
"511"
y=
"210"
key=
"new project wizard"
timestamp=
"1587463523363"
>
<state
x=
"511"
y=
"210"
key=
"new project wizard"
timestamp=
"1587463523363"
>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
</state>
</state>
...
@@ -879,10 +907,10 @@
...
@@ -879,10 +907,10 @@
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
</state>
</state>
<state
x=
"616"
y=
"240"
key=
"run.anything.popup/0.0.1920.1040@0.0.1920.1040"
timestamp=
"1588144418613"
/>
<state
x=
"616"
y=
"240"
key=
"run.anything.popup/0.0.1920.1040@0.0.1920.1040"
timestamp=
"1588144418613"
/>
<state
x=
"616"
y=
"173"
width=
"672"
height=
"676"
key=
"search.everywhere.popup"
timestamp=
"1590
656952024
"
>
<state
x=
"616"
y=
"173"
width=
"672"
height=
"676"
key=
"search.everywhere.popup"
timestamp=
"1590
745365802
"
>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
</state>
</state>
<state
x=
"616"
y=
"173"
width=
"672"
height=
"676"
key=
"search.everywhere.popup/0.0.1920.1040@0.0.1920.1040"
timestamp=
"1590
656952024
"
/>
<state
x=
"616"
y=
"173"
width=
"672"
height=
"676"
key=
"search.everywhere.popup/0.0.1920.1040@0.0.1920.1040"
timestamp=
"1590
745365802
"
/>
</component>
</component>
<component
name=
"XDebuggerManager"
>
<component
name=
"XDebuggerManager"
>
<breakpoint-manager>
<breakpoint-manager>
...
@@ -893,11 +921,6 @@
...
@@ -893,11 +921,6 @@
<option
name=
"timeStamp"
value=
"3"
/>
<option
name=
"timeStamp"
value=
"3"
/>
</line-breakpoint>
</line-breakpoint>
<line-breakpoint
enabled=
"true"
type=
"java-line"
>
<line-breakpoint
enabled=
"true"
type=
"java-line"
>
<url>
file://$PROJECT_DIR$/cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/web/system/SystemController.java
</url>
<line>
359
</line>
<option
name=
"timeStamp"
value=
"18"
/>
</line-breakpoint>
<line-breakpoint
enabled=
"true"
type=
"java-line"
>
<url>
jar://$MAVEN_REPOSITORY$/org/springframework/security/spring-security-web/5.0.9.RELEASE/spring-security-web-5.0.9.RELEASE-sources.jar!/org/springframework/security/web/authentication/AbstractAuthenticationProcessingFilter.java
</url>
<url>
jar://$MAVEN_REPOSITORY$/org/springframework/security/spring-security-web/5.0.9.RELEASE/spring-security-web-5.0.9.RELEASE-sources.jar!/org/springframework/security/web/authentication/AbstractAuthenticationProcessingFilter.java
</url>
<line>
211
</line>
<line>
211
</line>
<option
name=
"timeStamp"
value=
"29"
/>
<option
name=
"timeStamp"
value=
"29"
/>
...
@@ -924,7 +947,7 @@
...
@@ -924,7 +947,7 @@
</line-breakpoint>
</line-breakpoint>
<line-breakpoint
enabled=
"true"
type=
"java-line"
>
<line-breakpoint
enabled=
"true"
type=
"java-line"
>
<url>
file://$PROJECT_DIR$/cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/web/device/DeviceController.java
</url>
<url>
file://$PROJECT_DIR$/cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/web/device/DeviceController.java
</url>
<line>
25
4
</line>
<line>
25
8
</line>
<option
name=
"timeStamp"
value=
"61"
/>
<option
name=
"timeStamp"
value=
"61"
/>
</line-breakpoint>
</line-breakpoint>
<line-breakpoint
enabled=
"true"
type=
"java-line"
>
<line-breakpoint
enabled=
"true"
type=
"java-line"
>
...
@@ -932,6 +955,16 @@
...
@@ -932,6 +955,16 @@
<line>
240
</line>
<line>
240
</line>
<option
name=
"timeStamp"
value=
"69"
/>
<option
name=
"timeStamp"
value=
"69"
/>
</line-breakpoint>
</line-breakpoint>
<line-breakpoint
enabled=
"true"
type=
"java-line"
>
<url>
file://$PROJECT_DIR$/cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/web/system/SystemController.java
</url>
<line>
52
</line>
<option
name=
"timeStamp"
value=
"70"
/>
</line-breakpoint>
<line-breakpoint
enabled=
"true"
type=
"java-line"
>
<url>
file://$PROJECT_DIR$/cneeds-server-authorization/src/main/java/com/mx/cneeds/server/anthorization/service/MyUserDetailsService.java
</url>
<line>
47
</line>
<option
name=
"timeStamp"
value=
"71"
/>
</line-breakpoint>
</breakpoints>
</breakpoints>
</breakpoint-manager>
</breakpoint-manager>
<watches-manager>
<watches-manager>
...
...
cneeds-server-authorization/src/main/java/com/mx/cneeds/server/anthorization/AuthorizaitonApplication.java
View file @
ff367eff
...
@@ -4,6 +4,7 @@ import org.mybatis.spring.annotation.MapperScan;
...
@@ -4,6 +4,7 @@ import org.mybatis.spring.annotation.MapperScan;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.cloud.netflix.eureka.EnableEurekaClient
;
import
org.springframework.cloud.netflix.eureka.EnableEurekaClient
;
import
org.springframework.cloud.openfeign.EnableFeignClients
;
/**
/**
* @ClassName AuthorizaitonApplication
* @ClassName AuthorizaitonApplication
...
@@ -13,6 +14,7 @@ import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
...
@@ -13,6 +14,7 @@ import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
**/
**/
@SpringBootApplication
@SpringBootApplication
@EnableEurekaClient
@EnableEurekaClient
@EnableFeignClients
@MapperScan
(
"com.mx.cneeds.server.dao"
)
@MapperScan
(
"com.mx.cneeds.server.dao"
)
public
class
AuthorizaitonApplication
{
public
class
AuthorizaitonApplication
{
...
...
cneeds-server-authorization/src/main/java/com/mx/cneeds/server/anthorization/client/UserClient.java
0 → 100644
View file @
ff367eff
package
com
.
mx
.
cneeds
.
server
.
anthorization
.
client
;
import
com.mx.cneeds.common.dto.*
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
java.util.List
;
/**
* @ClassName UserClient
* @Author zzrdark
* @Date 2020-03-09 15:21
* @Description TODO
**/
@FeignClient
(
name
=
"CNEEDS-SERVER-USER"
)
public
interface
UserClient
{
/**
*
* @param page
* @param pageSize
* @param order
* @param orderField
* @return
*/
@PostMapping
(
"/sys/func/list"
)
PageDto
funcList
(
@RequestParam
Integer
page
,
@RequestParam
(
"limit"
)
Integer
pageSize
,
@RequestParam
(
"sidx"
)
String
orderField
,
@RequestParam
(
"order"
)
String
order
);
@PostMapping
(
"/sys/func/listAll"
)
List
<
FuncDto
>
funcListAll
();
/**
*
* @param page
* @param pageSize
* @param orderField
* @param order
* @return
*/
@PostMapping
(
"/sys/dept/list"
)
PageDto
deptList
(
@RequestParam
Integer
page
,
@RequestParam
(
"limit"
)
Integer
pageSize
,
@RequestParam
(
"sidx"
)
String
orderField
,
@RequestParam
(
"order"
)
String
order
,
@RequestParam
(
"name"
)
String
name
);
/**
* 获取部门列表
* @return
*/
@PostMapping
(
"/sys/dept/listAll"
)
List
<
DepartmentDto
>
deptListAll
();
@PostMapping
(
"/sys/dept/save"
)
void
addDept
(
@RequestBody
DepartmentDto
dto
);
@PostMapping
(
"/sys/dept/update"
)
void
updateDept
(
@RequestBody
DepartmentDto
dto
);
@PostMapping
(
"/sys/dept/delete"
)
void
deleteDept
(
@RequestBody
List
<
Long
>
ids
);
@PostMapping
(
"/sys/dept/info"
)
DepartmentDto
deptInfo
(
@RequestBody
Long
deptId
);
/**
*
* @param page
* @param pageSize
* @param order
* @param orderField
* @return
*/
@PostMapping
(
"/sys/role/list"
)
PageDto
roleList
(
@RequestParam
Integer
page
,
@RequestParam
(
"limit"
)
Integer
pageSize
,
@RequestParam
(
"sidx"
)
String
orderField
,
@RequestParam
(
"order"
)
String
order
,
@RequestParam
(
"roleName"
)
String
roleName
);
@PostMapping
(
"/sys/role/info"
)
RoleDto
infoRole
(
@RequestParam
Long
roleId
);
@PostMapping
(
"/sys/role/save"
)
void
addRole
(
@RequestBody
RoleDto
dto
);
@PostMapping
(
"/sys/role/update"
)
void
updateRole
(
@RequestBody
RoleDto
dto
);
@PostMapping
(
"/sys/role/delete"
)
void
deleteRole
(
@RequestBody
List
<
Long
>
ids
);
@PostMapping
(
"/sys/role/listAll"
)
List
<
RoleDto
>
roleListAll
();
/**
*
* @param page
* @param pageSize
* @param order
* @param orderField
* @return
*/
@PostMapping
(
"/sys/user/list"
)
PageDto
userList
(
@RequestParam
Integer
page
,
@RequestParam
(
"limit"
)
Integer
pageSize
,
@RequestParam
(
"sidx"
)
String
orderField
,
@RequestParam
(
"order"
)
String
order
,
@RequestParam
(
"username"
)
String
username
);
@PostMapping
(
"/sys/user/userinfo"
)
UserDto
userInfo
(
@RequestParam
String
username
);
@PostMapping
(
"/sys/user/save"
)
void
addUser
(
@RequestBody
UserDto
dto
);
@PostMapping
(
"/sys/user/update"
)
void
updateUser
(
@RequestBody
UserDto
dto
);
@PostMapping
(
"/sys/user/delete"
)
void
deleteUser
(
@RequestBody
List
<
Long
>
ids
);
}
cneeds-server-authorization/src/main/java/com/mx/cneeds/server/anthorization/service/MyUserDetailsService.java
View file @
ff367eff
package
com
.
mx
.
cneeds
.
server
.
anthorization
.
service
;
package
com
.
mx
.
cneeds
.
server
.
anthorization
.
service
;
import
com.mx.cneeds.common.dto.UserDto
;
import
com.mx.cneeds.server.anthorization.client.UserClient
;
import
com.mx.cneeds.server.entity.SysUserEntity
;
import
com.mx.cneeds.server.entity.SysUserEntity
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.security.core.authority.AuthorityUtils
;
import
org.springframework.security.core.GrantedAuthority
;
import
org.springframework.security.core.authority.SimpleGrantedAuthority
;
import
org.springframework.security.core.userdetails.User
;
import
org.springframework.security.core.userdetails.User
;
import
org.springframework.security.core.userdetails.UserDetails
;
import
org.springframework.security.core.userdetails.UserDetails
;
import
org.springframework.security.core.userdetails.UserDetailsService
;
import
org.springframework.security.core.userdetails.UserDetailsService
;
...
@@ -10,6 +13,9 @@ import org.springframework.security.core.userdetails.UsernameNotFoundException;
...
@@ -10,6 +13,9 @@ import org.springframework.security.core.userdetails.UsernameNotFoundException;
import
org.springframework.security.crypto.password.PasswordEncoder
;
import
org.springframework.security.crypto.password.PasswordEncoder
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
java.util.ArrayList
;
import
java.util.List
;
@Component
@Component
public
class
MyUserDetailsService
implements
UserDetailsService
{
public
class
MyUserDetailsService
implements
UserDetailsService
{
...
@@ -18,6 +24,9 @@ public class MyUserDetailsService implements UserDetailsService {
...
@@ -18,6 +24,9 @@ public class MyUserDetailsService implements UserDetailsService {
@Autowired
@Autowired
private
SysUserService
sysUserService
;
private
SysUserService
sysUserService
;
@Autowired
private
UserClient
userClient
;
/** (non-Javadoc)
/** (non-Javadoc)
* @see UserDetailsService#loadUserByUsername(String)
* @see UserDetailsService#loadUserByUsername(String)
...
@@ -29,8 +38,25 @@ public class MyUserDetailsService implements UserDetailsService {
...
@@ -29,8 +38,25 @@ public class MyUserDetailsService implements UserDetailsService {
if
(
sysUserEntity
==
null
){
if
(
sysUserEntity
==
null
){
return
null
;
return
null
;
}
}
return
new
User
(
username
,
sysUserEntity
.
getPassword
(),
AuthorityUtils
.
commaSeparatedStringToAuthorityList
(
"ROLE_admin"
));
UserDto
userDto
=
userClient
.
userInfo
(
username
);
List
<
GrantedAuthority
>
authorities
=
new
ArrayList
<>();
if
(
sysUserEntity
.
getUserId
()
==
1
){
authorities
.
add
(
new
SimpleGrantedAuthority
(
"ROLE_admin"
));
}
else
{
List
<
String
>
funcPerms
=
userDto
.
getFuncPerms
();
funcPerms
.
forEach
(
str
->
{
authorities
.
add
(
new
SimpleGrantedAuthority
(
str
));
});
}
return
new
User
(
username
,
sysUserEntity
.
getPassword
(),
authorities
);
}
}
}
}
\ No newline at end of file
cneeds-server-authorization/src/main/java/com/mx/cneeds/server/anthorization/service/impl/SysUserServiceImpl.java
View file @
ff367eff
...
@@ -7,10 +7,11 @@ import com.mx.cneeds.common.pager.PageUtils;
...
@@ -7,10 +7,11 @@ import com.mx.cneeds.common.pager.PageUtils;
import
com.mx.cneeds.common.pager.Query
;
import
com.mx.cneeds.common.pager.Query
;
import
com.mx.cneeds.server.anthorization.service.SysUserService
;
import
com.mx.cneeds.server.anthorization.service.SysUserService
;
import
com.mx.cneeds.server.dao.SysUserDao
;
import
com.mx.cneeds.server.dao.SysUserDao
;
import
com.mx.cneeds.server.entity.SysFuncEntity
;
import
com.mx.cneeds.server.entity.SysUserEntity
;
import
com.mx.cneeds.server.entity.SysUserEntity
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.util.
Map
;
import
java.util.
*
;
@Service
(
"sysUserService"
)
@Service
(
"sysUserService"
)
...
...
cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/config/OAuth2ResourceServer.java
View file @
ff367eff
...
@@ -2,6 +2,7 @@ package com.mx.cneeds.server.datashow.config;
...
@@ -2,6 +2,7 @@ package com.mx.cneeds.server.datashow.config;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity
;
import
org.springframework.security.config.annotation.web.builders.HttpSecurity
;
import
org.springframework.security.config.annotation.web.builders.HttpSecurity
;
import
org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder
;
import
org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder
;
import
org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer
;
import
org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer
;
...
@@ -14,6 +15,7 @@ import org.springframework.security.oauth2.provider.token.store.JwtTokenStore;
...
@@ -14,6 +15,7 @@ import org.springframework.security.oauth2.provider.token.store.JwtTokenStore;
// 资源服务配置
// 资源服务配置
@Configuration
@Configuration
@EnableResourceServer
@EnableResourceServer
@EnableGlobalMethodSecurity
(
prePostEnabled
=
true
)
public
class
OAuth2ResourceServer
extends
ResourceServerConfigurerAdapter
{
public
class
OAuth2ResourceServer
extends
ResourceServerConfigurerAdapter
{
@Override
@Override
...
...
cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/web/device/DeviceController.java
View file @
ff367eff
...
@@ -16,6 +16,7 @@ import org.springframework.core.io.InputStreamResource;
...
@@ -16,6 +16,7 @@ import org.springframework.core.io.InputStreamResource;
import
org.springframework.http.HttpHeaders
;
import
org.springframework.http.HttpHeaders
;
import
org.springframework.http.MediaType
;
import
org.springframework.http.MediaType
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
java.io.FileNotFoundException
;
import
java.io.FileNotFoundException
;
...
@@ -65,6 +66,7 @@ public class DeviceController {
...
@@ -65,6 +66,7 @@ public class DeviceController {
return
new
R
().
put
(
"data"
,
channelVo
);
return
new
R
().
put
(
"data"
,
channelVo
);
}
}
@PreAuthorize
(
"hasRole('configManagement:deviceChannel:add') or hasRole('admin')"
)
@PostMapping
(
"/device/saveChannel"
)
@PostMapping
(
"/device/saveChannel"
)
public
R
saveChannel_nums
(
DeviceChannelVo
channelVo
){
public
R
saveChannel_nums
(
DeviceChannelVo
channelVo
){
DevicesDto
devicesDto
=
new
DevicesDto
();
DevicesDto
devicesDto
=
new
DevicesDto
();
...
@@ -77,6 +79,7 @@ public class DeviceController {
...
@@ -77,6 +79,7 @@ public class DeviceController {
@PreAuthorize
(
"hasRole('configManagement:productSeries:list') or hasRole('admin')"
)
@PostMapping
(
"/series/list"
)
@PostMapping
(
"/series/list"
)
public
R
seriesList
(
@RequestParam
(
required
=
false
)
Integer
page
,
public
R
seriesList
(
@RequestParam
(
required
=
false
)
Integer
page
,
@RequestParam
(
required
=
false
)
Integer
pageSize
,
@RequestParam
(
required
=
false
)
Integer
pageSize
,
...
@@ -110,6 +113,7 @@ public class DeviceController {
...
@@ -110,6 +113,7 @@ public class DeviceController {
return
new
R
().
put
(
"data"
,
pageDto
);
return
new
R
().
put
(
"data"
,
pageDto
);
}
}
@PreAuthorize
(
"hasRole('configManagement:productSeries:list') or hasRole('admin')"
)
@PostMapping
(
"/series/listAll"
)
@PostMapping
(
"/series/listAll"
)
public
R
selectSeries
(){
public
R
selectSeries
(){
List
<
SeriesDto
>
seriesDtos
=
deviceClient
.
seriesListAll
();
List
<
SeriesDto
>
seriesDtos
=
deviceClient
.
seriesListAll
();
...
@@ -117,6 +121,7 @@ public class DeviceController {
...
@@ -117,6 +121,7 @@ public class DeviceController {
return
new
R
().
put
(
"data"
,
seriesDtos
);
return
new
R
().
put
(
"data"
,
seriesDtos
);
}
}
@PreAuthorize
(
"hasRole('configManagement:productSeries:add') or hasRole('admin')"
)
@PostMapping
(
"/series/add"
)
@PostMapping
(
"/series/add"
)
public
R
addSeries
(
SeriesVo
seriesVo
){
public
R
addSeries
(
SeriesVo
seriesVo
){
SeriesDto
querySeries
=
deviceClient
.
querySeries
(
seriesVo
.
getSeriesNum
());
SeriesDto
querySeries
=
deviceClient
.
querySeries
(
seriesVo
.
getSeriesNum
());
...
@@ -132,6 +137,7 @@ public class DeviceController {
...
@@ -132,6 +137,7 @@ public class DeviceController {
}
}
@PreAuthorize
(
"hasRole('configManagement:productSeries:edit') or hasRole('admin')"
)
@PostMapping
(
"/series/edit"
)
@PostMapping
(
"/series/edit"
)
public
R
editSeries
(
SeriesVo
seriesVo
){
public
R
editSeries
(
SeriesVo
seriesVo
){
...
@@ -143,6 +149,7 @@ public class DeviceController {
...
@@ -143,6 +149,7 @@ public class DeviceController {
}
}
@PreAuthorize
(
"hasRole('configManagement:productSeries:delete') or hasRole('admin')"
)
@PostMapping
(
"/series/delete"
)
@PostMapping
(
"/series/delete"
)
public
R
deleteSeries
(
@RequestParam
(
value
=
"ids"
,
required
=
false
)
List
<
Long
>
ids
){
public
R
deleteSeries
(
@RequestParam
(
value
=
"ids"
,
required
=
false
)
List
<
Long
>
ids
){
deviceClient
.
deleteSeries
(
ids
);
deviceClient
.
deleteSeries
(
ids
);
...
@@ -151,6 +158,7 @@ public class DeviceController {
...
@@ -151,6 +158,7 @@ public class DeviceController {
}
}
@PreAuthorize
(
"hasRole('deviceManagement:device:list') or hasRole('admin')"
)
@PostMapping
(
"/device/list"
)
@PostMapping
(
"/device/list"
)
public
R
deviceList
(
@RequestParam
(
required
=
false
)
Integer
page
,
public
R
deviceList
(
@RequestParam
(
required
=
false
)
Integer
page
,
@RequestParam
(
required
=
false
)
Integer
pageSize
,
@RequestParam
(
required
=
false
)
Integer
pageSize
,
...
@@ -183,6 +191,7 @@ public class DeviceController {
...
@@ -183,6 +191,7 @@ public class DeviceController {
return
new
R
().
put
(
"data"
,
pageDto
);
return
new
R
().
put
(
"data"
,
pageDto
);
}
}
@PreAuthorize
(
"hasRole('deviceManagement:device:add') or hasRole('admin')"
)
@PostMapping
(
"/device/importDevice"
)
@PostMapping
(
"/device/importDevice"
)
public
R
importDevice
(
DevicesVo
devicesVo
){
public
R
importDevice
(
DevicesVo
devicesVo
){
DevicesDto
devicesDto
=
new
DevicesDto
();
DevicesDto
devicesDto
=
new
DevicesDto
();
...
@@ -193,6 +202,7 @@ public class DeviceController {
...
@@ -193,6 +202,7 @@ public class DeviceController {
}
}
@PreAuthorize
(
"hasRole('deviceManagement:device:edit') or hasRole('admin')"
)
@PostMapping
(
"/device/updateDeviceSeriesBatch"
)
@PostMapping
(
"/device/updateDeviceSeriesBatch"
)
public
R
updateDeviceSeriesBatch
(
DevicesVo
devicesVo
){
public
R
updateDeviceSeriesBatch
(
DevicesVo
devicesVo
){
DevicesDto
devicesDto
=
new
DevicesDto
();
DevicesDto
devicesDto
=
new
DevicesDto
();
...
@@ -203,6 +213,7 @@ public class DeviceController {
...
@@ -203,6 +213,7 @@ public class DeviceController {
}
}
@PreAuthorize
(
"hasRole('deviceManagement:device:delete') or hasRole('admin')"
)
@PostMapping
(
"/device/delete"
)
@PostMapping
(
"/device/delete"
)
public
R
deleteDevice
(
@RequestParam
(
value
=
"ids"
,
required
=
false
)
List
<
Long
>
ids
){
public
R
deleteDevice
(
@RequestParam
(
value
=
"ids"
,
required
=
false
)
List
<
Long
>
ids
){
deviceClient
.
deleteDevice
(
ids
);
deviceClient
.
deleteDevice
(
ids
);
...
@@ -210,6 +221,7 @@ public class DeviceController {
...
@@ -210,6 +221,7 @@ public class DeviceController {
}
}
@PreAuthorize
(
"hasRole('deviceManagement:device:list') or hasRole('admin')"
)
@PostMapping
(
"/device/queryDeviceByImei"
)
@PostMapping
(
"/device/queryDeviceByImei"
)
public
R
queryDeviceByImei
(
@RequestBody
DeviceInfoDto
dto
){
public
R
queryDeviceByImei
(
@RequestBody
DeviceInfoDto
dto
){
log
.
debug
(
"queryDeviceByImei: imei:"
+
dto
.
getImei
());
log
.
debug
(
"queryDeviceByImei: imei:"
+
dto
.
getImei
());
...
@@ -221,6 +233,7 @@ public class DeviceController {
...
@@ -221,6 +233,7 @@ public class DeviceController {
}
}
@PreAuthorize
(
"hasRole('configManagement:deviceChannel:list') or hasRole('admin')"
)
@PostMapping
(
"/deviceChannel/list"
)
@PostMapping
(
"/deviceChannel/list"
)
public
R
deivceChannelList
(
@RequestParam
(
required
=
false
)
Integer
page
,
public
R
deivceChannelList
(
@RequestParam
(
required
=
false
)
Integer
page
,
@RequestParam
(
required
=
false
)
Integer
pageSize
,
@RequestParam
(
required
=
false
)
Integer
pageSize
,
...
@@ -254,6 +267,7 @@ public class DeviceController {
...
@@ -254,6 +267,7 @@ public class DeviceController {
return
new
R
().
put
(
"data"
,
pageDto
);
return
new
R
().
put
(
"data"
,
pageDto
);
}
}
@PreAuthorize
(
"hasRole('configManagement:deviceChannel:add') or hasRole('admin')"
)
@PostMapping
(
"/deviceChannel/add"
)
@PostMapping
(
"/deviceChannel/add"
)
public
R
addDeviceChannel
(
ChannelVo
vo
){
public
R
addDeviceChannel
(
ChannelVo
vo
){
DeviceChannelDto
dto
=
deviceClient
.
queryDeviceChannel
(
vo
.
getChannelNum
());
DeviceChannelDto
dto
=
deviceClient
.
queryDeviceChannel
(
vo
.
getChannelNum
());
...
@@ -269,6 +283,7 @@ public class DeviceController {
...
@@ -269,6 +283,7 @@ public class DeviceController {
}
}
@PreAuthorize
(
"hasRole('configManagement:deviceChannel:edit') or hasRole('admin')"
)
@PostMapping
(
"/deviceChannel/edit"
)
@PostMapping
(
"/deviceChannel/edit"
)
public
R
editSeries
(
ChannelVo
vo
){
public
R
editSeries
(
ChannelVo
vo
){
DeviceChannelDto
deviceChannelDto
=
new
DeviceChannelDto
();
DeviceChannelDto
deviceChannelDto
=
new
DeviceChannelDto
();
...
@@ -277,24 +292,28 @@ public class DeviceController {
...
@@ -277,24 +292,28 @@ public class DeviceController {
return
R
.
ok
();
return
R
.
ok
();
}
}
@PreAuthorize
(
"hasRole('configManagement:deviceChannel:delete') or hasRole('admin')"
)
@PostMapping
(
"/deviceChannel/delete"
)
@PostMapping
(
"/deviceChannel/delete"
)
public
R
deleteDeviceChannel
(
@RequestParam
(
value
=
"ids"
,
required
=
false
)
List
<
Long
>
ids
){
public
R
deleteDeviceChannel
(
@RequestParam
(
value
=
"ids"
,
required
=
false
)
List
<
Long
>
ids
){
deviceClient
.
deleteDeviceChannels
(
ids
);
deviceClient
.
deleteDeviceChannels
(
ids
);
return
R
.
ok
();
return
R
.
ok
();
}
}
@PreAuthorize
(
"hasRole('configManagement:deviceChannel:list') or hasRole('admin')"
)
@PostMapping
(
"/deviceChannel/queryDeviceChannelAll"
)
@PostMapping
(
"/deviceChannel/queryDeviceChannelAll"
)
public
R
queryDeviceChannelAll
(){
public
R
queryDeviceChannelAll
(){
List
<
DeviceChannelDto
>
deviceChannelDtos
=
deviceClient
.
queryDeviceChannelAll
();
List
<
DeviceChannelDto
>
deviceChannelDtos
=
deviceClient
.
queryDeviceChannelAll
();
return
R
.
ok
().
put
(
"data"
,
deviceChannelDtos
);
return
R
.
ok
().
put
(
"data"
,
deviceChannelDtos
);
}
}
@PreAuthorize
(
"hasRole('configManagement:deviceChannel:delete') or hasRole('admin')"
)
@PostMapping
(
"/deviceChannel/deleteSettingDeviceChannel"
)
@PostMapping
(
"/deviceChannel/deleteSettingDeviceChannel"
)
public
R
deleteSettingDeviceChannel
(
Long
deviceId
){
public
R
deleteSettingDeviceChannel
(
Long
deviceId
){
deviceClient
.
deleteSettingDeviceChannel
(
deviceId
);
deviceClient
.
deleteSettingDeviceChannel
(
deviceId
);
return
R
.
ok
();
return
R
.
ok
();
}
}
@PreAuthorize
(
"hasRole('configManagement:deviceChannel:delete') or hasRole('admin')"
)
@PostMapping
(
"/deviceChannel/updateSettingDeviceChannel"
)
@PostMapping
(
"/deviceChannel/updateSettingDeviceChannel"
)
public
R
updateSettingDeviceChannel
(
DeviceInfoVo
vo
){
public
R
updateSettingDeviceChannel
(
DeviceInfoVo
vo
){
DeviceInfoDto
dto
=
new
DeviceInfoDto
();
DeviceInfoDto
dto
=
new
DeviceInfoDto
();
...
@@ -303,6 +322,7 @@ public class DeviceController {
...
@@ -303,6 +322,7 @@ public class DeviceController {
return
R
.
ok
();
return
R
.
ok
();
}
}
@PreAuthorize
(
"hasRole('configManagement:deviceChannel:list') or hasRole('admin')"
)
@PostMapping
(
"/deviceChannel/queryTotalStatisticsDeviceChannel"
)
@PostMapping
(
"/deviceChannel/queryTotalStatisticsDeviceChannel"
)
public
R
queryTotalStatisticsDeviceChannel
(
@RequestParam
(
value
=
"channelIds"
,
required
=
false
)
List
<
Long
>
channelIds
){
public
R
queryTotalStatisticsDeviceChannel
(
@RequestParam
(
value
=
"channelIds"
,
required
=
false
)
List
<
Long
>
channelIds
){
...
@@ -320,6 +340,7 @@ public class DeviceController {
...
@@ -320,6 +340,7 @@ public class DeviceController {
return
R
.
ok
().
put
(
"data"
,
list
);
return
R
.
ok
().
put
(
"data"
,
list
);
}
}
@PreAuthorize
(
"hasRole('admin')"
)
@PostMapping
(
"/device/uploadDeivceChannelExcel"
)
@PostMapping
(
"/device/uploadDeivceChannelExcel"
)
public
R
uploadDeivceChannelExcel
(
@RequestBody
UploadDeviceChannelExcelVo
vo
){
public
R
uploadDeivceChannelExcel
(
@RequestBody
UploadDeviceChannelExcelVo
vo
){
UploadDeviceChannelExcelDto
dto
=
new
UploadDeviceChannelExcelDto
();
UploadDeviceChannelExcelDto
dto
=
new
UploadDeviceChannelExcelDto
();
...
@@ -356,6 +377,7 @@ public class DeviceController {
...
@@ -356,6 +377,7 @@ public class DeviceController {
return
response
;
return
response
;
}
}
@PreAuthorize
(
"hasRole('configManagement:deviceChannel:list') or hasRole('admin')"
)
@RequestMapping
(
"/device/queryDeviceChannelSetting"
)
@RequestMapping
(
"/device/queryDeviceChannelSetting"
)
public
R
queryDeviceChannelSetting
(
@RequestBody
List
<
String
>
imeis
){
public
R
queryDeviceChannelSetting
(
@RequestBody
List
<
String
>
imeis
){
...
@@ -367,6 +389,7 @@ public class DeviceController {
...
@@ -367,6 +389,7 @@ public class DeviceController {
return
R
.
error
(
ResultCode
.
PARAMERROR
,
"参数错误"
);
return
R
.
error
(
ResultCode
.
PARAMERROR
,
"参数错误"
);
}
}
@PreAuthorize
(
"hasRole('configManagement:deviceChannel:delete') or hasRole('admin')"
)
@RequestMapping
(
"/deviceChannel/deleteStatisticsDeviceChannel"
)
@RequestMapping
(
"/deviceChannel/deleteStatisticsDeviceChannel"
)
public
R
deleteStatisticsDeviceChannel
(
StatisticsDeviceChannelVo
vo
){
public
R
deleteStatisticsDeviceChannel
(
StatisticsDeviceChannelVo
vo
){
if
(
vo
==
null
){
if
(
vo
==
null
){
...
...
cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/web/system/SystemController.java
View file @
ff367eff
...
@@ -12,6 +12,7 @@ import lombok.extern.slf4j.Slf4j;
...
@@ -12,6 +12,7 @@ import lombok.extern.slf4j.Slf4j;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder
;
import
org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
...
@@ -43,6 +44,7 @@ public class SystemController {
...
@@ -43,6 +44,7 @@ public class SystemController {
* @param sort
* @param sort
* @return
* @return
*/
*/
@PreAuthorize
(
"hasRole('sys:module:list') or hasRole('admin')"
)
@PostMapping
(
"/module/list"
)
@PostMapping
(
"/module/list"
)
public
R
funcList
(
@RequestParam
(
required
=
false
)
Integer
page
,
public
R
funcList
(
@RequestParam
(
required
=
false
)
Integer
page
,
@RequestParam
(
required
=
false
)
Integer
pageSize
,
@RequestParam
(
required
=
false
)
Integer
pageSize
,
...
@@ -78,6 +80,7 @@ public class SystemController {
...
@@ -78,6 +80,7 @@ public class SystemController {
* 查询出角色关联的模块
* 查询出角色关联的模块
* @return
* @return
*/
*/
@PreAuthorize
(
"hasRole('sys:module:list') or hasRole('admin')"
)
@PostMapping
(
"/func/listAll"
)
@PostMapping
(
"/func/listAll"
)
public
R
selectTreeFunc
(){
public
R
selectTreeFunc
(){
List
<
FuncDto
>
dtos
=
userClient
.
funcListAll
();
List
<
FuncDto
>
dtos
=
userClient
.
funcListAll
();
...
@@ -104,6 +107,7 @@ public class SystemController {
...
@@ -104,6 +107,7 @@ public class SystemController {
* 查询出用户关联的模块
* 查询出用户关联的模块
* @return
* @return
*/
*/
@PreAuthorize
(
"hasRole('sys:module:list') or hasRole('admin')"
)
@PostMapping
(
"/func/user/listAll"
)
@PostMapping
(
"/func/user/listAll"
)
public
R
selectTreeFuncUser
(){
public
R
selectTreeFuncUser
(){
List
<
FuncDto
>
dtos
=
userClient
.
funcListAll
();
List
<
FuncDto
>
dtos
=
userClient
.
funcListAll
();
...
@@ -133,6 +137,7 @@ public class SystemController {
...
@@ -133,6 +137,7 @@ public class SystemController {
* @param sort
* @param sort
* @return
* @return
*/
*/
@PreAuthorize
(
"hasRole('sys:dept:list') or hasRole('admin')"
)
@PostMapping
(
"/dept/list"
)
@PostMapping
(
"/dept/list"
)
public
R
deptList
(
@RequestParam
(
required
=
false
)
Integer
page
,
public
R
deptList
(
@RequestParam
(
required
=
false
)
Integer
page
,
@RequestParam
(
required
=
false
)
Integer
pageSize
,
@RequestParam
(
required
=
false
)
Integer
pageSize
,
...
@@ -166,6 +171,7 @@ public class SystemController {
...
@@ -166,6 +171,7 @@ public class SystemController {
return
new
R
().
put
(
"data"
,
pageDto
);
return
new
R
().
put
(
"data"
,
pageDto
);
}
}
@PreAuthorize
(
"hasRole('sys:dept:add') or hasRole('admin')"
)
@PostMapping
(
"/dept/add"
)
@PostMapping
(
"/dept/add"
)
public
R
addDept
(
DepartmentVo
departmentVo
){
public
R
addDept
(
DepartmentVo
departmentVo
){
DepartmentDto
departmentDto
=
new
DepartmentDto
();
DepartmentDto
departmentDto
=
new
DepartmentDto
();
...
@@ -181,6 +187,7 @@ public class SystemController {
...
@@ -181,6 +187,7 @@ public class SystemController {
* @param departmentVo
* @param departmentVo
* @return
* @return
*/
*/
@PreAuthorize
(
"hasRole('sys:dept:edit') or hasRole('admin')"
)
@PostMapping
(
"/dept/edit"
)
@PostMapping
(
"/dept/edit"
)
public
R
editDept
(
DepartmentVo
departmentVo
){
public
R
editDept
(
DepartmentVo
departmentVo
){
...
@@ -198,6 +205,7 @@ public class SystemController {
...
@@ -198,6 +205,7 @@ public class SystemController {
* @param ids
* @param ids
* @return
* @return
*/
*/
@PreAuthorize
(
"hasRole('sys:dept:delete') or hasRole('admin')"
)
@PostMapping
(
"/dept/delete"
)
@PostMapping
(
"/dept/delete"
)
public
R
deleteDept
(
@RequestParam
(
value
=
"ids"
,
required
=
false
)
List
<
Long
>
ids
){
public
R
deleteDept
(
@RequestParam
(
value
=
"ids"
,
required
=
false
)
List
<
Long
>
ids
){
userClient
.
deleteDept
(
ids
);
userClient
.
deleteDept
(
ids
);
...
@@ -209,6 +217,7 @@ public class SystemController {
...
@@ -209,6 +217,7 @@ public class SystemController {
* 获取部门下拉框列表
* 获取部门下拉框列表
* @return 返回树形的列表
* @return 返回树形的列表
*/
*/
@PreAuthorize
(
"hasRole('sys:dept:list') or hasRole('admin')"
)
@PostMapping
(
"/dept/listAll"
)
@PostMapping
(
"/dept/listAll"
)
public
R
selectDeptParent
(){
public
R
selectDeptParent
(){
UserDto
userDto
=
userClient
.
userInfo
(
UserUtils
.
getUserName
());
UserDto
userDto
=
userClient
.
userInfo
(
UserUtils
.
getUserName
());
...
@@ -241,6 +250,7 @@ public class SystemController {
...
@@ -241,6 +250,7 @@ public class SystemController {
* 获取部门下拉框列表
* 获取部门下拉框列表
* @return 返回树形的列表
* @return 返回树形的列表
*/
*/
@PreAuthorize
(
"hasRole('sys:dept:list') or hasRole('admin')"
)
@PostMapping
(
"/dept/listAllTree"
)
@PostMapping
(
"/dept/listAllTree"
)
public
R
selectTreeDeptParent
(){
public
R
selectTreeDeptParent
(){
UserDto
userDto
=
userClient
.
userInfo
(
UserUtils
.
getUserName
());
UserDto
userDto
=
userClient
.
userInfo
(
UserUtils
.
getUserName
());
...
@@ -266,6 +276,7 @@ public class SystemController {
...
@@ -266,6 +276,7 @@ public class SystemController {
return
new
R
().
put
(
"data"
,
result
);
return
new
R
().
put
(
"data"
,
result
);
}
}
@PreAuthorize
(
"hasRole('sys:user:list') or hasRole('admin')"
)
@PostMapping
(
"/dept/user/listAllTree"
)
@PostMapping
(
"/dept/user/listAllTree"
)
public
R
selectTreeDeptUserParent
(){
public
R
selectTreeDeptUserParent
(){
UserDto
userDto
=
userClient
.
userInfo
(
UserUtils
.
getUserName
());
UserDto
userDto
=
userClient
.
userInfo
(
UserUtils
.
getUserName
());
...
@@ -299,6 +310,7 @@ public class SystemController {
...
@@ -299,6 +310,7 @@ public class SystemController {
* @param sort
* @param sort
* @return
* @return
*/
*/
@PreAuthorize
(
"hasRole('sys:role:list') or hasRole('admin')"
)
@PostMapping
(
"/role/list"
)
@PostMapping
(
"/role/list"
)
public
R
roleList
(
@RequestParam
(
required
=
false
)
Integer
page
,
public
R
roleList
(
@RequestParam
(
required
=
false
)
Integer
page
,
@RequestParam
(
required
=
false
)
Integer
pageSize
,
@RequestParam
(
required
=
false
)
Integer
pageSize
,
...
@@ -337,6 +349,7 @@ public class SystemController {
...
@@ -337,6 +349,7 @@ public class SystemController {
* @param roleId
* @param roleId
* @return
* @return
*/
*/
@PreAuthorize
(
"hasRole('sys:role:list') or hasRole('admin')"
)
@RequestMapping
(
"/role/info"
)
@RequestMapping
(
"/role/info"
)
public
R
infoRole
(
Long
roleId
){
public
R
infoRole
(
Long
roleId
){
RoleDto
dto
=
userClient
.
infoRole
(
roleId
);
RoleDto
dto
=
userClient
.
infoRole
(
roleId
);
...
@@ -349,6 +362,7 @@ public class SystemController {
...
@@ -349,6 +362,7 @@ public class SystemController {
* @param vo
* @param vo
* @return
* @return
*/
*/
@PreAuthorize
(
"hasRole('sys:role:add') or hasRole('admin')"
)
@PostMapping
(
"/role/add"
)
@PostMapping
(
"/role/add"
)
public
R
roleAdd
(
RoleVo
vo
){
public
R
roleAdd
(
RoleVo
vo
){
RoleDto
dto
=
new
RoleDto
();
RoleDto
dto
=
new
RoleDto
();
...
@@ -363,6 +377,7 @@ public class SystemController {
...
@@ -363,6 +377,7 @@ public class SystemController {
* @param vo
* @param vo
* @return
* @return
*/
*/
@PreAuthorize
(
"hasRole('sys:role:edit') or hasRole('admin')"
)
@PostMapping
(
"/role/edit"
)
@PostMapping
(
"/role/edit"
)
public
R
editRole
(
RoleVo
vo
){
public
R
editRole
(
RoleVo
vo
){
...
@@ -377,6 +392,7 @@ public class SystemController {
...
@@ -377,6 +392,7 @@ public class SystemController {
* @param ids
* @param ids
* @return
* @return
*/
*/
@PreAuthorize
(
"hasRole('sys:role:delete') or hasRole('admin')"
)
@PostMapping
(
"/role/delete"
)
@PostMapping
(
"/role/delete"
)
public
R
deleteRole
(
@RequestParam
(
value
=
"ids"
,
required
=
false
)
List
<
Long
>
ids
){
public
R
deleteRole
(
@RequestParam
(
value
=
"ids"
,
required
=
false
)
List
<
Long
>
ids
){
userClient
.
deleteRole
(
ids
);
userClient
.
deleteRole
(
ids
);
...
@@ -402,6 +418,8 @@ public class SystemController {
...
@@ -402,6 +418,8 @@ public class SystemController {
* @param sort
* @param sort
* @return
* @return
*/
*/
@PreAuthorize
(
"hasRole('sys:user:list') or hasRole('admin')"
)
@PostMapping
(
"/user/list"
)
@PostMapping
(
"/user/list"
)
public
R
userList
(
@RequestParam
(
required
=
false
)
Integer
page
,
public
R
userList
(
@RequestParam
(
required
=
false
)
Integer
page
,
@RequestParam
(
required
=
false
)
Integer
pageSize
,
@RequestParam
(
required
=
false
)
Integer
pageSize
,
...
@@ -438,6 +456,7 @@ public class SystemController {
...
@@ -438,6 +456,7 @@ public class SystemController {
* @param username
* @param username
* @return
* @return
*/
*/
@PreAuthorize
(
"hasRole('sys:user:list') or hasRole('admin')"
)
@RequestMapping
(
"/user/info"
)
@RequestMapping
(
"/user/info"
)
public
R
infoRole
(
String
username
){
public
R
infoRole
(
String
username
){
UserDto
dto
=
userClient
.
userInfo
(
username
);
UserDto
dto
=
userClient
.
userInfo
(
username
);
...
@@ -449,6 +468,7 @@ public class SystemController {
...
@@ -449,6 +468,7 @@ public class SystemController {
* @param vo
* @param vo
* @return
* @return
*/
*/
@PreAuthorize
(
"hasRole('sys:user:add') or hasRole('admin')"
)
@RequestMapping
(
"/user/add"
)
@RequestMapping
(
"/user/add"
)
public
R
addUser
(
UserVo
vo
){
public
R
addUser
(
UserVo
vo
){
UserDto
dto
=
new
UserDto
();
UserDto
dto
=
new
UserDto
();
...
@@ -463,6 +483,7 @@ public class SystemController {
...
@@ -463,6 +483,7 @@ public class SystemController {
* @param vo
* @param vo
* @return
* @return
*/
*/
@PreAuthorize
(
"hasRole('sys:user:edit') or hasRole('admin')"
)
@PostMapping
(
"/user/update"
)
@PostMapping
(
"/user/update"
)
public
R
editUser
(
UserVo
vo
){
public
R
editUser
(
UserVo
vo
){
UserDto
dto
=
new
UserDto
();
UserDto
dto
=
new
UserDto
();
...
@@ -480,6 +501,7 @@ public class SystemController {
...
@@ -480,6 +501,7 @@ public class SystemController {
* @param ids
* @param ids
* @return
* @return
*/
*/
@PreAuthorize
(
"hasRole('sys:user:delete') or hasRole('admin')"
)
@PostMapping
(
"/user/delete"
)
@PostMapping
(
"/user/delete"
)
public
R
deleteUser
(
@RequestParam
(
value
=
"ids"
,
required
=
false
)
List
<
Long
>
ids
){
public
R
deleteUser
(
@RequestParam
(
value
=
"ids"
,
required
=
false
)
List
<
Long
>
ids
){
userClient
.
deleteUser
(
ids
);
userClient
.
deleteUser
(
ids
);
...
...
cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/web/system/UserController.java
View file @
ff367eff
...
@@ -63,8 +63,8 @@ public class UserController {
...
@@ -63,8 +63,8 @@ public class UserController {
userDto
.
getFuncPerms
().
forEach
(
perms
->
{
userDto
.
getFuncPerms
().
forEach
(
perms
->
{
sb
.
append
(
perms
+
","
);
sb
.
append
(
perms
+
","
);
});
});
sb
.
substring
(
0
,
sb
.
length
()-
2
);
String
rolesStr
=
sb
.
substring
(
0
,
sb
.
length
()
-
1
);
userInfoVo
.
setRoles
(
sb
.
toString
()
);
userInfoVo
.
setRoles
(
rolesStr
);
}
}
userInfoVo
.
setName
(
userDto
.
getUsername
());
userInfoVo
.
setName
(
userDto
.
getUsername
());
...
@@ -74,6 +74,4 @@ public class UserController {
...
@@ -74,6 +74,4 @@ public class UserController {
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment