Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄嘉阳
/
iot-platform-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
ce68300a
authored
Sep 25, 2023
by
杨伟程
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'dev' of
http://git.xmmakeit.com/huangjiay/iot-platform-server
into dev
parents
acb859e5
2331b7a7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
16 deletions
saas-module/src/main/java/com/makeit/controller/plat/PlatRoleController.java
server-service/src/main/java/com/makeit/service/platform/alarm/impl/PlatAlarmConfigServiceImpl.java
saas-module/src/main/java/com/makeit/controller/plat/PlatRoleController.java
View file @
ce68300a
...
...
@@ -49,14 +49,14 @@ public class PlatRoleController {
@Autowired
private
PlatUserService
platUserService
;
@Action
(
module
=
"平台端-角色"
,
name
=
"分页列表"
,
code
=
"
tn
t:role:page"
)
@Action
(
module
=
"平台端-角色"
,
name
=
"分页列表"
,
code
=
"
pla
t:role:page"
)
@ApiOperation
(
"分页列表"
)
@PostMapping
(
"page"
)
public
ApiResponseEntity
<
PageVO
<
PlatRoleDTOVO
>>
page
(
@RequestBody
PageReqDTO
<
PlatRoleDTOVO
>
page
)
{
return
ApiResponseUtils
.
success
(
platRoleService
.
page
(
page
));
}
@Action
(
module
=
"平台端-角色"
,
name
=
"列表"
,
code
=
"
tn
t:role:list"
)
@Action
(
module
=
"平台端-角色"
,
name
=
"列表"
,
code
=
"
pla
t:role:list"
)
@ApiOperation
(
"列表"
)
@PostMapping
(
"list"
)
public
ApiResponseEntity
<
List
<
PlatRoleDTOVO
>>
list
(
@RequestBody
PlatRoleDTOVO
dto
)
{
...
...
@@ -75,14 +75,14 @@ public class PlatRoleController {
return
ApiResponseUtils
.
success
(
platRoleService
.
list
(
dto
));
}
@Action
(
module
=
"平台端-角色"
,
name
=
"新增"
,
code
=
"
tn
t:role:add"
)
@Action
(
module
=
"平台端-角色"
,
name
=
"新增"
,
code
=
"
pla
t:role:add"
)
@ApiOperation
(
"新增"
)
@PostMapping
(
"add"
)
public
ApiResponseEntity
<
String
>
add
(
@Validated
@RequestBody
PlatRoleDTOVO
dto
)
{
return
ApiResponseUtils
.
success
(
platRoleService
.
add
(
dto
));
}
@Action
(
module
=
"平台端-角色"
,
name
=
"编辑"
,
code
=
"
tn
t:role:edit"
)
@Action
(
module
=
"平台端-角色"
,
name
=
"编辑"
,
code
=
"
pla
t:role:edit"
)
@ApiOperation
(
"编辑"
)
@PostMapping
(
"edit"
)
public
ApiResponseEntity
<
Void
>
edit
(
@Validated
@RequestBody
PlatRoleDTOVO
dto
)
{
...
...
@@ -90,14 +90,14 @@ public class PlatRoleController {
return
ApiResponseUtils
.
success
();
}
@Action
(
module
=
"平台端-角色"
,
name
=
"详情"
,
code
=
"
tn
t:role:view"
)
@Action
(
module
=
"平台端-角色"
,
name
=
"详情"
,
code
=
"
pla
t:role:view"
)
@ApiOperation
(
"详情"
)
@PostMapping
(
"view"
)
public
ApiResponseEntity
<
PlatRoleDTOVO
>
view
(
@RequestBody
BaseIdDTO
dto
)
{
return
ApiResponseUtils
.
success
(
platRoleService
.
view
(
dto
.
getId
()));
}
@Action
(
module
=
"平台端-角色"
,
name
=
"删除"
,
code
=
"
tn
t:role:del"
)
@Action
(
module
=
"平台端-角色"
,
name
=
"删除"
,
code
=
"
pla
t:role:del"
)
@ApiOperation
(
"删除"
)
@PostMapping
(
"del"
)
public
ApiResponseEntity
<
Void
>
del
(
@RequestBody
BaseIdDTO
dto
)
{
...
...
@@ -105,7 +105,7 @@ public class PlatRoleController {
return
ApiResponseUtils
.
success
();
}
@Action
(
module
=
"平台端-角色"
,
name
=
"改变状态"
,
code
=
"
tn
t:role:changeStatus"
)
@Action
(
module
=
"平台端-角色"
,
name
=
"改变状态"
,
code
=
"
pla
t:role:changeStatus"
)
@ApiOperation
(
"改变状态"
)
@PostMapping
(
"changeStatus"
)
public
ApiResponseEntity
<
Void
>
changeStatus
(
@RequestBody
StatusDTO
dto
)
{
...
...
@@ -113,7 +113,7 @@ public class PlatRoleController {
return
ApiResponseUtils
.
success
();
}
@Action
(
module
=
"平台端-角色"
,
name
=
"分配用户"
,
code
=
"
tn
t:role:assignUserList"
)
@Action
(
module
=
"平台端-角色"
,
name
=
"分配用户"
,
code
=
"
pla
t:role:assignUserList"
)
@ApiOperation
(
"分配用户"
)
@PostMapping
(
"assignUserList"
)
public
ApiResponseEntity
<
Void
>
assignUserList
(
@RequestBody
List
<
PlatUserRoleDTO
>
userRoleDTOList
)
{
//参数要不要是一个对象里 有一个数组
...
...
@@ -121,7 +121,7 @@ public class PlatRoleController {
return
ApiResponseUtils
.
success
();
}
@Action
(
module
=
"平台端-角色"
,
name
=
"删除分配用户"
,
code
=
"
tn
t:role:removeAssignUserList"
)
@Action
(
module
=
"平台端-角色"
,
name
=
"删除分配用户"
,
code
=
"
pla
t:role:removeAssignUserList"
)
@ApiOperation
(
"删除分配用户"
)
@PostMapping
(
"removeAssignUserList"
)
public
ApiResponseEntity
<
Void
>
removeAssignUserList
(
@RequestBody
List
<
PlatUserRoleDTO
>
userRoleDTOList
)
{
...
...
@@ -129,7 +129,7 @@ public class PlatRoleController {
return
ApiResponseUtils
.
success
();
}
@Action
(
module
=
"平台端-角色"
,
name
=
"分配菜单"
,
code
=
"
tn
t:role:assignMenuList"
)
@Action
(
module
=
"平台端-角色"
,
name
=
"分配菜单"
,
code
=
"
pla
t:role:assignMenuList"
)
@ApiOperation
(
"分配菜单"
)
@Deprecated
@PostMapping
(
"assignMenuList"
)
...
...
@@ -138,7 +138,7 @@ public class PlatRoleController {
return
ApiResponseUtils
.
success
();
}
@Action
(
module
=
"平台端-角色"
,
name
=
"获取分配菜单"
,
code
=
"
tn
t:role:getAssignMenuList"
)
@Action
(
module
=
"平台端-角色"
,
name
=
"获取分配菜单"
,
code
=
"
pla
t:role:getAssignMenuList"
)
@ApiOperation
(
"获取分配菜单"
)
@PostMapping
(
"getAssignMenuList"
)
public
ApiResponseEntity
<
List
<
PlatRoleMenu
>>
getAssignMenuList
(
@RequestBody
BaseIdDTO
baseIdDTO
)
{
...
...
@@ -151,7 +151,7 @@ public class PlatRoleController {
return
ApiResponseUtils
.
success
(
platUserService
.
getHotelList
(
deptDTO
.
getOrgId
()));
}
@Action
(
module
=
"平台端-角色"
,
name
=
"分配管理权限"
,
code
=
"
tn
t:role:assignDeptList"
)
@Action
(
module
=
"平台端-角色"
,
name
=
"分配管理权限"
,
code
=
"
pla
t:role:assignDeptList"
)
@ApiOperation
(
"分配管理权限"
)
@PostMapping
(
"assignDeptList"
)
public
ApiResponseEntity
<
Void
>
assignDeptList
(
@RequestBody
PlatRoleDeptDTOVO
roleDeptDTO
)
{
...
...
@@ -159,14 +159,14 @@ public class PlatRoleController {
return
ApiResponseUtils
.
success
();
}
@Action
(
module
=
"平台端-角色"
,
name
=
"获取分配管理权限"
,
code
=
"
tn
t:role:getDeptListByRoleId"
)
@Action
(
module
=
"平台端-角色"
,
name
=
"获取分配管理权限"
,
code
=
"
pla
t:role:getDeptListByRoleId"
)
@ApiOperation
(
"获取分配管理权限"
)
@PostMapping
(
"getDeptListByRoleId"
)
public
ApiResponseEntity
<
List
<
PlatRoleOrg
>>
getDeptListByRoleId
(
@RequestBody
BaseIdDTO
baseIdDTO
)
{
return
ApiResponseUtils
.
success
(
platRoleService
.
getDeptListByRoleId
(
baseIdDTO
.
getId
()));
}
@Action
(
module
=
"平台端-角色"
,
name
=
"复制角色及关联"
,
code
=
"
tn
t:role:copyRole"
)
@Action
(
module
=
"平台端-角色"
,
name
=
"复制角色及关联"
,
code
=
"
pla
t:role:copyRole"
)
@ApiOperation
(
"复制角色及关联"
)
@PostMapping
(
"copyRole"
)
public
ApiResponseEntity
<
Void
>
copyRole
(
@RequestBody
BaseIdDTO
baseIdDTO
)
{
...
...
server-service/src/main/java/com/makeit/service/platform/alarm/impl/PlatAlarmConfigServiceImpl.java
View file @
ce68300a
...
...
@@ -91,7 +91,8 @@ public class PlatAlarmConfigServiceImpl extends ServiceImpl<PlatAlarmConfigMappe
updateById
(
alarmConfig
);
alarmConfigUtil
.
put
(
alarmConfig
);
PlatAlarmConfig
entity
=
getById
(
dto
.
getId
());
alarmConfigUtil
.
put
(
entity
);
}
...
...
@@ -102,7 +103,8 @@ public class PlatAlarmConfigServiceImpl extends ServiceImpl<PlatAlarmConfigMappe
PlatAlarmConfig
alarmConfig
=
BeanDtoVoUtils
.
convert
(
dto
,
PlatAlarmConfig
.
class
);
updateById
(
alarmConfig
);
alarmConfigUtil
.
put
(
alarmConfig
);
PlatAlarmConfig
entity
=
getById
(
dto
.
getId
());
alarmConfigUtil
.
put
(
entity
);
}
...
...
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