Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzuaa
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzuaa
提交
edf770c4
提交
edf770c4
编写于
5月 25, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ibiz4j 发布系统代码
上级
5ce9d74a
变更
18
显示空白字符变更
内嵌
并排
正在显示
18 个修改的文件
包含
259 行增加
和
48 行删除
+259
-48
en-US.ts
app_web/src/locale/lang/en-US.ts
+0
-4
zh-CN.ts
app_web/src/locale/lang/zh-CN.ts
+0
-4
main-appmenu.ts
app_web/src/mock/app/main-appmenu/main-appmenu.ts
+1
-1
index.ts
app_web/src/mock/index.ts
+0
-2
entity-service-register.ts
app_web/src/service/entity-service-register.ts
+0
-2
ui-service-register.ts
app_web/src/uiservice/ui-service-register.ts
+0
-2
main-appmenu-model.ts
app_web/src/widgets/app/main-appmenu/main-appmenu-model.ts
+1
-1
main-form-base.vue
...b/src/widgets/sys-permission/main-form/main-form-base.vue
+1
-1
main-form-base.vue
.../widgets/sys-role-permission/main-form/main-form-base.vue
+1
-1
main-form-base.vue
app_web/src/widgets/sys-role/main-form/main-form-base.vue
+1
-1
main-form-base.vue
...eb/src/widgets/sys-user-role/main-form/main-form-base.vue
+1
-1
main-form-base.vue
app_web/src/widgets/sys-user/main-form/main-form-base.vue
+1
-1
application-web-prod.yml
...bzuaa-app-web/src/main/resources/application-web-prod.yml
+0
-8
h2_table.xml
ibzuaa-core/src/main/resources/liquibase/h2_table.xml
+3
-3
systemResource.json
...aa-core/src/main/resources/permission/systemResource.json
+0
-16
SysPSSystemDTO.java
...-api/src/main/java/cn/ibizlab/api/dto/SysPSSystemDTO.java
+69
-0
SysPSSystemMapping.java
.../main/java/cn/ibizlab/api/mapping/SysPSSystemMapping.java
+16
-0
SysPSSystemResource.java
...rc/main/java/cn/ibizlab/api/rest/SysPSSystemResource.java
+164
-0
未找到文件。
app_web/src/locale/lang/en-US.ts
浏览文件 @
edf770c4
...
@@ -4,8 +4,6 @@ import syspermission_en_US from '@locale/lanres/sys-permission/sys-permission_en
...
@@ -4,8 +4,6 @@ import syspermission_en_US from '@locale/lanres/sys-permission/sys-permission_en
import
sysuserrole_en_US
from
'@locale/lanres/sys-user-role/sys-user-role_en_US'
;
import
sysuserrole_en_US
from
'@locale/lanres/sys-user-role/sys-user-role_en_US'
;
import
sysuser_en_US
from
'@locale/lanres/sys-user/sys-user_en_US'
;
import
sysuser_en_US
from
'@locale/lanres/sys-user/sys-user_en_US'
;
import
sysrole_en_US
from
'@locale/lanres/sys-role/sys-role_en_US'
;
import
sysrole_en_US
from
'@locale/lanres/sys-role/sys-role_en_US'
;
import
sysappmenuitem_en_US
from
'@locale/lanres/sys-app-menu-item/sys-app-menu-item_en_US'
;
import
sysoperatorpriv_en_US
from
'@locale/lanres/sys-operator-priv/sys-operator-priv_en_US'
;
import
components_en_US
from
'@locale/lanres/components/components_en_US'
;
import
components_en_US
from
'@locale/lanres/components/components_en_US'
;
import
codelist_en_US
from
'@locale/lanres/codelist/codelist_en_US'
;
import
codelist_en_US
from
'@locale/lanres/codelist/codelist_en_US'
;
import
userCustom_en_US
from
'@locale/lanres/userCustom/userCustom_en_US'
;
import
userCustom_en_US
from
'@locale/lanres/userCustom/userCustom_en_US'
;
...
@@ -76,8 +74,6 @@ export default {
...
@@ -76,8 +74,6 @@ export default {
sysuserrole
:
sysuserrole_en_US
,
sysuserrole
:
sysuserrole_en_US
,
sysuser
:
sysuser_en_US
,
sysuser
:
sysuser_en_US
,
sysrole
:
sysrole_en_US
,
sysrole
:
sysrole_en_US
,
sysappmenuitem
:
sysappmenuitem_en_US
,
sysoperatorpriv
:
sysoperatorpriv_en_US
,
},
},
components
:
components_en_US
,
components
:
components_en_US
,
codelist
:
codelist_en_US
,
codelist
:
codelist_en_US
,
...
...
app_web/src/locale/lang/zh-CN.ts
浏览文件 @
edf770c4
...
@@ -4,8 +4,6 @@ import syspermission_zh_CN from '@locale/lanres/sys-permission/sys-permission_zh
...
@@ -4,8 +4,6 @@ import syspermission_zh_CN from '@locale/lanres/sys-permission/sys-permission_zh
import
sysuserrole_zh_CN
from
'@locale/lanres/sys-user-role/sys-user-role_zh_CN'
;
import
sysuserrole_zh_CN
from
'@locale/lanres/sys-user-role/sys-user-role_zh_CN'
;
import
sysuser_zh_CN
from
'@locale/lanres/sys-user/sys-user_zh_CN'
;
import
sysuser_zh_CN
from
'@locale/lanres/sys-user/sys-user_zh_CN'
;
import
sysrole_zh_CN
from
'@locale/lanres/sys-role/sys-role_zh_CN'
;
import
sysrole_zh_CN
from
'@locale/lanres/sys-role/sys-role_zh_CN'
;
import
sysappmenuitem_zh_CN
from
'@locale/lanres/sys-app-menu-item/sys-app-menu-item_zh_CN'
;
import
sysoperatorpriv_zh_CN
from
'@locale/lanres/sys-operator-priv/sys-operator-priv_zh_CN'
;
import
components_zh_CN
from
'@locale/lanres/components/components_zh_CN'
;
import
components_zh_CN
from
'@locale/lanres/components/components_zh_CN'
;
import
codelist_zh_CN
from
'@locale/lanres/codelist/codelist_zh_CN'
;
import
codelist_zh_CN
from
'@locale/lanres/codelist/codelist_zh_CN'
;
import
userCustom_zh_CN
from
'@locale/lanres/userCustom/userCustom_zh_CN'
;
import
userCustom_zh_CN
from
'@locale/lanres/userCustom/userCustom_zh_CN'
;
...
@@ -76,8 +74,6 @@ export default {
...
@@ -76,8 +74,6 @@ export default {
sysuserrole
:
sysuserrole_zh_CN
,
sysuserrole
:
sysuserrole_zh_CN
,
sysuser
:
sysuser_zh_CN
,
sysuser
:
sysuser_zh_CN
,
sysrole
:
sysrole_zh_CN
,
sysrole
:
sysrole_zh_CN
,
sysappmenuitem
:
sysappmenuitem_zh_CN
,
sysoperatorpriv
:
sysoperatorpriv_zh_CN
,
},
},
components
:
components_zh_CN
,
components
:
components_zh_CN
,
codelist
:
codelist_zh_CN
,
codelist
:
codelist_zh_CN
,
...
...
app_web/src/mock/app/main-appmenu/main-appmenu.ts
浏览文件 @
edf770c4
...
@@ -40,7 +40,7 @@ mock.onGet('v7/mainappmenu').reply((config: any) => {
...
@@ -40,7 +40,7 @@ mock.onGet('v7/mainappmenu').reply((config: any) => {
hidden
:
false
,
hidden
:
false
,
hidesidebar
:
false
,
hidesidebar
:
false
,
opendefault
:
false
,
opendefault
:
false
,
iconcls
:
'fa fa-u
ser-secre
t'
,
iconcls
:
'fa fa-u
nlock-al
t'
,
icon
:
''
,
icon
:
''
,
textcls
:
''
,
textcls
:
''
,
appfunctag
:
'Auto10'
,
appfunctag
:
'Auto10'
,
...
...
app_web/src/mock/index.ts
浏览文件 @
edf770c4
...
@@ -13,5 +13,3 @@ import './entity/sys-permissions/sys-permissions';
...
@@ -13,5 +13,3 @@ import './entity/sys-permissions/sys-permissions';
import
'./entity/sys-user-roles/sys-user-roles'
;
import
'./entity/sys-user-roles/sys-user-roles'
;
import
'./entity/sys-users/sys-users'
;
import
'./entity/sys-users/sys-users'
;
import
'./entity/sys-roles/sys-roles'
;
import
'./entity/sys-roles/sys-roles'
;
import
'./entity/sys-app-menu-items/sys-app-menu-items'
;
import
'./entity/sys-operator-privs/sys-operator-privs'
;
app_web/src/service/entity-service-register.ts
浏览文件 @
edf770c4
...
@@ -45,8 +45,6 @@ export class EntityServiceRegister {
...
@@ -45,8 +45,6 @@ export class EntityServiceRegister {
this
.
allEntityService
.
set
(
'sysuserrole'
,
()
=>
import
(
'@/service/sys-user-role/sys-user-role-service'
));
this
.
allEntityService
.
set
(
'sysuserrole'
,
()
=>
import
(
'@/service/sys-user-role/sys-user-role-service'
));
this
.
allEntityService
.
set
(
'sysuser'
,
()
=>
import
(
'@/service/sys-user/sys-user-service'
));
this
.
allEntityService
.
set
(
'sysuser'
,
()
=>
import
(
'@/service/sys-user/sys-user-service'
));
this
.
allEntityService
.
set
(
'sysrole'
,
()
=>
import
(
'@/service/sys-role/sys-role-service'
));
this
.
allEntityService
.
set
(
'sysrole'
,
()
=>
import
(
'@/service/sys-role/sys-role-service'
));
this
.
allEntityService
.
set
(
'sysappmenuitem'
,
()
=>
import
(
'@/service/sys-app-menu-item/sys-app-menu-item-service'
));
this
.
allEntityService
.
set
(
'sysoperatorpriv'
,
()
=>
import
(
'@/service/sys-operator-priv/sys-operator-priv-service'
));
}
}
/**
/**
...
...
app_web/src/uiservice/ui-service-register.ts
浏览文件 @
edf770c4
...
@@ -45,8 +45,6 @@ export class UIServiceRegister {
...
@@ -45,8 +45,6 @@ export class UIServiceRegister {
this
.
allUIService
.
set
(
'sysuserrole'
,
()
=>
import
(
'@/uiservice/sys-user-role/sys-user-role-ui-service'
));
this
.
allUIService
.
set
(
'sysuserrole'
,
()
=>
import
(
'@/uiservice/sys-user-role/sys-user-role-ui-service'
));
this
.
allUIService
.
set
(
'sysuser'
,
()
=>
import
(
'@/uiservice/sys-user/sys-user-ui-service'
));
this
.
allUIService
.
set
(
'sysuser'
,
()
=>
import
(
'@/uiservice/sys-user/sys-user-ui-service'
));
this
.
allUIService
.
set
(
'sysrole'
,
()
=>
import
(
'@/uiservice/sys-role/sys-role-ui-service'
));
this
.
allUIService
.
set
(
'sysrole'
,
()
=>
import
(
'@/uiservice/sys-role/sys-role-ui-service'
));
this
.
allUIService
.
set
(
'sysappmenuitem'
,
()
=>
import
(
'@/uiservice/sys-app-menu-item/sys-app-menu-item-ui-service'
));
this
.
allUIService
.
set
(
'sysoperatorpriv'
,
()
=>
import
(
'@/uiservice/sys-operator-priv/sys-operator-priv-ui-service'
));
}
}
/**
/**
...
...
app_web/src/widgets/app/main-appmenu/main-appmenu-model.ts
浏览文件 @
edf770c4
...
@@ -44,7 +44,7 @@ export default class MainModel {
...
@@ -44,7 +44,7 @@ export default class MainModel {
hidden
:
false
,
hidden
:
false
,
hidesidebar
:
false
,
hidesidebar
:
false
,
opendefault
:
false
,
opendefault
:
false
,
iconcls
:
'fa fa-u
ser-secre
t'
,
iconcls
:
'fa fa-u
nlock-al
t'
,
icon
:
''
,
icon
:
''
,
textcls
:
''
,
textcls
:
''
,
appfunctag
:
'Auto10'
,
appfunctag
:
'Auto10'
,
...
...
app_web/src/widgets/sys-permission/main-form/main-form-base.vue
浏览文件 @
edf770c4
<
template
>
<
template
>
<i-form
:model=
"this.data"
class=
'app-form'
ref=
'form'
id=
'
form
'
style=
""
>
<i-form
:model=
"this.data"
class=
'app-form'
ref=
'form'
id=
'
syspermission_main
'
style=
""
>
<input
style=
"display:none;"
/>
<input
style=
"display:none;"
/>
<row
>
<row
>
...
...
app_web/src/widgets/sys-role-permission/main-form/main-form-base.vue
浏览文件 @
edf770c4
<
template
>
<
template
>
<i-form
:model=
"this.data"
class=
'app-form'
ref=
'form'
id=
'
form
'
style=
""
>
<i-form
:model=
"this.data"
class=
'app-form'
ref=
'form'
id=
'
sysrolepermission_main
'
style=
""
>
<input
style=
"display:none;"
/>
<input
style=
"display:none;"
/>
<row
>
<row
>
...
...
app_web/src/widgets/sys-role/main-form/main-form-base.vue
浏览文件 @
edf770c4
<
template
>
<
template
>
<i-form
:model=
"this.data"
class=
'app-form'
ref=
'form'
id=
'
form
'
style=
""
>
<i-form
:model=
"this.data"
class=
'app-form'
ref=
'form'
id=
'
sysrole_main
'
style=
""
>
<input
style=
"display:none;"
/>
<input
style=
"display:none;"
/>
<row
>
<row
>
...
...
app_web/src/widgets/sys-user-role/main-form/main-form-base.vue
浏览文件 @
edf770c4
<
template
>
<
template
>
<i-form
:model=
"this.data"
class=
'app-form'
ref=
'form'
id=
'
form
'
style=
""
>
<i-form
:model=
"this.data"
class=
'app-form'
ref=
'form'
id=
'
sysuserrole_main
'
style=
""
>
<input
style=
"display:none;"
/>
<input
style=
"display:none;"
/>
<row
>
<row
>
...
...
app_web/src/widgets/sys-user/main-form/main-form-base.vue
浏览文件 @
edf770c4
<
template
>
<
template
>
<i-form
:model=
"this.data"
class=
'app-form'
ref=
'form'
id=
'
form
'
style=
""
>
<i-form
:model=
"this.data"
class=
'app-form'
ref=
'form'
id=
'
sysuser_main
'
style=
""
>
<input
style=
"display:none;"
/>
<input
style=
"display:none;"
/>
<row
>
<row
>
...
...
ibzuaa-app/ibzuaa-app-web/src/main/resources/application-web-prod.yml
浏览文件 @
edf770c4
...
@@ -27,13 +27,5 @@ zuul:
...
@@ -27,13 +27,5 @@ zuul:
path
:
/sysroles/**
path
:
/sysroles/**
serviceId
:
ibzuaa-api
serviceId
:
ibzuaa-api
stripPrefix
:
false
stripPrefix
:
false
sys_psappmenuitem
:
path
:
/sysappmenuitems/**
serviceId
:
ibzuaa-api
stripPrefix
:
false
sys_psdeoppriv
:
path
:
/sysoperatorprivs/**
serviceId
:
ibzuaa-api
stripPrefix
:
false
sensitive-headers
:
sensitive-headers
:
-
Cookie,Set-Cookie,Authorization
-
Cookie,Set-Cookie,Authorization
ibzuaa-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
edf770c4
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
<!--输出实体[SYS_PSDEOPPRIV]数据结构 -->
<!--输出实体[SYS_PSDEOPPRIV]数据结构 -->
<changeSet
author=
"a_A_5d9d78509"
id=
"tab-sys_psdeoppriv-1
19
-2"
>
<changeSet
author=
"a_A_5d9d78509"
id=
"tab-sys_psdeoppriv-1
20
-2"
>
<createTable
tableName=
"IBZPSDEOPPRIV"
>
<createTable
tableName=
"IBZPSDEOPPRIV"
>
<column
name=
"SYS_PSDEOPPRIVID"
remarks=
""
type=
"VARCHAR(200)"
>
<column
name=
"SYS_PSDEOPPRIVID"
remarks=
""
type=
"VARCHAR(200)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_SYS_PSDEOPPRIV_SYS_PSDEOPPR"
/>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_SYS_PSDEOPPRIV_SYS_PSDEOPPR"
/>
...
@@ -164,7 +164,7 @@
...
@@ -164,7 +164,7 @@
<!--输出实体[SYS_PSSYSTEM]数据结构 -->
<!--输出实体[SYS_PSSYSTEM]数据结构 -->
<changeSet
author=
"a_A_5d9d78509"
id=
"tab-sys_pssystem-1
4
-8"
>
<changeSet
author=
"a_A_5d9d78509"
id=
"tab-sys_pssystem-1
8
-8"
>
<createTable
tableName=
"IBZPSSYSTEM"
>
<createTable
tableName=
"IBZPSSYSTEM"
>
<column
name=
"PSSYSTEMID"
remarks=
""
type=
"VARCHAR(100)"
>
<column
name=
"PSSYSTEMID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_SYS_PSSYSTEM_PSSYSTEMID"
/>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_SYS_PSSYSTEM_PSSYSTEMID"
/>
...
@@ -178,7 +178,7 @@
...
@@ -178,7 +178,7 @@
<!--输出实体[SYS_PSAPPMENUITEM]数据结构 -->
<!--输出实体[SYS_PSAPPMENUITEM]数据结构 -->
<changeSet
author=
"a_A_5d9d78509"
id=
"tab-sys_psappmenuitem-11
3
-9"
>
<changeSet
author=
"a_A_5d9d78509"
id=
"tab-sys_psappmenuitem-11
4
-9"
>
<createTable
tableName=
"IBZPSAPPMENUITEM"
>
<createTable
tableName=
"IBZPSAPPMENUITEM"
>
<column
name=
"SYS_PSAPPMENUITEMID"
remarks=
""
type=
"VARCHAR(200)"
>
<column
name=
"SYS_PSAPPMENUITEMID"
remarks=
""
type=
"VARCHAR(200)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_SYS_PSAPPMENUITEM_SYS_PSAPP"
/>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_SYS_PSAPPMENUITEM_SYS_PSAPP"
/>
...
...
ibzuaa-core/src/main/resources/permission/systemResource.json
浏览文件 @
edf770c4
...
@@ -48,22 +48,6 @@
...
@@ -48,22 +48,6 @@
"sysmoudle"
:{
"id"
:
"UAA"
,
"name"
:
"uaa"
},
"sysmoudle"
:{
"id"
:
"UAA"
,
"name"
:
"uaa"
},
"dedataset"
:[{
"id"
:
"Default"
,
"name"
:
"DEFAULT"
}],
"dedataset"
:[{
"id"
:
"Default"
,
"name"
:
"DEFAULT"
}],
"deaction"
:[{
"id"
:
"Save"
,
"name"
:
"Save"
,
"type"
:
"BUILTIN"
},{
"id"
:
"Update"
,
"name"
:
"Update"
,
"type"
:
"BUILTIN"
},{
"id"
:
"Create"
,
"name"
:
"Create"
,
"type"
:
"BUILTIN"
},{
"id"
:
"Get"
,
"name"
:
"Get"
,
"type"
:
"BUILTIN"
},{
"id"
:
"Remove"
,
"name"
:
"Remove"
,
"type"
:
"BUILTIN"
},{
"id"
:
"GetDraft"
,
"name"
:
"GetDraft"
,
"type"
:
"BUILTIN"
},{
"id"
:
"CheckKey"
,
"name"
:
"CheckKey"
,
"type"
:
"BUILTIN"
}],
"deaction"
:[{
"id"
:
"Save"
,
"name"
:
"Save"
,
"type"
:
"BUILTIN"
},{
"id"
:
"Update"
,
"name"
:
"Update"
,
"type"
:
"BUILTIN"
},{
"id"
:
"Create"
,
"name"
:
"Create"
,
"type"
:
"BUILTIN"
},{
"id"
:
"Get"
,
"name"
:
"Get"
,
"type"
:
"BUILTIN"
},{
"id"
:
"Remove"
,
"name"
:
"Remove"
,
"type"
:
"BUILTIN"
},{
"id"
:
"GetDraft"
,
"name"
:
"GetDraft"
,
"type"
:
"BUILTIN"
},{
"id"
:
"CheckKey"
,
"name"
:
"CheckKey"
,
"type"
:
"BUILTIN"
}],
"datascope"
:[{
"id"
:
"all"
,
"name"
:
"全部数据"
}]
}
,
{
"dename"
:
"SysAppMenuItem"
,
"delogicname"
:
"系统菜单项"
,
"sysmoudle"
:{
"id"
:
"UAA"
,
"name"
:
"uaa"
},
"dedataset"
:[{
"id"
:
"Default"
,
"name"
:
"DEFAULT"
}],
"deaction"
:[{
"id"
:
"Save"
,
"name"
:
"Save"
,
"type"
:
"BUILTIN"
},{
"id"
:
"Create"
,
"name"
:
"Create"
,
"type"
:
"BUILTIN"
},{
"id"
:
"Update"
,
"name"
:
"Update"
,
"type"
:
"BUILTIN"
},{
"id"
:
"GetDraft"
,
"name"
:
"GetDraft"
,
"type"
:
"BUILTIN"
},{
"id"
:
"CheckKey"
,
"name"
:
"CheckKey"
,
"type"
:
"BUILTIN"
},{
"id"
:
"Remove"
,
"name"
:
"Remove"
,
"type"
:
"BUILTIN"
},{
"id"
:
"Get"
,
"name"
:
"Get"
,
"type"
:
"BUILTIN"
}],
"datascope"
:[{
"id"
:
"all"
,
"name"
:
"全部数据"
}]
}
,
{
"dename"
:
"SysOperatorPriv"
,
"delogicname"
:
"实体数据能力"
,
"sysmoudle"
:{
"id"
:
"UAA"
,
"name"
:
"uaa"
},
"dedataset"
:[{
"id"
:
"Default"
,
"name"
:
"DEFAULT"
}],
"deaction"
:[{
"id"
:
"Remove"
,
"name"
:
"Remove"
,
"type"
:
"BUILTIN"
},{
"id"
:
"CheckKey"
,
"name"
:
"CheckKey"
,
"type"
:
"BUILTIN"
},{
"id"
:
"GetDraft"
,
"name"
:
"GetDraft"
,
"type"
:
"BUILTIN"
},{
"id"
:
"Create"
,
"name"
:
"Create"
,
"type"
:
"BUILTIN"
},{
"id"
:
"Get"
,
"name"
:
"Get"
,
"type"
:
"BUILTIN"
},{
"id"
:
"Update"
,
"name"
:
"Update"
,
"type"
:
"BUILTIN"
},{
"id"
:
"Save"
,
"name"
:
"Save"
,
"type"
:
"BUILTIN"
}],
"datascope"
:[{
"id"
:
"all"
,
"name"
:
"全部数据"
}]
"datascope"
:[{
"id"
:
"all"
,
"name"
:
"全部数据"
}]
}
}
],
],
...
...
ibzuaa-provider/ibzuaa-provider-api/src/main/java/cn/ibizlab/api/dto/SysPSSystemDTO.java
0 → 100644
浏览文件 @
edf770c4
package
cn
.
ibizlab
.
api
.
dto
;
import
java.sql.Timestamp
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.math.BigInteger
;
import
java.util.Map
;
import
java.util.HashMap
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.alibaba.fastjson.annotation.JSONField
;
import
cn.ibizlab.util.domain.DTOBase
;
import
lombok.Data
;
/**
* 服务DTO对象[SysPSSystemDTO]
*/
@Data
public
class
SysPSSystemDTO
extends
DTOBase
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 属性 [PSSYSTEMID]
*
*/
@JSONField
(
name
=
"pssystemid"
)
@JsonProperty
(
"pssystemid"
)
private
String
pssystemid
;
/**
* 属性 [PSSYSTEMNAME]
*
*/
@JSONField
(
name
=
"pssystemname"
)
@JsonProperty
(
"pssystemname"
)
private
String
pssystemname
;
/**
* 属性 [SYSSTRUCTURE]
*
*/
@JSONField
(
name
=
"sysstructure"
)
@JsonProperty
(
"sysstructure"
)
private
String
sysstructure
;
/**
* 设置 [PSSYSTEMNAME]
*/
public
void
setPssystemname
(
String
pssystemname
){
this
.
pssystemname
=
pssystemname
;
this
.
modify
(
"pssystemname"
,
pssystemname
);
}
/**
* 设置 [SYSSTRUCTURE]
*/
public
void
setSysstructure
(
String
sysstructure
){
this
.
sysstructure
=
sysstructure
;
this
.
modify
(
"sysstructure"
,
sysstructure
);
}
}
ibzuaa-provider/ibzuaa-provider-api/src/main/java/cn/ibizlab/api/mapping/SysPSSystemMapping.java
0 → 100644
浏览文件 @
edf770c4
package
cn
.
ibizlab
.
api
.
mapping
;
import
org.mapstruct.*
;
import
cn.ibizlab.core.uaa.domain.SysPSSystem
;
import
cn.ibizlab.api.dto.SysPSSystemDTO
;
import
cn.ibizlab.util.domain.MappingBase
;
import
org.mapstruct.factory.Mappers
;
@Mapper
(
componentModel
=
"spring"
,
uses
=
{},
nullValuePropertyMappingStrategy
=
NullValuePropertyMappingStrategy
.
IGNORE
,
nullValueCheckStrategy
=
NullValueCheckStrategy
.
ALWAYS
)
public
interface
SysPSSystemMapping
extends
MappingBase
<
SysPSSystemDTO
,
SysPSSystem
>
{
}
ibzuaa-provider/ibzuaa-provider-api/src/main/java/cn/ibizlab/api/rest/SysPSSystemResource.java
0 → 100644
浏览文件 @
edf770c4
package
cn
.
ibizlab
.
api
.
rest
;
import
java.sql.Timestamp
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
java.math.BigInteger
;
import
java.util.HashMap
;
import
lombok.extern.slf4j.Slf4j
;
import
com.alibaba.fastjson.JSONObject
;
import
javax.servlet.ServletRequest
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.cglib.beans.BeanCopier
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.http.HttpStatus
;
import
org.springframework.data.domain.PageRequest
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.PageImpl
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.util.StringUtils
;
import
org.springframework.context.annotation.Lazy
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiResponse
;
import
io.swagger.annotations.ApiResponses
;
import
cn.ibizlab.api.dto.*
;
import
cn.ibizlab.api.mapping.*
;
import
cn.ibizlab.core.uaa.domain.SysPSSystem
;
import
cn.ibizlab.core.uaa.service.ISysPSSystemService
;
import
cn.ibizlab.core.uaa.filter.SysPSSystemSearchContext
;
@Slf4j
@Api
(
tags
=
{
"SysPSSystem"
})
@RestController
(
"api-syspssystem"
)
@RequestMapping
(
""
)
public
class
SysPSSystemResource
{
@Autowired
private
ISysPSSystemService
syspssystemService
;
@Autowired
@Lazy
public
SysPSSystemMapping
syspssystemMapping
;
public
SysPSSystemDTO
permissionDTO
=
new
SysPSSystemDTO
();
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysPSSystem-CheckKey-all')"
)
@ApiOperation
(
value
=
"CheckKey"
,
tags
=
{
"SysPSSystem"
},
notes
=
"CheckKey"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/syspssystems/checkkey"
)
public
ResponseEntity
<
Boolean
>
checkKey
(
@RequestBody
SysPSSystemDTO
syspssystemdto
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
syspssystemService
.
checkKey
(
syspssystemMapping
.
toDomain
(
syspssystemdto
)));
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysPSSystem-Get-all')"
)
@ApiOperation
(
value
=
"Get"
,
tags
=
{
"SysPSSystem"
},
notes
=
"Get"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/syspssystems/{syspssystem_id}"
)
public
ResponseEntity
<
SysPSSystemDTO
>
get
(
@PathVariable
(
"syspssystem_id"
)
String
syspssystem_id
)
{
SysPSSystem
domain
=
syspssystemService
.
get
(
syspssystem_id
);
SysPSSystemDTO
dto
=
syspssystemMapping
.
toDto
(
domain
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dto
);
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysPSSystem-Create-all')"
)
@ApiOperation
(
value
=
"Create"
,
tags
=
{
"SysPSSystem"
},
notes
=
"Create"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/syspssystems"
)
@Transactional
public
ResponseEntity
<
SysPSSystemDTO
>
create
(
@RequestBody
SysPSSystemDTO
syspssystemdto
)
{
SysPSSystem
domain
=
syspssystemMapping
.
toDomain
(
syspssystemdto
);
syspssystemService
.
create
(
domain
);
SysPSSystemDTO
dto
=
syspssystemMapping
.
toDto
(
domain
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dto
);
}
@PreAuthorize
(
"hasPermission('Create',{'Sql',this.humanMapping,#humandtos})"
)
@ApiOperation
(
value
=
"createBatch"
,
tags
=
{
"SysPSSystem"
},
notes
=
"createBatch"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/syspssystems/batch"
)
public
ResponseEntity
<
Boolean
>
createBatch
(
@RequestBody
List
<
SysPSSystemDTO
>
syspssystemdtos
)
{
syspssystemService
.
createBatch
(
syspssystemMapping
.
toDomain
(
syspssystemdtos
));
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
true
);
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysPSSystem-GetDraft-all')"
)
@ApiOperation
(
value
=
"GetDraft"
,
tags
=
{
"SysPSSystem"
},
notes
=
"GetDraft"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/syspssystems/getdraft"
)
public
ResponseEntity
<
SysPSSystemDTO
>
getDraft
()
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
syspssystemMapping
.
toDto
(
syspssystemService
.
getDraft
(
new
SysPSSystem
())));
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysPSSystem-Remove-all')"
)
@ApiOperation
(
value
=
"Remove"
,
tags
=
{
"SysPSSystem"
},
notes
=
"Remove"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/syspssystems/{syspssystem_id}"
)
@Transactional
public
ResponseEntity
<
Boolean
>
remove
(
@PathVariable
(
"syspssystem_id"
)
String
syspssystem_id
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
syspssystemService
.
remove
(
syspssystem_id
));
}
@PreAuthorize
(
"hasPermission('Remove',{'Sql',this.humanMapping,this.permissionDTO,#ids})"
)
@ApiOperation
(
value
=
"RemoveBatch"
,
tags
=
{
"SysPSSystem"
},
notes
=
"RemoveBatch"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/syspssystems/batch"
)
public
ResponseEntity
<
Boolean
>
removeBatch
(
@RequestBody
List
<
String
>
ids
)
{
syspssystemService
.
removeBatch
(
ids
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
true
);
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysPSSystem-Save-all')"
)
@ApiOperation
(
value
=
"Save"
,
tags
=
{
"SysPSSystem"
},
notes
=
"Save"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/syspssystems/save"
)
public
ResponseEntity
<
Boolean
>
save
(
@RequestBody
SysPSSystemDTO
syspssystemdto
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
syspssystemService
.
save
(
syspssystemMapping
.
toDomain
(
syspssystemdto
)));
}
@PreAuthorize
(
"hasPermission('Save',{'Sql',this.humanMapping,#humandtos})"
)
@ApiOperation
(
value
=
"SaveBatch"
,
tags
=
{
"SysPSSystem"
},
notes
=
"SaveBatch"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/syspssystems/savebatch"
)
public
ResponseEntity
<
Boolean
>
saveBatch
(
@RequestBody
List
<
SysPSSystemDTO
>
syspssystemdtos
)
{
syspssystemService
.
saveBatch
(
syspssystemMapping
.
toDomain
(
syspssystemdtos
));
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
true
);
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysPSSystem-Update-all')"
)
@ApiOperation
(
value
=
"Update"
,
tags
=
{
"SysPSSystem"
},
notes
=
"Update"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/syspssystems/{syspssystem_id}"
)
@Transactional
public
ResponseEntity
<
SysPSSystemDTO
>
update
(
@PathVariable
(
"syspssystem_id"
)
String
syspssystem_id
,
@RequestBody
SysPSSystemDTO
syspssystemdto
)
{
SysPSSystem
domain
=
syspssystemMapping
.
toDomain
(
syspssystemdto
);
domain
.
setPssystemid
(
syspssystem_id
);
syspssystemService
.
update
(
domain
);
SysPSSystemDTO
dto
=
syspssystemMapping
.
toDto
(
domain
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dto
);
}
@PreAuthorize
(
"hasPermission('Update',{'Sql',this.humanMapping,#humandtos})"
)
@ApiOperation
(
value
=
"UpdateBatch"
,
tags
=
{
"SysPSSystem"
},
notes
=
"UpdateBatch"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/syspssystems/batch"
)
public
ResponseEntity
<
Boolean
>
updateBatch
(
@RequestBody
List
<
SysPSSystemDTO
>
syspssystemdtos
)
{
syspssystemService
.
updateBatch
(
syspssystemMapping
.
toDomain
(
syspssystemdtos
));
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
true
);
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysPSSystem-Default-all')"
)
@ApiOperation
(
value
=
"fetchDEFAULT"
,
tags
=
{
"SysPSSystem"
}
,
notes
=
"fetchDEFAULT"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/syspssystems/fetchdefault"
)
public
ResponseEntity
<
List
<
SysPSSystemDTO
>>
fetchDefault
(
SysPSSystemSearchContext
context
)
{
Page
<
SysPSSystem
>
domains
=
syspssystemService
.
searchDefault
(
context
)
;
List
<
SysPSSystemDTO
>
list
=
syspssystemMapping
.
toDto
(
domains
.
getContent
());
return
ResponseEntity
.
status
(
HttpStatus
.
OK
)
.
header
(
"x-page"
,
String
.
valueOf
(
context
.
getPageable
().
getPageNumber
()))
.
header
(
"x-per-page"
,
String
.
valueOf
(
context
.
getPageable
().
getPageSize
()))
.
header
(
"x-total"
,
String
.
valueOf
(
domains
.
getTotalElements
()))
.
body
(
list
);
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysPSSystem-Default-all')"
)
@ApiOperation
(
value
=
"searchDEFAULT"
,
tags
=
{
"SysPSSystem"
}
,
notes
=
"searchDEFAULT"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/syspssystems/searchdefault"
)
public
ResponseEntity
<
Page
<
SysPSSystemDTO
>>
searchDefault
(
@RequestBody
SysPSSystemSearchContext
context
)
{
Page
<
SysPSSystem
>
domains
=
syspssystemService
.
searchDefault
(
context
)
;
return
ResponseEntity
.
status
(
HttpStatus
.
OK
)
.
body
(
new
PageImpl
(
syspssystemMapping
.
toDto
(
domains
.
getContent
()),
context
.
getPageable
(),
domains
.
getTotalElements
()));
}
}
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录