Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzuaa
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzuaa
提交
53c4ecb6
提交
53c4ecb6
编写于
5月 26, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
zhouweidong@lab.ibiz5.com 部署微服务应用
上级
4c8af2d8
变更
16
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
16 个修改的文件
包含
231 行增加
和
720 行删除
+231
-720
main-grid-base.vue
...web/src/widgets/sys-auth-log/main-grid/main-grid-base.vue
+40
-48
main-grid-base.vue
...b/src/widgets/sys-permission/main-grid/main-grid-base.vue
+10
-12
main-grid-base.vue
.../widgets/sys-role-permission/main-grid/main-grid-base.vue
+15
-18
main-grid-base.vue
app_web/src/widgets/sys-role/main-grid/main-grid-base.vue
+20
-24
main-grid-base.vue
...eb/src/widgets/sys-user-role/main-grid/main-grid-base.vue
+15
-18
main-grid-base.vue
app_web/src/widgets/sys-user/main-grid/main-grid-base.vue
+15
-18
config.xml
config.xml
+5
-0
Dockerfile
ibzuaa-app/ibzuaa-app-web/src/main/docker/Dockerfile
+1
-1
ibzuaa-app-web.yaml
...aa-app/ibzuaa-app-web/src/main/docker/ibzuaa-app-web.yaml
+15
-1
SysAuthLogResource.java
...src/main/java/cn/ibizlab/api/rest/SysAuthLogResource.java
+9
-10
SysPermissionResource.java
.../main/java/cn/ibizlab/api/rest/SysPermissionResource.java
+9
-10
SysRolePermissionResource.java
...n/java/cn/ibizlab/api/rest/SysRolePermissionResource.java
+17
-22
SysRoleResource.java
...pi/src/main/java/cn/ibizlab/api/rest/SysRoleResource.java
+9
-10
SysUserResource.java
...pi/src/main/java/cn/ibizlab/api/rest/SysUserResource.java
+9
-10
SysUserRoleResource.java
...rc/main/java/cn/ibizlab/api/rest/SysUserRoleResource.java
+17
-22
AuthPermissionEvaluator.java
...ava/cn/ibizlab/util/security/AuthPermissionEvaluator.java
+25
-496
未找到文件。
app_web/src/widgets/sys-auth-log/main-grid/main-grid-base.vue
浏览文件 @
53c4ecb6
...
@@ -23,12 +23,11 @@
...
@@ -23,12 +23,11 @@
</
template
>
</
template
>
<
template
v-if=
"getColumnState('username')"
>
<
template
v-if=
"getColumnState('username')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'username'"
:label=
"$t('entities.sysauthlog.main_grid.columns.username')"
:width=
"250"
:align=
"'left'"
:sortable=
"'custom'"
>
<el-table-column
show-overflow-tooltip
:prop=
"'username'"
:label=
"$t('entities.sysauthlog.main_grid.columns.username')"
:width=
"250"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"
{column}">
<template
v-slot:header=
"
{column}">
<span
class=
"column-header "
>
<span
class=
"column-header "
>
{{
$t
(
'entities.sysauthlog.main_grid.columns.username'
)
}}
{{
$t
(
'entities.sysauthlog.main_grid.columns.username'
)
}}
</span>
</span>
</
template
>
</
template
>
<
template
v-slot=
"{row,column}"
>
<
template
v-slot=
"{row,column}"
>
<span>
{{
row
.
username
}}
</span>
<span>
{{
row
.
username
}}
</span>
</
template
>
</
template
>
...
@@ -36,12 +35,11 @@
...
@@ -36,12 +35,11 @@
</template>
</template>
<
template
v-if=
"getColumnState('personname')"
>
<
template
v-if=
"getColumnState('personname')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'personname'"
:label=
"$t('entities.sysauthlog.main_grid.columns.personname')"
:width=
"250"
:align=
"'left'"
:sortable=
"'custom'"
>
<el-table-column
show-overflow-tooltip
:prop=
"'personname'"
:label=
"$t('entities.sysauthlog.main_grid.columns.personname')"
:width=
"250"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"
{column}">
<template
v-slot:header=
"
{column}">
<span
class=
"column-header "
>
<span
class=
"column-header "
>
{{
$t
(
'entities.sysauthlog.main_grid.columns.personname'
)
}}
{{
$t
(
'entities.sysauthlog.main_grid.columns.personname'
)
}}
</span>
</span>
</
template
>
</
template
>
<
template
v-slot=
"{row,column}"
>
<
template
v-slot=
"{row,column}"
>
<span>
{{
row
.
personname
}}
</span>
<span>
{{
row
.
personname
}}
</span>
</
template
>
</
template
>
...
@@ -49,12 +47,11 @@
...
@@ -49,12 +47,11 @@
</template>
</template>
<
template
v-if=
"getColumnState('authtime')"
>
<
template
v-if=
"getColumnState('authtime')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'authtime'"
:label=
"$t('entities.sysauthlog.main_grid.columns.authtime')"
:width=
"250"
:align=
"'left'"
:sortable=
"'custom'"
>
<el-table-column
show-overflow-tooltip
:prop=
"'authtime'"
:label=
"$t('entities.sysauthlog.main_grid.columns.authtime')"
:width=
"250"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"
{column}">
<template
v-slot:header=
"
{column}">
<span
class=
"column-header "
>
<span
class=
"column-header "
>
{{
$t
(
'entities.sysauthlog.main_grid.columns.authtime'
)
}}
{{
$t
(
'entities.sysauthlog.main_grid.columns.authtime'
)
}}
</span>
</span>
</
template
>
</
template
>
<
template
v-slot=
"{row,column}"
>
<
template
v-slot=
"{row,column}"
>
<app-format-data
format=
"YYYY-MM-DD hh:mm:ss"
:data=
"row.authtime"
></app-format-data>
<app-format-data
format=
"YYYY-MM-DD hh:mm:ss"
:data=
"row.authtime"
></app-format-data>
</
template
>
</
template
>
...
@@ -62,12 +59,11 @@
...
@@ -62,12 +59,11 @@
</template>
</template>
<
template
v-if=
"getColumnState('authcode')"
>
<
template
v-if=
"getColumnState('authcode')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'authcode'"
:label=
"$t('entities.sysauthlog.main_grid.columns.authcode')"
:width=
"100"
:align=
"'left'"
:sortable=
"'custom'"
>
<el-table-column
show-overflow-tooltip
:prop=
"'authcode'"
:label=
"$t('entities.sysauthlog.main_grid.columns.authcode')"
:width=
"100"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"
{column}">
<template
v-slot:header=
"
{column}">
<span
class=
"column-header "
>
<span
class=
"column-header "
>
{{
$t
(
'entities.sysauthlog.main_grid.columns.authcode'
)
}}
{{
$t
(
'entities.sysauthlog.main_grid.columns.authcode'
)
}}
</span>
</span>
</
template
>
</
template
>
<
template
v-slot=
"{row,column}"
>
<
template
v-slot=
"{row,column}"
>
<template
>
<template
>
<codelist
:value=
"row.authcode"
tag=
'CLAuthCode'
codelistType=
'STATIC'
></codelist>
<codelist
:value=
"row.authcode"
tag=
'CLAuthCode'
codelistType=
'STATIC'
></codelist>
...
@@ -77,12 +73,11 @@
...
@@ -77,12 +73,11 @@
</template>
</template>
<
template
v-if=
"getColumnState('ipaddr')"
>
<
template
v-if=
"getColumnState('ipaddr')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'ipaddr'"
:label=
"$t('entities.sysauthlog.main_grid.columns.ipaddr')"
:width=
"250"
:align=
"'left'"
:sortable=
"'custom'"
>
<el-table-column
show-overflow-tooltip
:prop=
"'ipaddr'"
:label=
"$t('entities.sysauthlog.main_grid.columns.ipaddr')"
:width=
"250"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"
{column}">
<template
v-slot:header=
"
{column}">
<span
class=
"column-header "
>
<span
class=
"column-header "
>
{{
$t
(
'entities.sysauthlog.main_grid.columns.ipaddr'
)
}}
{{
$t
(
'entities.sysauthlog.main_grid.columns.ipaddr'
)
}}
</span>
</span>
</
template
>
</
template
>
<
template
v-slot=
"{row,column}"
>
<
template
v-slot=
"{row,column}"
>
<span>
{{
row
.
ipaddr
}}
</span>
<span>
{{
row
.
ipaddr
}}
</span>
</
template
>
</
template
>
...
@@ -90,12 +85,11 @@
...
@@ -90,12 +85,11 @@
</template>
</template>
<
template
v-if=
"getColumnState('macaddr')"
>
<
template
v-if=
"getColumnState('macaddr')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'macaddr'"
:label=
"$t('entities.sysauthlog.main_grid.columns.macaddr')"
:width=
"250"
:align=
"'left'"
:sortable=
"'custom'"
>
<el-table-column
show-overflow-tooltip
:prop=
"'macaddr'"
:label=
"$t('entities.sysauthlog.main_grid.columns.macaddr')"
:width=
"250"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"
{column}">
<template
v-slot:header=
"
{column}">
<span
class=
"column-header "
>
<span
class=
"column-header "
>
{{
$t
(
'entities.sysauthlog.main_grid.columns.macaddr'
)
}}
{{
$t
(
'entities.sysauthlog.main_grid.columns.macaddr'
)
}}
</span>
</span>
</
template
>
</
template
>
<
template
v-slot=
"{row,column}"
>
<
template
v-slot=
"{row,column}"
>
<span>
{{
row
.
macaddr
}}
</span>
<span>
{{
row
.
macaddr
}}
</span>
</
template
>
</
template
>
...
@@ -103,12 +97,11 @@
...
@@ -103,12 +97,11 @@
</template>
</template>
<
template
v-if=
"getColumnState('useragent')"
>
<
template
v-if=
"getColumnState('useragent')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'useragent'"
:label=
"$t('entities.sysauthlog.main_grid.columns.useragent')"
:width=
"250"
:align=
"'left'"
:sortable=
"'custom'"
>
<el-table-column
show-overflow-tooltip
:prop=
"'useragent'"
:label=
"$t('entities.sysauthlog.main_grid.columns.useragent')"
:width=
"250"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"
{column}">
<template
v-slot:header=
"
{column}">
<span
class=
"column-header "
>
<span
class=
"column-header "
>
{{
$t
(
'entities.sysauthlog.main_grid.columns.useragent'
)
}}
{{
$t
(
'entities.sysauthlog.main_grid.columns.useragent'
)
}}
</span>
</span>
</
template
>
</
template
>
<
template
v-slot=
"{row,column}"
>
<
template
v-slot=
"{row,column}"
>
<span>
{{
row
.
useragent
}}
</span>
<span>
{{
row
.
useragent
}}
</span>
</
template
>
</
template
>
...
@@ -116,12 +109,11 @@
...
@@ -116,12 +109,11 @@
</template>
</template>
<
template
v-if=
"getColumnState('domain')"
>
<
template
v-if=
"getColumnState('domain')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'domain'"
:label=
"$t('entities.sysauthlog.main_grid.columns.domain')"
:width=
"100"
:align=
"'left'"
:sortable=
"'custom'"
>
<el-table-column
show-overflow-tooltip
:prop=
"'domain'"
:label=
"$t('entities.sysauthlog.main_grid.columns.domain')"
:width=
"100"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"
{column}">
<template
v-slot:header=
"
{column}">
<span
class=
"column-header "
>
<span
class=
"column-header "
>
{{
$t
(
'entities.sysauthlog.main_grid.columns.domain'
)
}}
{{
$t
(
'entities.sysauthlog.main_grid.columns.domain'
)
}}
</span>
</span>
</
template
>
</
template
>
<
template
v-slot=
"{row,column}"
>
<
template
v-slot=
"{row,column}"
>
<span>
{{
row
.
domain
}}
</span>
<span>
{{
row
.
domain
}}
</span>
</
template
>
</
template
>
...
...
app_web/src/widgets/sys-permission/main-grid/main-grid-base.vue
浏览文件 @
53c4ecb6
...
@@ -23,12 +23,11 @@
...
@@ -23,12 +23,11 @@
</
template
>
</
template
>
<
template
v-if=
"getColumnState('sys_permissionid')"
>
<
template
v-if=
"getColumnState('sys_permissionid')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'sys_permissionid'"
:label=
"$t('entities.syspermission.main_grid.columns.sys_permissionid')"
:width=
"150"
:align=
"'left'"
:sortable=
"'custom'"
>
<el-table-column
show-overflow-tooltip
:prop=
"'sys_permissionid'"
:label=
"$t('entities.syspermission.main_grid.columns.sys_permissionid')"
:width=
"150"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"
{column}">
<template
v-slot:header=
"
{column}">
<span
class=
"column-header "
>
<span
class=
"column-header "
>
{{
$t
(
'entities.syspermission.main_grid.columns.sys_permissionid'
)
}}
{{
$t
(
'entities.syspermission.main_grid.columns.sys_permissionid'
)
}}
</span>
</span>
</
template
>
</
template
>
<
template
v-slot=
"{row,column}"
>
<
template
v-slot=
"{row,column}"
>
<span>
{{
row
.
sys_permissionid
}}
</span>
<span>
{{
row
.
sys_permissionid
}}
</span>
</
template
>
</
template
>
...
@@ -36,12 +35,11 @@
...
@@ -36,12 +35,11 @@
</template>
</template>
<
template
v-if=
"getColumnState('sys_permissionname')"
>
<
template
v-if=
"getColumnState('sys_permissionname')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'sys_permissionname'"
:label=
"$t('entities.syspermission.main_grid.columns.sys_permissionname')"
:width=
"250"
:align=
"'left'"
:sortable=
"'custom'"
>
<el-table-column
show-overflow-tooltip
:prop=
"'sys_permissionname'"
:label=
"$t('entities.syspermission.main_grid.columns.sys_permissionname')"
:width=
"250"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"
{column}">
<template
v-slot:header=
"
{column}">
<span
class=
"column-header "
>
<span
class=
"column-header "
>
{{
$t
(
'entities.syspermission.main_grid.columns.sys_permissionname'
)
}}
{{
$t
(
'entities.syspermission.main_grid.columns.sys_permissionname'
)
}}
</span>
</span>
</
template
>
</
template
>
<
template
v-slot=
"{row,column}"
>
<
template
v-slot=
"{row,column}"
>
<span>
{{
row
.
sys_permissionname
}}
</span>
<span>
{{
row
.
sys_permissionname
}}
</span>
</
template
>
</
template
>
...
...
app_web/src/widgets/sys-role-permission/main-grid/main-grid-base.vue
浏览文件 @
53c4ecb6
...
@@ -23,12 +23,11 @@
...
@@ -23,12 +23,11 @@
</
template
>
</
template
>
<
template
v-if=
"getColumnState('sys_rolename')"
>
<
template
v-if=
"getColumnState('sys_rolename')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'sys_rolename'"
:label=
"$t('entities.sysrolepermission.main_grid.columns.sys_rolename')"
:width=
"250"
:align=
"'left'"
:sortable=
"'custom'"
>
<el-table-column
show-overflow-tooltip
:prop=
"'sys_rolename'"
:label=
"$t('entities.sysrolepermission.main_grid.columns.sys_rolename')"
:width=
"250"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"
{column}">
<template
v-slot:header=
"
{column}">
<span
class=
"column-header "
>
<span
class=
"column-header "
>
{{
$t
(
'entities.sysrolepermission.main_grid.columns.sys_rolename'
)
}}
{{
$t
(
'entities.sysrolepermission.main_grid.columns.sys_rolename'
)
}}
</span>
</span>
</
template
>
</
template
>
<
template
v-slot=
"{row,column}"
>
<
template
v-slot=
"{row,column}"
>
<app-column-link
deKeyField=
'sysrole'
:context=
"JSON.parse(JSON.stringify(context))"
:viewparams=
"JSON.parse(JSON.stringify(viewparams))"
:data=
"row"
:linkview=
"
{viewname: 'sys-roleredirect-view', height: 0,width: 0,title: $t('entities.sysrole.views.redirectview.title'),placement: '', isRedirectView: true,deResParameters: [
<app-column-link
deKeyField=
'sysrole'
:context=
"JSON.parse(JSON.stringify(context))"
:viewparams=
"JSON.parse(JSON.stringify(viewparams))"
:data=
"row"
:linkview=
"
{viewname: 'sys-roleredirect-view', height: 0,width: 0,title: $t('entities.sysrole.views.redirectview.title'),placement: '', isRedirectView: true,deResParameters: [
]
]
...
@@ -43,12 +42,11 @@
...
@@ -43,12 +42,11 @@
</template>
</template>
<
template
v-if=
"getColumnState('sys_permissionname')"
>
<
template
v-if=
"getColumnState('sys_permissionname')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'sys_permissionname'"
:label=
"$t('entities.sysrolepermission.main_grid.columns.sys_permissionname')"
:width=
"250"
:align=
"'left'"
:sortable=
"'custom'"
>
<el-table-column
show-overflow-tooltip
:prop=
"'sys_permissionname'"
:label=
"$t('entities.sysrolepermission.main_grid.columns.sys_permissionname')"
:width=
"250"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"
{column}">
<template
v-slot:header=
"
{column}">
<span
class=
"column-header "
>
<span
class=
"column-header "
>
{{
$t
(
'entities.sysrolepermission.main_grid.columns.sys_permissionname'
)
}}
{{
$t
(
'entities.sysrolepermission.main_grid.columns.sys_permissionname'
)
}}
</span>
</span>
</
template
>
</
template
>
<
template
v-slot=
"{row,column}"
>
<
template
v-slot=
"{row,column}"
>
<app-column-link
deKeyField=
'syspermission'
:context=
"JSON.parse(JSON.stringify(context))"
:viewparams=
"JSON.parse(JSON.stringify(viewparams))"
:data=
"row"
:linkview=
"
{viewname: 'sys-permissionredirect-view', height: 0,width: 0,title: $t('entities.syspermission.views.redirectview.title'),placement: '', isRedirectView: true,deResParameters: [
<app-column-link
deKeyField=
'syspermission'
:context=
"JSON.parse(JSON.stringify(context))"
:viewparams=
"JSON.parse(JSON.stringify(viewparams))"
:data=
"row"
:linkview=
"
{viewname: 'sys-permissionredirect-view', height: 0,width: 0,title: $t('entities.syspermission.views.redirectview.title'),placement: '', isRedirectView: true,deResParameters: [
]
]
...
@@ -63,12 +61,11 @@
...
@@ -63,12 +61,11 @@
</template>
</template>
<
template
v-if=
"getColumnState('updatedate')"
>
<
template
v-if=
"getColumnState('updatedate')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'updatedate'"
:label=
"$t('entities.sysrolepermission.main_grid.columns.updatedate')"
:width=
"250"
:align=
"'left'"
:sortable=
"'custom'"
>
<el-table-column
show-overflow-tooltip
:prop=
"'updatedate'"
:label=
"$t('entities.sysrolepermission.main_grid.columns.updatedate')"
:width=
"250"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"
{column}">
<template
v-slot:header=
"
{column}">
<span
class=
"column-header "
>
<span
class=
"column-header "
>
{{
$t
(
'entities.sysrolepermission.main_grid.columns.updatedate'
)
}}
{{
$t
(
'entities.sysrolepermission.main_grid.columns.updatedate'
)
}}
</span>
</span>
</
template
>
</
template
>
<
template
v-slot=
"{row,column}"
>
<
template
v-slot=
"{row,column}"
>
<app-format-data
format=
"YYYY-MM-DD hh:mm:ss"
:data=
"row.updatedate"
></app-format-data>
<app-format-data
format=
"YYYY-MM-DD hh:mm:ss"
:data=
"row.updatedate"
></app-format-data>
</
template
>
</
template
>
...
...
app_web/src/widgets/sys-role/main-grid/main-grid-base.vue
浏览文件 @
53c4ecb6
...
@@ -23,12 +23,11 @@
...
@@ -23,12 +23,11 @@
</
template
>
</
template
>
<
template
v-if=
"getColumnState('sys_roleid')"
>
<
template
v-if=
"getColumnState('sys_roleid')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'sys_roleid'"
:label=
"$t('entities.sysrole.main_grid.columns.sys_roleid')"
:width=
"250"
:align=
"'left'"
:sortable=
"'custom'"
>
<el-table-column
show-overflow-tooltip
:prop=
"'sys_roleid'"
:label=
"$t('entities.sysrole.main_grid.columns.sys_roleid')"
:width=
"250"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"
{column}">
<template
v-slot:header=
"
{column}">
<span
class=
"column-header "
>
<span
class=
"column-header "
>
{{
$t
(
'entities.sysrole.main_grid.columns.sys_roleid'
)
}}
{{
$t
(
'entities.sysrole.main_grid.columns.sys_roleid'
)
}}
</span>
</span>
</
template
>
</
template
>
<
template
v-slot=
"{row,column}"
>
<
template
v-slot=
"{row,column}"
>
<span>
{{
row
.
sys_roleid
}}
</span>
<span>
{{
row
.
sys_roleid
}}
</span>
</
template
>
</
template
>
...
@@ -36,12 +35,11 @@
...
@@ -36,12 +35,11 @@
</template>
</template>
<
template
v-if=
"getColumnState('sys_rolename')"
>
<
template
v-if=
"getColumnState('sys_rolename')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'sys_rolename'"
:label=
"$t('entities.sysrole.main_grid.columns.sys_rolename')"
:width=
"350"
:align=
"'left'"
:sortable=
"'custom'"
>
<el-table-column
show-overflow-tooltip
:prop=
"'sys_rolename'"
:label=
"$t('entities.sysrole.main_grid.columns.sys_rolename')"
:width=
"350"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"
{column}">
<template
v-slot:header=
"
{column}">
<span
class=
"column-header "
>
<span
class=
"column-header "
>
{{
$t
(
'entities.sysrole.main_grid.columns.sys_rolename'
)
}}
{{
$t
(
'entities.sysrole.main_grid.columns.sys_rolename'
)
}}
</span>
</span>
</
template
>
</
template
>
<
template
v-slot=
"{row,column}"
>
<
template
v-slot=
"{row,column}"
>
<span>
{{
row
.
sys_rolename
}}
</span>
<span>
{{
row
.
sys_rolename
}}
</span>
</
template
>
</
template
>
...
@@ -49,12 +47,11 @@
...
@@ -49,12 +47,11 @@
</template>
</template>
<
template
v-if=
"getColumnState('memo')"
>
<
template
v-if=
"getColumnState('memo')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'memo'"
:label=
"$t('entities.sysrole.main_grid.columns.memo')"
:width=
"250"
:align=
"'left'"
:sortable=
"'custom'"
>
<el-table-column
show-overflow-tooltip
:prop=
"'memo'"
:label=
"$t('entities.sysrole.main_grid.columns.memo')"
:width=
"250"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"
{column}">
<template
v-slot:header=
"
{column}">
<span
class=
"column-header "
>
<span
class=
"column-header "
>
{{
$t
(
'entities.sysrole.main_grid.columns.memo'
)
}}
{{
$t
(
'entities.sysrole.main_grid.columns.memo'
)
}}
</span>
</span>
</
template
>
</
template
>
<
template
v-slot=
"{row,column}"
>
<
template
v-slot=
"{row,column}"
>
<span>
{{
row
.
memo
}}
</span>
<span>
{{
row
.
memo
}}
</span>
</
template
>
</
template
>
...
@@ -62,12 +59,11 @@
...
@@ -62,12 +59,11 @@
</template>
</template>
<
template
v-if=
"getColumnState('updatedate')"
>
<
template
v-if=
"getColumnState('updatedate')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'updatedate'"
:label=
"$t('entities.sysrole.main_grid.columns.updatedate')"
:width=
"250"
:align=
"'left'"
:sortable=
"'custom'"
>
<el-table-column
show-overflow-tooltip
:prop=
"'updatedate'"
:label=
"$t('entities.sysrole.main_grid.columns.updatedate')"
:width=
"250"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"
{column}">
<template
v-slot:header=
"
{column}">
<span
class=
"column-header "
>
<span
class=
"column-header "
>
{{
$t
(
'entities.sysrole.main_grid.columns.updatedate'
)
}}
{{
$t
(
'entities.sysrole.main_grid.columns.updatedate'
)
}}
</span>
</span>
</
template
>
</
template
>
<
template
v-slot=
"{row,column}"
>
<
template
v-slot=
"{row,column}"
>
<app-format-data
format=
"YYYY-MM-DD hh:mm:ss"
:data=
"row.updatedate"
></app-format-data>
<app-format-data
format=
"YYYY-MM-DD hh:mm:ss"
:data=
"row.updatedate"
></app-format-data>
</
template
>
</
template
>
...
...
app_web/src/widgets/sys-user-role/main-grid/main-grid-base.vue
浏览文件 @
53c4ecb6
...
@@ -23,12 +23,11 @@
...
@@ -23,12 +23,11 @@
</
template
>
</
template
>
<
template
v-if=
"getColumnState('sys_username')"
>
<
template
v-if=
"getColumnState('sys_username')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'sys_username'"
:label=
"$t('entities.sysuserrole.main_grid.columns.sys_username')"
:width=
"250"
:align=
"'left'"
:sortable=
"'custom'"
>
<el-table-column
show-overflow-tooltip
:prop=
"'sys_username'"
:label=
"$t('entities.sysuserrole.main_grid.columns.sys_username')"
:width=
"250"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"
{column}">
<template
v-slot:header=
"
{column}">
<span
class=
"column-header "
>
<span
class=
"column-header "
>
{{
$t
(
'entities.sysuserrole.main_grid.columns.sys_username'
)
}}
{{
$t
(
'entities.sysuserrole.main_grid.columns.sys_username'
)
}}
</span>
</span>
</
template
>
</
template
>
<
template
v-slot=
"{row,column}"
>
<
template
v-slot=
"{row,column}"
>
<app-column-link
deKeyField=
'sysuser'
:context=
"JSON.parse(JSON.stringify(context))"
:viewparams=
"JSON.parse(JSON.stringify(viewparams))"
:data=
"row"
:linkview=
"
{viewname: 'sys-userredirect-view', height: 0,width: 0,title: $t('entities.sysuser.views.redirectview.title'),placement: '', isRedirectView: true,deResParameters: [
<app-column-link
deKeyField=
'sysuser'
:context=
"JSON.parse(JSON.stringify(context))"
:viewparams=
"JSON.parse(JSON.stringify(viewparams))"
:data=
"row"
:linkview=
"
{viewname: 'sys-userredirect-view', height: 0,width: 0,title: $t('entities.sysuser.views.redirectview.title'),placement: '', isRedirectView: true,deResParameters: [
]
]
...
@@ -43,12 +42,11 @@
...
@@ -43,12 +42,11 @@
</template>
</template>
<
template
v-if=
"getColumnState('sys_rolename')"
>
<
template
v-if=
"getColumnState('sys_rolename')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'sys_rolename'"
:label=
"$t('entities.sysuserrole.main_grid.columns.sys_rolename')"
:width=
"250"
:align=
"'left'"
:sortable=
"'custom'"
>
<el-table-column
show-overflow-tooltip
:prop=
"'sys_rolename'"
:label=
"$t('entities.sysuserrole.main_grid.columns.sys_rolename')"
:width=
"250"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"
{column}">
<template
v-slot:header=
"
{column}">
<span
class=
"column-header "
>
<span
class=
"column-header "
>
{{
$t
(
'entities.sysuserrole.main_grid.columns.sys_rolename'
)
}}
{{
$t
(
'entities.sysuserrole.main_grid.columns.sys_rolename'
)
}}
</span>
</span>
</
template
>
</
template
>
<
template
v-slot=
"{row,column}"
>
<
template
v-slot=
"{row,column}"
>
<app-column-link
deKeyField=
'sysrole'
:context=
"JSON.parse(JSON.stringify(context))"
:viewparams=
"JSON.parse(JSON.stringify(viewparams))"
:data=
"row"
:linkview=
"
{viewname: 'sys-roleredirect-view', height: 0,width: 0,title: $t('entities.sysrole.views.redirectview.title'),placement: '', isRedirectView: true,deResParameters: [
<app-column-link
deKeyField=
'sysrole'
:context=
"JSON.parse(JSON.stringify(context))"
:viewparams=
"JSON.parse(JSON.stringify(viewparams))"
:data=
"row"
:linkview=
"
{viewname: 'sys-roleredirect-view', height: 0,width: 0,title: $t('entities.sysrole.views.redirectview.title'),placement: '', isRedirectView: true,deResParameters: [
]
]
...
@@ -63,12 +61,11 @@
...
@@ -63,12 +61,11 @@
</template>
</template>
<
template
v-if=
"getColumnState('updatedate')"
>
<
template
v-if=
"getColumnState('updatedate')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'updatedate'"
:label=
"$t('entities.sysuserrole.main_grid.columns.updatedate')"
:width=
"250"
:align=
"'left'"
:sortable=
"'custom'"
>
<el-table-column
show-overflow-tooltip
:prop=
"'updatedate'"
:label=
"$t('entities.sysuserrole.main_grid.columns.updatedate')"
:width=
"250"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"
{column}">
<template
v-slot:header=
"
{column}">
<span
class=
"column-header "
>
<span
class=
"column-header "
>
{{
$t
(
'entities.sysuserrole.main_grid.columns.updatedate'
)
}}
{{
$t
(
'entities.sysuserrole.main_grid.columns.updatedate'
)
}}
</span>
</span>
</
template
>
</
template
>
<
template
v-slot=
"{row,column}"
>
<
template
v-slot=
"{row,column}"
>
<app-format-data
format=
"YYYY-MM-DD hh:mm:ss"
:data=
"row.updatedate"
></app-format-data>
<app-format-data
format=
"YYYY-MM-DD hh:mm:ss"
:data=
"row.updatedate"
></app-format-data>
</
template
>
</
template
>
...
...
app_web/src/widgets/sys-user/main-grid/main-grid-base.vue
浏览文件 @
53c4ecb6
...
@@ -23,12 +23,11 @@
...
@@ -23,12 +23,11 @@
</
template
>
</
template
>
<
template
v-if=
"getColumnState('userid')"
>
<
template
v-if=
"getColumnState('userid')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'userid'"
:label=
"$t('entities.sysuser.main_grid.columns.userid')"
:width=
"250"
:align=
"'left'"
:sortable=
"'custom'"
>
<el-table-column
show-overflow-tooltip
:prop=
"'userid'"
:label=
"$t('entities.sysuser.main_grid.columns.userid')"
:width=
"250"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"
{column}">
<template
v-slot:header=
"
{column}">
<span
class=
"column-header "
>
<span
class=
"column-header "
>
{{
$t
(
'entities.sysuser.main_grid.columns.userid'
)
}}
{{
$t
(
'entities.sysuser.main_grid.columns.userid'
)
}}
</span>
</span>
</
template
>
</
template
>
<
template
v-slot=
"{row,column}"
>
<
template
v-slot=
"{row,column}"
>
<span>
{{
row
.
userid
}}
</span>
<span>
{{
row
.
userid
}}
</span>
</
template
>
</
template
>
...
@@ -36,12 +35,11 @@
...
@@ -36,12 +35,11 @@
</template>
</template>
<
template
v-if=
"getColumnState('username')"
>
<
template
v-if=
"getColumnState('username')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'username'"
:label=
"$t('entities.sysuser.main_grid.columns.username')"
:width=
"250"
:align=
"'left'"
:sortable=
"'custom'"
>
<el-table-column
show-overflow-tooltip
:prop=
"'username'"
:label=
"$t('entities.sysuser.main_grid.columns.username')"
:width=
"250"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"
{column}">
<template
v-slot:header=
"
{column}">
<span
class=
"column-header "
>
<span
class=
"column-header "
>
{{
$t
(
'entities.sysuser.main_grid.columns.username'
)
}}
{{
$t
(
'entities.sysuser.main_grid.columns.username'
)
}}
</span>
</span>
</
template
>
</
template
>
<
template
v-slot=
"{row,column}"
>
<
template
v-slot=
"{row,column}"
>
<span>
{{
row
.
username
}}
</span>
<span>
{{
row
.
username
}}
</span>
</
template
>
</
template
>
...
@@ -49,12 +47,11 @@
...
@@ -49,12 +47,11 @@
</template>
</template>
<
template
v-if=
"getColumnState('personname')"
>
<
template
v-if=
"getColumnState('personname')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'personname'"
:label=
"$t('entities.sysuser.main_grid.columns.personname')"
:width=
"250"
:align=
"'left'"
:sortable=
"'custom'"
>
<el-table-column
show-overflow-tooltip
:prop=
"'personname'"
:label=
"$t('entities.sysuser.main_grid.columns.personname')"
:width=
"250"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"
{column}">
<template
v-slot:header=
"
{column}">
<span
class=
"column-header "
>
<span
class=
"column-header "
>
{{
$t
(
'entities.sysuser.main_grid.columns.personname'
)
}}
{{
$t
(
'entities.sysuser.main_grid.columns.personname'
)
}}
</span>
</span>
</
template
>
</
template
>
<
template
v-slot=
"{row,column}"
>
<
template
v-slot=
"{row,column}"
>
<span>
{{
row
.
personname
}}
</span>
<span>
{{
row
.
personname
}}
</span>
</
template
>
</
template
>
...
...
config.xml
浏览文件 @
53c4ecb6
...
@@ -37,6 +37,11 @@
...
@@ -37,6 +37,11 @@
git clone -b master $para2 ibzuaa/
git clone -b master $para2 ibzuaa/
export NODE_OPTIONS=--max-old-space-size=4096
export NODE_OPTIONS=--max-old-space-size=4096
cd ibzuaa/
cd ibzuaa/
mvn clean package -Pweb
cd ibzuaa-app/ibzuaa-app-web
mvn -Pweb docker:build
mvn -Pweb docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/ibzuaa-app-web.yaml ibzlab-rt --with-registry-auth
</command>
</command>
</hudson.tasks.Shell>
</hudson.tasks.Shell>
</builders>
</builders>
...
...
ibzuaa-app/ibzuaa-app-web/src/main/docker/Dockerfile
浏览文件 @
53c4ecb6
...
@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBZ_SLEEP}s..." && \
...
@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBZ_SLEEP}s..." && \
sleep ${IBZ_SLEEP} && \
sleep ${IBZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ibzuaa-app-web.jar
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ibzuaa-app-web.jar
EXPOSE
8080
EXPOSE
30002
ADD
ibzuaa-app-web.jar /ibzuaa-app-web.jar
ADD
ibzuaa-app-web.jar /ibzuaa-app-web.jar
ibzuaa-app/ibzuaa-app-web/src/main/docker/ibzuaa-app-web.yaml
浏览文件 @
53c4ecb6
...
@@ -3,9 +3,23 @@ services:
...
@@ -3,9 +3,23 @@ services:
ibzuaa-app-web
:
ibzuaa-app-web
:
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/ibzuaa-app-web:latest
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/ibzuaa-app-web:latest
ports
:
ports
:
-
"
8080:8080
"
-
"
30002:30002
"
networks
:
networks
:
-
agent_network
-
agent_network
environment
:
-
SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.180.237
-
SERVER_PORT=30002
-
SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.102.211:8848
-
SPRING_REDIS_HOST=172.16.100.243
-
SPRING_REDIS_PORT=6379
-
SPRING_REDIS_DATABASE=0
-
SPRING_DATASOURCE_USERNAME=a_A_5d9d78509
-
SPRING_DATASOURCE_PASSWORD=@6dEfb3@
-
SPRING_DATASOURCE_URL=jdbc:mysql://172.16.180.232:3306/a_A_5d9d78509?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true
-
SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
-
SPRING_DATASOURCE_DEFAULTSCHEMA=a_A_5d9d78509
-
ABC=1
-
DEC=2
deploy
:
deploy
:
mode
:
replicated
mode
:
replicated
replicas
:
1
replicas
:
1
...
...
ibzuaa-provider/ibzuaa-provider-api/src/main/java/cn/ibizlab/api/rest/SysAuthLogResource.java
浏览文件 @
53c4ecb6
...
@@ -22,6 +22,7 @@ import org.springframework.data.domain.Pageable;
...
@@ -22,6 +22,7 @@ import org.springframework.data.domain.Pageable;
import
org.springframework.util.StringUtils
;
import
org.springframework.util.StringUtils
;
import
org.springframework.context.annotation.Lazy
;
import
org.springframework.context.annotation.Lazy
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.security.access.prepost.PostAuthorize
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiResponse
;
import
io.swagger.annotations.ApiResponse
;
...
@@ -47,7 +48,6 @@ public class SysAuthLogResource {
...
@@ -47,7 +48,6 @@ public class SysAuthLogResource {
public
SysAuthLogDTO
permissionDTO
=
new
SysAuthLogDTO
();
public
SysAuthLogDTO
permissionDTO
=
new
SysAuthLogDTO
();
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysAuthLog-GetDraft-all')"
)
@ApiOperation
(
value
=
"GetDraft"
,
tags
=
{
"SysAuthLog"
},
notes
=
"GetDraft"
)
@ApiOperation
(
value
=
"GetDraft"
,
tags
=
{
"SysAuthLog"
},
notes
=
"GetDraft"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/sysauthlogs/getdraft"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/sysauthlogs/getdraft"
)
public
ResponseEntity
<
SysAuthLogDTO
>
getDraft
()
{
public
ResponseEntity
<
SysAuthLogDTO
>
getDraft
()
{
...
@@ -59,14 +59,14 @@ public class SysAuthLogResource {
...
@@ -59,14 +59,14 @@ public class SysAuthLogResource {
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/sysauthlogs/{sysauthlog_id}"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/sysauthlogs/{sysauthlog_id}"
)
@Transactional
@Transactional
public
ResponseEntity
<
SysAuthLogDTO
>
update
(
@PathVariable
(
"sysauthlog_id"
)
String
sysauthlog_id
,
@RequestBody
SysAuthLogDTO
sysauthlogdto
)
{
public
ResponseEntity
<
SysAuthLogDTO
>
update
(
@PathVariable
(
"sysauthlog_id"
)
String
sysauthlog_id
,
@RequestBody
SysAuthLogDTO
sysauthlogdto
)
{
SysAuthLog
domain
=
sysauthlogMapping
.
toDomain
(
sysauthlogdto
);
SysAuthLog
domain
=
sysauthlogMapping
.
toDomain
(
sysauthlogdto
);
domain
.
setLogid
(
sysauthlog_id
);
domain
.
setLogid
(
sysauthlog_id
);
sysauthlogService
.
update
(
domain
);
sysauthlogService
.
update
(
domain
);
SysAuthLogDTO
dto
=
sysauthlogMapping
.
toDto
(
domain
);
SysAuthLogDTO
dto
=
sysauthlogMapping
.
toDto
(
domain
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dto
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dto
);
}
}
@PreAuthorize
(
"hasPermission('Update',{'Sql',this.sysauthlogMapping,#sysauthlogdtos})"
)
//
@PreAuthorize("hasPermission('Update',{'Sql',this.sysauthlogMapping,#sysauthlogdtos})")
@ApiOperation
(
value
=
"UpdateBatch"
,
tags
=
{
"SysAuthLog"
},
notes
=
"UpdateBatch"
)
@ApiOperation
(
value
=
"UpdateBatch"
,
tags
=
{
"SysAuthLog"
},
notes
=
"UpdateBatch"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/sysauthlogs/batch"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/sysauthlogs/batch"
)
public
ResponseEntity
<
Boolean
>
updateBatch
(
@RequestBody
List
<
SysAuthLogDTO
>
sysauthlogdtos
)
{
public
ResponseEntity
<
Boolean
>
updateBatch
(
@RequestBody
List
<
SysAuthLogDTO
>
sysauthlogdtos
)
{
...
@@ -82,7 +82,7 @@ public class SysAuthLogResource {
...
@@ -82,7 +82,7 @@ public class SysAuthLogResource {
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysauthlogService
.
remove
(
sysauthlog_id
));
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysauthlogService
.
remove
(
sysauthlog_id
));
}
}
@PreAuthorize
(
"hasPermission('Remove',{'Sql',this.sysauthlogMapping,this.permissionDTO,#ids})"
)
//
@PreAuthorize("hasPermission('Remove',{'Sql',this.sysauthlogMapping,this.permissionDTO,#ids})")
@ApiOperation
(
value
=
"RemoveBatch"
,
tags
=
{
"SysAuthLog"
},
notes
=
"RemoveBatch"
)
@ApiOperation
(
value
=
"RemoveBatch"
,
tags
=
{
"SysAuthLog"
},
notes
=
"RemoveBatch"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/sysauthlogs/batch"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/sysauthlogs/batch"
)
public
ResponseEntity
<
Boolean
>
removeBatch
(
@RequestBody
List
<
String
>
ids
)
{
public
ResponseEntity
<
Boolean
>
removeBatch
(
@RequestBody
List
<
String
>
ids
)
{
...
@@ -101,7 +101,7 @@ public class SysAuthLogResource {
...
@@ -101,7 +101,7 @@ public class SysAuthLogResource {
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dto
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dto
);
}
}
@PreAuthorize
(
"hasPermission('Create',{'Sql',this.sysauthlogMapping,#sysauthlogdtos})"
)
//
@PreAuthorize("hasPermission('Create',{'Sql',this.sysauthlogMapping,#sysauthlogdtos})")
@ApiOperation
(
value
=
"createBatch"
,
tags
=
{
"SysAuthLog"
},
notes
=
"createBatch"
)
@ApiOperation
(
value
=
"createBatch"
,
tags
=
{
"SysAuthLog"
},
notes
=
"createBatch"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysauthlogs/batch"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysauthlogs/batch"
)
public
ResponseEntity
<
Boolean
>
createBatch
(
@RequestBody
List
<
SysAuthLogDTO
>
sysauthlogdtos
)
{
public
ResponseEntity
<
Boolean
>
createBatch
(
@RequestBody
List
<
SysAuthLogDTO
>
sysauthlogdtos
)
{
...
@@ -109,7 +109,6 @@ public class SysAuthLogResource {
...
@@ -109,7 +109,6 @@ public class SysAuthLogResource {
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
true
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
true
);
}
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysAuthLog-CheckKey-all')"
)
@ApiOperation
(
value
=
"CheckKey"
,
tags
=
{
"SysAuthLog"
},
notes
=
"CheckKey"
)
@ApiOperation
(
value
=
"CheckKey"
,
tags
=
{
"SysAuthLog"
},
notes
=
"CheckKey"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysauthlogs/checkkey"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysauthlogs/checkkey"
)
public
ResponseEntity
<
Boolean
>
checkKey
(
@RequestBody
SysAuthLogDTO
sysauthlogdto
)
{
public
ResponseEntity
<
Boolean
>
checkKey
(
@RequestBody
SysAuthLogDTO
sysauthlogdto
)
{
...
@@ -132,7 +131,7 @@ public class SysAuthLogResource {
...
@@ -132,7 +131,7 @@ public class SysAuthLogResource {
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysauthlogService
.
save
(
sysauthlogMapping
.
toDomain
(
sysauthlogdto
)));
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysauthlogService
.
save
(
sysauthlogMapping
.
toDomain
(
sysauthlogdto
)));
}
}
@PreAuthorize
(
"hasPermission('Save',{'Sql',this.sysauthlogMapping,#sysauthlogdtos})"
)
//
@PreAuthorize("hasPermission('Save',{'Sql',this.sysauthlogMapping,#sysauthlogdtos})")
@ApiOperation
(
value
=
"SaveBatch"
,
tags
=
{
"SysAuthLog"
},
notes
=
"SaveBatch"
)
@ApiOperation
(
value
=
"SaveBatch"
,
tags
=
{
"SysAuthLog"
},
notes
=
"SaveBatch"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysauthlogs/savebatch"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysauthlogs/savebatch"
)
public
ResponseEntity
<
Boolean
>
saveBatch
(
@RequestBody
List
<
SysAuthLogDTO
>
sysauthlogdtos
)
{
public
ResponseEntity
<
Boolean
>
saveBatch
(
@RequestBody
List
<
SysAuthLogDTO
>
sysauthlogdtos
)
{
...
...
ibzuaa-provider/ibzuaa-provider-api/src/main/java/cn/ibizlab/api/rest/SysPermissionResource.java
浏览文件 @
53c4ecb6
...
@@ -22,6 +22,7 @@ import org.springframework.data.domain.Pageable;
...
@@ -22,6 +22,7 @@ import org.springframework.data.domain.Pageable;
import
org.springframework.util.StringUtils
;
import
org.springframework.util.StringUtils
;
import
org.springframework.context.annotation.Lazy
;
import
org.springframework.context.annotation.Lazy
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.security.access.prepost.PostAuthorize
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiResponse
;
import
io.swagger.annotations.ApiResponse
;
...
@@ -54,7 +55,7 @@ public class SysPermissionResource {
...
@@ -54,7 +55,7 @@ public class SysPermissionResource {
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
syspermissionService
.
save
(
syspermissionMapping
.
toDomain
(
syspermissiondto
)));
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
syspermissionService
.
save
(
syspermissionMapping
.
toDomain
(
syspermissiondto
)));
}
}
@PreAuthorize
(
"hasPermission('Save',{'Sql',this.syspermissionMapping,#syspermissiondtos})"
)
//
@PreAuthorize("hasPermission('Save',{'Sql',this.syspermissionMapping,#syspermissiondtos})")
@ApiOperation
(
value
=
"SaveBatch"
,
tags
=
{
"SysPermission"
},
notes
=
"SaveBatch"
)
@ApiOperation
(
value
=
"SaveBatch"
,
tags
=
{
"SysPermission"
},
notes
=
"SaveBatch"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/syspermissions/savebatch"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/syspermissions/savebatch"
)
public
ResponseEntity
<
Boolean
>
saveBatch
(
@RequestBody
List
<
SysPermissionDTO
>
syspermissiondtos
)
{
public
ResponseEntity
<
Boolean
>
saveBatch
(
@RequestBody
List
<
SysPermissionDTO
>
syspermissiondtos
)
{
...
@@ -62,7 +63,6 @@ public class SysPermissionResource {
...
@@ -62,7 +63,6 @@ public class SysPermissionResource {
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
true
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
true
);
}
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysPermission-GetDraft-all')"
)
@ApiOperation
(
value
=
"GetDraft"
,
tags
=
{
"SysPermission"
},
notes
=
"GetDraft"
)
@ApiOperation
(
value
=
"GetDraft"
,
tags
=
{
"SysPermission"
},
notes
=
"GetDraft"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/syspermissions/getdraft"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/syspermissions/getdraft"
)
public
ResponseEntity
<
SysPermissionDTO
>
getDraft
()
{
public
ResponseEntity
<
SysPermissionDTO
>
getDraft
()
{
...
@@ -77,7 +77,7 @@ public class SysPermissionResource {
...
@@ -77,7 +77,7 @@ public class SysPermissionResource {
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
syspermissionService
.
remove
(
syspermission_id
));
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
syspermissionService
.
remove
(
syspermission_id
));
}
}
@PreAuthorize
(
"hasPermission('Remove',{'Sql',this.syspermissionMapping,this.permissionDTO,#ids})"
)
//
@PreAuthorize("hasPermission('Remove',{'Sql',this.syspermissionMapping,this.permissionDTO,#ids})")
@ApiOperation
(
value
=
"RemoveBatch"
,
tags
=
{
"SysPermission"
},
notes
=
"RemoveBatch"
)
@ApiOperation
(
value
=
"RemoveBatch"
,
tags
=
{
"SysPermission"
},
notes
=
"RemoveBatch"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/syspermissions/batch"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/syspermissions/batch"
)
public
ResponseEntity
<
Boolean
>
removeBatch
(
@RequestBody
List
<
String
>
ids
)
{
public
ResponseEntity
<
Boolean
>
removeBatch
(
@RequestBody
List
<
String
>
ids
)
{
...
@@ -90,14 +90,14 @@ public class SysPermissionResource {
...
@@ -90,14 +90,14 @@ public class SysPermissionResource {
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/syspermissions/{syspermission_id}"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/syspermissions/{syspermission_id}"
)
@Transactional
@Transactional
public
ResponseEntity
<
SysPermissionDTO
>
update
(
@PathVariable
(
"syspermission_id"
)
String
syspermission_id
,
@RequestBody
SysPermissionDTO
syspermissiondto
)
{
public
ResponseEntity
<
SysPermissionDTO
>
update
(
@PathVariable
(
"syspermission_id"
)
String
syspermission_id
,
@RequestBody
SysPermissionDTO
syspermissiondto
)
{
SysPermission
domain
=
syspermissionMapping
.
toDomain
(
syspermissiondto
);
SysPermission
domain
=
syspermissionMapping
.
toDomain
(
syspermissiondto
);
domain
.
setPermissionid
(
syspermission_id
);
domain
.
setPermissionid
(
syspermission_id
);
syspermissionService
.
update
(
domain
);
syspermissionService
.
update
(
domain
);
SysPermissionDTO
dto
=
syspermissionMapping
.
toDto
(
domain
);
SysPermissionDTO
dto
=
syspermissionMapping
.
toDto
(
domain
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dto
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dto
);
}
}
@PreAuthorize
(
"hasPermission('Update',{'Sql',this.syspermissionMapping,#syspermissiondtos})"
)
//
@PreAuthorize("hasPermission('Update',{'Sql',this.syspermissionMapping,#syspermissiondtos})")
@ApiOperation
(
value
=
"UpdateBatch"
,
tags
=
{
"SysPermission"
},
notes
=
"UpdateBatch"
)
@ApiOperation
(
value
=
"UpdateBatch"
,
tags
=
{
"SysPermission"
},
notes
=
"UpdateBatch"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/syspermissions/batch"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/syspermissions/batch"
)
public
ResponseEntity
<
Boolean
>
updateBatch
(
@RequestBody
List
<
SysPermissionDTO
>
syspermissiondtos
)
{
public
ResponseEntity
<
Boolean
>
updateBatch
(
@RequestBody
List
<
SysPermissionDTO
>
syspermissiondtos
)
{
...
@@ -116,7 +116,7 @@ public class SysPermissionResource {
...
@@ -116,7 +116,7 @@ public class SysPermissionResource {
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dto
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dto
);
}
}
@PreAuthorize
(
"hasPermission('Create',{'Sql',this.syspermissionMapping,#syspermissiondtos})"
)
//
@PreAuthorize("hasPermission('Create',{'Sql',this.syspermissionMapping,#syspermissiondtos})")
@ApiOperation
(
value
=
"createBatch"
,
tags
=
{
"SysPermission"
},
notes
=
"createBatch"
)
@ApiOperation
(
value
=
"createBatch"
,
tags
=
{
"SysPermission"
},
notes
=
"createBatch"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/syspermissions/batch"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/syspermissions/batch"
)
public
ResponseEntity
<
Boolean
>
createBatch
(
@RequestBody
List
<
SysPermissionDTO
>
syspermissiondtos
)
{
public
ResponseEntity
<
Boolean
>
createBatch
(
@RequestBody
List
<
SysPermissionDTO
>
syspermissiondtos
)
{
...
@@ -124,7 +124,6 @@ public class SysPermissionResource {
...
@@ -124,7 +124,6 @@ public class SysPermissionResource {
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
true
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
true
);
}
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysPermission-CheckKey-all')"
)
@ApiOperation
(
value
=
"CheckKey"
,
tags
=
{
"SysPermission"
},
notes
=
"CheckKey"
)
@ApiOperation
(
value
=
"CheckKey"
,
tags
=
{
"SysPermission"
},
notes
=
"CheckKey"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/syspermissions/checkkey"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/syspermissions/checkkey"
)
public
ResponseEntity
<
Boolean
>
checkKey
(
@RequestBody
SysPermissionDTO
syspermissiondto
)
{
public
ResponseEntity
<
Boolean
>
checkKey
(
@RequestBody
SysPermissionDTO
syspermissiondto
)
{
...
...
ibzuaa-provider/ibzuaa-provider-api/src/main/java/cn/ibizlab/api/rest/SysRolePermissionResource.java
浏览文件 @
53c4ecb6
此差异已折叠。
点击以展开。
ibzuaa-provider/ibzuaa-provider-api/src/main/java/cn/ibizlab/api/rest/SysRoleResource.java
浏览文件 @
53c4ecb6
...
@@ -22,6 +22,7 @@ import org.springframework.data.domain.Pageable;
...
@@ -22,6 +22,7 @@ import org.springframework.data.domain.Pageable;
import
org.springframework.util.StringUtils
;
import
org.springframework.util.StringUtils
;
import
org.springframework.context.annotation.Lazy
;
import
org.springframework.context.annotation.Lazy
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.security.access.prepost.PostAuthorize
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiResponse
;
import
io.swagger.annotations.ApiResponse
;
...
@@ -54,7 +55,7 @@ public class SysRoleResource {
...
@@ -54,7 +55,7 @@ public class SysRoleResource {
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysroleService
.
save
(
sysroleMapping
.
toDomain
(
sysroledto
)));
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysroleService
.
save
(
sysroleMapping
.
toDomain
(
sysroledto
)));
}
}
@PreAuthorize
(
"hasPermission('Save',{'Sql',this.sysroleMapping,#sysroledtos})"
)
//
@PreAuthorize("hasPermission('Save',{'Sql',this.sysroleMapping,#sysroledtos})")
@ApiOperation
(
value
=
"SaveBatch"
,
tags
=
{
"SysRole"
},
notes
=
"SaveBatch"
)
@ApiOperation
(
value
=
"SaveBatch"
,
tags
=
{
"SysRole"
},
notes
=
"SaveBatch"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysroles/savebatch"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysroles/savebatch"
)
public
ResponseEntity
<
Boolean
>
saveBatch
(
@RequestBody
List
<
SysRoleDTO
>
sysroledtos
)
{
public
ResponseEntity
<
Boolean
>
saveBatch
(
@RequestBody
List
<
SysRoleDTO
>
sysroledtos
)
{
...
@@ -67,14 +68,14 @@ public class SysRoleResource {
...
@@ -67,14 +68,14 @@ public class SysRoleResource {
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/sysroles/{sysrole_id}"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/sysroles/{sysrole_id}"
)
@Transactional
@Transactional
public
ResponseEntity
<
SysRoleDTO
>
update
(
@PathVariable
(
"sysrole_id"
)
String
sysrole_id
,
@RequestBody
SysRoleDTO
sysroledto
)
{
public
ResponseEntity
<
SysRoleDTO
>
update
(
@PathVariable
(
"sysrole_id"
)
String
sysrole_id
,
@RequestBody
SysRoleDTO
sysroledto
)
{
SysRole
domain
=
sysroleMapping
.
toDomain
(
sysroledto
);
SysRole
domain
=
sysroleMapping
.
toDomain
(
sysroledto
);
domain
.
setRoleid
(
sysrole_id
);
domain
.
setRoleid
(
sysrole_id
);
sysroleService
.
update
(
domain
);
sysroleService
.
update
(
domain
);
SysRoleDTO
dto
=
sysroleMapping
.
toDto
(
domain
);
SysRoleDTO
dto
=
sysroleMapping
.
toDto
(
domain
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dto
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dto
);
}
}
@PreAuthorize
(
"hasPermission('Update',{'Sql',this.sysroleMapping,#sysroledtos})"
)
//
@PreAuthorize("hasPermission('Update',{'Sql',this.sysroleMapping,#sysroledtos})")
@ApiOperation
(
value
=
"UpdateBatch"
,
tags
=
{
"SysRole"
},
notes
=
"UpdateBatch"
)
@ApiOperation
(
value
=
"UpdateBatch"
,
tags
=
{
"SysRole"
},
notes
=
"UpdateBatch"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/sysroles/batch"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/sysroles/batch"
)
public
ResponseEntity
<
Boolean
>
updateBatch
(
@RequestBody
List
<
SysRoleDTO
>
sysroledtos
)
{
public
ResponseEntity
<
Boolean
>
updateBatch
(
@RequestBody
List
<
SysRoleDTO
>
sysroledtos
)
{
...
@@ -93,7 +94,7 @@ public class SysRoleResource {
...
@@ -93,7 +94,7 @@ public class SysRoleResource {
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dto
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dto
);
}
}
@PreAuthorize
(
"hasPermission('Create',{'Sql',this.sysroleMapping,#sysroledtos})"
)
//
@PreAuthorize("hasPermission('Create',{'Sql',this.sysroleMapping,#sysroledtos})")
@ApiOperation
(
value
=
"createBatch"
,
tags
=
{
"SysRole"
},
notes
=
"createBatch"
)
@ApiOperation
(
value
=
"createBatch"
,
tags
=
{
"SysRole"
},
notes
=
"createBatch"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysroles/batch"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysroles/batch"
)
public
ResponseEntity
<
Boolean
>
createBatch
(
@RequestBody
List
<
SysRoleDTO
>
sysroledtos
)
{
public
ResponseEntity
<
Boolean
>
createBatch
(
@RequestBody
List
<
SysRoleDTO
>
sysroledtos
)
{
...
@@ -118,7 +119,7 @@ public class SysRoleResource {
...
@@ -118,7 +119,7 @@ public class SysRoleResource {
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysroleService
.
remove
(
sysrole_id
));
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysroleService
.
remove
(
sysrole_id
));
}
}
@PreAuthorize
(
"hasPermission('Remove',{'Sql',this.sysroleMapping,this.permissionDTO,#ids})"
)
//
@PreAuthorize("hasPermission('Remove',{'Sql',this.sysroleMapping,this.permissionDTO,#ids})")
@ApiOperation
(
value
=
"RemoveBatch"
,
tags
=
{
"SysRole"
},
notes
=
"RemoveBatch"
)
@ApiOperation
(
value
=
"RemoveBatch"
,
tags
=
{
"SysRole"
},
notes
=
"RemoveBatch"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/sysroles/batch"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/sysroles/batch"
)
public
ResponseEntity
<
Boolean
>
removeBatch
(
@RequestBody
List
<
String
>
ids
)
{
public
ResponseEntity
<
Boolean
>
removeBatch
(
@RequestBody
List
<
String
>
ids
)
{
...
@@ -126,14 +127,12 @@ public class SysRoleResource {
...
@@ -126,14 +127,12 @@ public class SysRoleResource {
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
true
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
true
);
}
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysRole-GetDraft-all')"
)
@ApiOperation
(
value
=
"GetDraft"
,
tags
=
{
"SysRole"
},
notes
=
"GetDraft"
)
@ApiOperation
(
value
=
"GetDraft"
,
tags
=
{
"SysRole"
},
notes
=
"GetDraft"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/sysroles/getdraft"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/sysroles/getdraft"
)
public
ResponseEntity
<
SysRoleDTO
>
getDraft
()
{
public
ResponseEntity
<
SysRoleDTO
>
getDraft
()
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysroleMapping
.
toDto
(
sysroleService
.
getDraft
(
new
SysRole
())));
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysroleMapping
.
toDto
(
sysroleService
.
getDraft
(
new
SysRole
())));
}
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysRole-CheckKey-all')"
)
@ApiOperation
(
value
=
"CheckKey"
,
tags
=
{
"SysRole"
},
notes
=
"CheckKey"
)
@ApiOperation
(
value
=
"CheckKey"
,
tags
=
{
"SysRole"
},
notes
=
"CheckKey"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysroles/checkkey"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysroles/checkkey"
)
public
ResponseEntity
<
Boolean
>
checkKey
(
@RequestBody
SysRoleDTO
sysroledto
)
{
public
ResponseEntity
<
Boolean
>
checkKey
(
@RequestBody
SysRoleDTO
sysroledto
)
{
...
...
ibzuaa-provider/ibzuaa-provider-api/src/main/java/cn/ibizlab/api/rest/SysUserResource.java
浏览文件 @
53c4ecb6
...
@@ -22,6 +22,7 @@ import org.springframework.data.domain.Pageable;
...
@@ -22,6 +22,7 @@ import org.springframework.data.domain.Pageable;
import
org.springframework.util.StringUtils
;
import
org.springframework.util.StringUtils
;
import
org.springframework.context.annotation.Lazy
;
import
org.springframework.context.annotation.Lazy
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.security.access.prepost.PostAuthorize
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiResponse
;
import
io.swagger.annotations.ApiResponse
;
...
@@ -55,7 +56,7 @@ public class SysUserResource {
...
@@ -55,7 +56,7 @@ public class SysUserResource {
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysuserService
.
remove
(
sysuser_id
));
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysuserService
.
remove
(
sysuser_id
));
}
}
@PreAuthorize
(
"hasPermission('Remove',{'Sql',this.sysuserMapping,this.permissionDTO,#ids})"
)
//
@PreAuthorize("hasPermission('Remove',{'Sql',this.sysuserMapping,this.permissionDTO,#ids})")
@ApiOperation
(
value
=
"RemoveBatch"
,
tags
=
{
"SysUser"
},
notes
=
"RemoveBatch"
)
@ApiOperation
(
value
=
"RemoveBatch"
,
tags
=
{
"SysUser"
},
notes
=
"RemoveBatch"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/sysusers/batch"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/sysusers/batch"
)
public
ResponseEntity
<
Boolean
>
removeBatch
(
@RequestBody
List
<
String
>
ids
)
{
public
ResponseEntity
<
Boolean
>
removeBatch
(
@RequestBody
List
<
String
>
ids
)
{
...
@@ -68,14 +69,14 @@ public class SysUserResource {
...
@@ -68,14 +69,14 @@ public class SysUserResource {
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/sysusers/{sysuser_id}"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/sysusers/{sysuser_id}"
)
@Transactional
@Transactional
public
ResponseEntity
<
SysUserDTO
>
update
(
@PathVariable
(
"sysuser_id"
)
String
sysuser_id
,
@RequestBody
SysUserDTO
sysuserdto
)
{
public
ResponseEntity
<
SysUserDTO
>
update
(
@PathVariable
(
"sysuser_id"
)
String
sysuser_id
,
@RequestBody
SysUserDTO
sysuserdto
)
{
SysUser
domain
=
sysuserMapping
.
toDomain
(
sysuserdto
);
SysUser
domain
=
sysuserMapping
.
toDomain
(
sysuserdto
);
domain
.
setUserid
(
sysuser_id
);
domain
.
setUserid
(
sysuser_id
);
sysuserService
.
update
(
domain
);
sysuserService
.
update
(
domain
);
SysUserDTO
dto
=
sysuserMapping
.
toDto
(
domain
);
SysUserDTO
dto
=
sysuserMapping
.
toDto
(
domain
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dto
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dto
);
}
}
@PreAuthorize
(
"hasPermission('Update',{'Sql',this.sysuserMapping,#sysuserdtos})"
)
//
@PreAuthorize("hasPermission('Update',{'Sql',this.sysuserMapping,#sysuserdtos})")
@ApiOperation
(
value
=
"UpdateBatch"
,
tags
=
{
"SysUser"
},
notes
=
"UpdateBatch"
)
@ApiOperation
(
value
=
"UpdateBatch"
,
tags
=
{
"SysUser"
},
notes
=
"UpdateBatch"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/sysusers/batch"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/sysusers/batch"
)
public
ResponseEntity
<
Boolean
>
updateBatch
(
@RequestBody
List
<
SysUserDTO
>
sysuserdtos
)
{
public
ResponseEntity
<
Boolean
>
updateBatch
(
@RequestBody
List
<
SysUserDTO
>
sysuserdtos
)
{
...
@@ -83,7 +84,6 @@ public class SysUserResource {
...
@@ -83,7 +84,6 @@ public class SysUserResource {
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
true
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
true
);
}
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysUser-CheckKey-all')"
)
@ApiOperation
(
value
=
"CheckKey"
,
tags
=
{
"SysUser"
},
notes
=
"CheckKey"
)
@ApiOperation
(
value
=
"CheckKey"
,
tags
=
{
"SysUser"
},
notes
=
"CheckKey"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysusers/checkkey"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysusers/checkkey"
)
public
ResponseEntity
<
Boolean
>
checkKey
(
@RequestBody
SysUserDTO
sysuserdto
)
{
public
ResponseEntity
<
Boolean
>
checkKey
(
@RequestBody
SysUserDTO
sysuserdto
)
{
...
@@ -106,7 +106,7 @@ public class SysUserResource {
...
@@ -106,7 +106,7 @@ public class SysUserResource {
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysuserService
.
save
(
sysuserMapping
.
toDomain
(
sysuserdto
)));
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysuserService
.
save
(
sysuserMapping
.
toDomain
(
sysuserdto
)));
}
}
@PreAuthorize
(
"hasPermission('Save',{'Sql',this.sysuserMapping,#sysuserdtos})"
)
//
@PreAuthorize("hasPermission('Save',{'Sql',this.sysuserMapping,#sysuserdtos})")
@ApiOperation
(
value
=
"SaveBatch"
,
tags
=
{
"SysUser"
},
notes
=
"SaveBatch"
)
@ApiOperation
(
value
=
"SaveBatch"
,
tags
=
{
"SysUser"
},
notes
=
"SaveBatch"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysusers/savebatch"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysusers/savebatch"
)
public
ResponseEntity
<
Boolean
>
saveBatch
(
@RequestBody
List
<
SysUserDTO
>
sysuserdtos
)
{
public
ResponseEntity
<
Boolean
>
saveBatch
(
@RequestBody
List
<
SysUserDTO
>
sysuserdtos
)
{
...
@@ -114,7 +114,6 @@ public class SysUserResource {
...
@@ -114,7 +114,6 @@ public class SysUserResource {
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
true
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
true
);
}
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysUser-GetDraft-all')"
)
@ApiOperation
(
value
=
"GetDraft"
,
tags
=
{
"SysUser"
},
notes
=
"GetDraft"
)
@ApiOperation
(
value
=
"GetDraft"
,
tags
=
{
"SysUser"
},
notes
=
"GetDraft"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/sysusers/getdraft"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/sysusers/getdraft"
)
public
ResponseEntity
<
SysUserDTO
>
getDraft
()
{
public
ResponseEntity
<
SysUserDTO
>
getDraft
()
{
...
@@ -132,7 +131,7 @@ public class SysUserResource {
...
@@ -132,7 +131,7 @@ public class SysUserResource {
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dto
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dto
);
}
}
@PreAuthorize
(
"hasPermission('Create',{'Sql',this.sysuserMapping,#sysuserdtos})"
)
//
@PreAuthorize("hasPermission('Create',{'Sql',this.sysuserMapping,#sysuserdtos})")
@ApiOperation
(
value
=
"createBatch"
,
tags
=
{
"SysUser"
},
notes
=
"createBatch"
)
@ApiOperation
(
value
=
"createBatch"
,
tags
=
{
"SysUser"
},
notes
=
"createBatch"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysusers/batch"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysusers/batch"
)
public
ResponseEntity
<
Boolean
>
createBatch
(
@RequestBody
List
<
SysUserDTO
>
sysuserdtos
)
{
public
ResponseEntity
<
Boolean
>
createBatch
(
@RequestBody
List
<
SysUserDTO
>
sysuserdtos
)
{
...
...
ibzuaa-provider/ibzuaa-provider-api/src/main/java/cn/ibizlab/api/rest/SysUserRoleResource.java
浏览文件 @
53c4ecb6
此差异已折叠。
点击以展开。
ibzuaa-util/src/main/java/cn/ibizlab/util/security/AuthPermissionEvaluator.java
浏览文件 @
53c4ecb6
此差异已折叠。
点击以展开。
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录