Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzuaa
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzuaa
提交
80a7da17
提交
80a7da17
编写于
5月 09, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ibizdev提交
上级
24ba8005
变更
25
显示空白字符变更
内嵌
并排
正在显示
25 个修改的文件
包含
524 行增加
和
54 行删除
+524
-54
sys-permissionedit-view-base.vue
.../sys-permissionedit-view/sys-permissionedit-view-base.vue
+2
-2
sys-permissionedit-view2-base.vue
...ys-permissionedit-view2/sys-permissionedit-view2-base.vue
+2
-2
sys-permissiongrid-view-base.vue
.../sys-permissiongrid-view/sys-permissiongrid-view-base.vue
+2
-2
sys-role-permissionedit-view-base.vue
...permissionedit-view/sys-role-permissionedit-view-base.vue
+2
-2
sys-role-permissionedit-view2-base.vue
...rmissionedit-view2/sys-role-permissionedit-view2-base.vue
+2
-2
sys-role-permissiongrid-view-base.vue
...permissiongrid-view/sys-role-permissiongrid-view-base.vue
+2
-2
sys-roleedit-view-base.vue
...rc/pages/uaa/sys-roleedit-view/sys-roleedit-view-base.vue
+2
-2
sys-roleedit-view2-base.vue
.../pages/uaa/sys-roleedit-view2/sys-roleedit-view2-base.vue
+2
-2
sys-rolegrid-view-base.vue
...rc/pages/uaa/sys-rolegrid-view/sys-rolegrid-view-base.vue
+2
-2
sys-user-roleedit-view-base.vue
...aa/sys-user-roleedit-view/sys-user-roleedit-view-base.vue
+2
-2
sys-user-roleedit-view2-base.vue
.../sys-user-roleedit-view2/sys-user-roleedit-view2-base.vue
+2
-2
sys-user-rolegrid-view-base.vue
...aa/sys-user-rolegrid-view/sys-user-rolegrid-view-base.vue
+2
-2
sys-useredit-view-base.vue
...rc/pages/uaa/sys-useredit-view/sys-useredit-view-base.vue
+2
-2
sys-useredit-view2-base.vue
.../pages/uaa/sys-useredit-view2/sys-useredit-view2-base.vue
+2
-2
sys-usergrid-view-base.vue
...rc/pages/uaa/sys-usergrid-view/sys-usergrid-view-base.vue
+2
-2
entity-service.ts
app_web/src/service/entity-service.ts
+6
-6
http.ts
app_web/src/utils/http/http.ts
+1
-1
IBZPSSYSUNIRES.java
.../main/java/cn/ibizlab/core/uaa/domain/IBZPSSYSUNIRES.java
+100
-0
IBZPSSYSUNIRESSearchContext.java
.../ibizlab/core/uaa/filter/IBZPSSYSUNIRESSearchContext.java
+52
-0
IBZPSSYSUNIRESMapper.java
...java/cn/ibizlab/core/uaa/mapper/IBZPSSYSUNIRESMapper.java
+62
-0
IIBZPSSYSUNIRESService.java
...a/cn/ibizlab/core/uaa/service/IIBZPSSYSUNIRESService.java
+47
-0
IBZPSSYSUNIRESServiceImpl.java
...zlab/core/uaa/service/impl/IBZPSSYSUNIRESServiceImpl.java
+176
-0
h2_table.xml
ibzuaa-core/src/main/resources/liquibase/h2_table.xml
+9
-11
view.xml
ibzuaa-core/src/main/resources/liquibase/view.xml
+0
-6
IBZPSSYSUNIRESMapper.xml
...ources/mapper/uaa/ibzpssysunires/IBZPSSYSUNIRESMapper.xml
+41
-0
未找到文件。
app_web/src/pages/uaa/sys-permissionedit-view/sys-permissionedit-view-base.vue
浏览文件 @
80a7da17
...
...
@@ -1204,7 +1204,7 @@ export default class SYS_PERMISSIONEditViewBase extends Vue {
const
_this
:
any
=
this
;
if
(
_this
.
newdata
&&
_this
.
newdata
instanceof
Function
)
{
const
data
:
any
=
{};
_this
.
newdata
([{
...
data
}],
params
,
$event
,
xData
);
_this
.
newdata
([{
...
data
}],
[{
...
data
}],
params
,
$event
,
xData
);
}
else
{
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'newdata 视图处理逻辑不存在,请添加!'
});
}
...
...
@@ -1230,7 +1230,7 @@ export default class SYS_PERMISSIONEditViewBase extends Vue {
if
(
args
.
length
>
0
)
{
Object
.
assign
(
data
,
{
srfsourcekey
:
args
[
0
].
srfkey
})
}
_this
.
newdata
([{
...
data
}],
params
,
$event
,
xData
);
_this
.
newdata
([{
...
data
}],
[{
...
data
}],
params
,
$event
,
xData
);
}
else
if
(
xData
&&
xData
.
copy
instanceof
Function
)
{
const
data2
:
any
=
{};
if
(
args
.
length
>
0
)
{
...
...
app_web/src/pages/uaa/sys-permissionedit-view2/sys-permissionedit-view2-base.vue
浏览文件 @
80a7da17
...
...
@@ -1236,7 +1236,7 @@ export default class SYS_PERMISSIONEditView2Base extends Vue {
const
_this
:
any
=
this
;
if
(
_this
.
newdata
&&
_this
.
newdata
instanceof
Function
)
{
const
data
:
any
=
{};
_this
.
newdata
([{
...
data
}],
params
,
$event
,
xData
);
_this
.
newdata
([{
...
data
}],
[{
...
data
}],
params
,
$event
,
xData
);
}
else
{
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'newdata 视图处理逻辑不存在,请添加!'
});
}
...
...
@@ -1262,7 +1262,7 @@ export default class SYS_PERMISSIONEditView2Base extends Vue {
if
(
args
.
length
>
0
)
{
Object
.
assign
(
data
,
{
srfsourcekey
:
args
[
0
].
srfkey
})
}
_this
.
newdata
([{
...
data
}],
params
,
$event
,
xData
);
_this
.
newdata
([{
...
data
}],
[{
...
data
}],
params
,
$event
,
xData
);
}
else
if
(
xData
&&
xData
.
copy
instanceof
Function
)
{
const
data2
:
any
=
{};
if
(
args
.
length
>
0
)
{
...
...
app_web/src/pages/uaa/sys-permissiongrid-view/sys-permissiongrid-view-base.vue
浏览文件 @
80a7da17
...
...
@@ -1153,7 +1153,7 @@ export default class SYS_PERMISSIONGridViewBase extends Vue {
const
_this
:
any
=
this
;
if
(
_this
.
newdata
&&
_this
.
newdata
instanceof
Function
)
{
const
data
:
any
=
{};
_this
.
newdata
([{
...
data
}],
params
,
$event
,
xData
);
_this
.
newdata
([{
...
data
}],
[{
...
data
}],
params
,
$event
,
xData
);
}
else
{
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'newdata 视图处理逻辑不存在,请添加!'
});
}
...
...
@@ -1231,7 +1231,7 @@ export default class SYS_PERMISSIONGridViewBase extends Vue {
if
(
args
.
length
>
0
)
{
Object
.
assign
(
data
,
{
srfsourcekey
:
args
[
0
].
srfkey
})
}
_this
.
newdata
([{
...
data
}],
params
,
$event
,
xData
);
_this
.
newdata
([{
...
data
}],
[{
...
data
}],
params
,
$event
,
xData
);
}
else
if
(
xData
&&
xData
.
copy
instanceof
Function
)
{
const
data2
:
any
=
{};
if
(
args
.
length
>
0
)
{
...
...
app_web/src/pages/uaa/sys-role-permissionedit-view/sys-role-permissionedit-view-base.vue
浏览文件 @
80a7da17
...
...
@@ -1204,7 +1204,7 @@ export default class SYS_ROLE_PERMISSIONEditViewBase extends Vue {
const
_this
:
any
=
this
;
if
(
_this
.
newdata
&&
_this
.
newdata
instanceof
Function
)
{
const
data
:
any
=
{};
_this
.
newdata
([{
...
data
}],
params
,
$event
,
xData
);
_this
.
newdata
([{
...
data
}],
[{
...
data
}],
params
,
$event
,
xData
);
}
else
{
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'newdata 视图处理逻辑不存在,请添加!'
});
}
...
...
@@ -1230,7 +1230,7 @@ export default class SYS_ROLE_PERMISSIONEditViewBase extends Vue {
if
(
args
.
length
>
0
)
{
Object
.
assign
(
data
,
{
srfsourcekey
:
args
[
0
].
srfkey
})
}
_this
.
newdata
([{
...
data
}],
params
,
$event
,
xData
);
_this
.
newdata
([{
...
data
}],
[{
...
data
}],
params
,
$event
,
xData
);
}
else
if
(
xData
&&
xData
.
copy
instanceof
Function
)
{
const
data2
:
any
=
{};
if
(
args
.
length
>
0
)
{
...
...
app_web/src/pages/uaa/sys-role-permissionedit-view2/sys-role-permissionedit-view2-base.vue
浏览文件 @
80a7da17
...
...
@@ -1236,7 +1236,7 @@ export default class SYS_ROLE_PERMISSIONEditView2Base extends Vue {
const
_this
:
any
=
this
;
if
(
_this
.
newdata
&&
_this
.
newdata
instanceof
Function
)
{
const
data
:
any
=
{};
_this
.
newdata
([{
...
data
}],
params
,
$event
,
xData
);
_this
.
newdata
([{
...
data
}],
[{
...
data
}],
params
,
$event
,
xData
);
}
else
{
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'newdata 视图处理逻辑不存在,请添加!'
});
}
...
...
@@ -1262,7 +1262,7 @@ export default class SYS_ROLE_PERMISSIONEditView2Base extends Vue {
if
(
args
.
length
>
0
)
{
Object
.
assign
(
data
,
{
srfsourcekey
:
args
[
0
].
srfkey
})
}
_this
.
newdata
([{
...
data
}],
params
,
$event
,
xData
);
_this
.
newdata
([{
...
data
}],
[{
...
data
}],
params
,
$event
,
xData
);
}
else
if
(
xData
&&
xData
.
copy
instanceof
Function
)
{
const
data2
:
any
=
{};
if
(
args
.
length
>
0
)
{
...
...
app_web/src/pages/uaa/sys-role-permissiongrid-view/sys-role-permissiongrid-view-base.vue
浏览文件 @
80a7da17
...
...
@@ -1163,7 +1163,7 @@ export default class SYS_ROLE_PERMISSIONGridViewBase extends Vue {
const
_this
:
any
=
this
;
if
(
_this
.
newdata
&&
_this
.
newdata
instanceof
Function
)
{
const
data
:
any
=
{};
_this
.
newdata
([{
...
data
}],
params
,
$event
,
xData
);
_this
.
newdata
([{
...
data
}],
[{
...
data
}],
params
,
$event
,
xData
);
}
else
{
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'newdata 视图处理逻辑不存在,请添加!'
});
}
...
...
@@ -1241,7 +1241,7 @@ export default class SYS_ROLE_PERMISSIONGridViewBase extends Vue {
if
(
args
.
length
>
0
)
{
Object
.
assign
(
data
,
{
srfsourcekey
:
args
[
0
].
srfkey
})
}
_this
.
newdata
([{
...
data
}],
params
,
$event
,
xData
);
_this
.
newdata
([{
...
data
}],
[{
...
data
}],
params
,
$event
,
xData
);
}
else
if
(
xData
&&
xData
.
copy
instanceof
Function
)
{
const
data2
:
any
=
{};
if
(
args
.
length
>
0
)
{
...
...
app_web/src/pages/uaa/sys-roleedit-view/sys-roleedit-view-base.vue
浏览文件 @
80a7da17
...
...
@@ -1204,7 +1204,7 @@ export default class SYS_ROLEEditViewBase extends Vue {
const
_this
:
any
=
this
;
if
(
_this
.
newdata
&&
_this
.
newdata
instanceof
Function
)
{
const
data
:
any
=
{};
_this
.
newdata
([{
...
data
}],
params
,
$event
,
xData
);
_this
.
newdata
([{
...
data
}],
[{
...
data
}],
params
,
$event
,
xData
);
}
else
{
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'newdata 视图处理逻辑不存在,请添加!'
});
}
...
...
@@ -1230,7 +1230,7 @@ export default class SYS_ROLEEditViewBase extends Vue {
if
(
args
.
length
>
0
)
{
Object
.
assign
(
data
,
{
srfsourcekey
:
args
[
0
].
srfkey
})
}
_this
.
newdata
([{
...
data
}],
params
,
$event
,
xData
);
_this
.
newdata
([{
...
data
}],
[{
...
data
}],
params
,
$event
,
xData
);
}
else
if
(
xData
&&
xData
.
copy
instanceof
Function
)
{
const
data2
:
any
=
{};
if
(
args
.
length
>
0
)
{
...
...
app_web/src/pages/uaa/sys-roleedit-view2/sys-roleedit-view2-base.vue
浏览文件 @
80a7da17
...
...
@@ -1236,7 +1236,7 @@ export default class SYS_ROLEEditView2Base extends Vue {
const
_this
:
any
=
this
;
if
(
_this
.
newdata
&&
_this
.
newdata
instanceof
Function
)
{
const
data
:
any
=
{};
_this
.
newdata
([{
...
data
}],
params
,
$event
,
xData
);
_this
.
newdata
([{
...
data
}],
[{
...
data
}],
params
,
$event
,
xData
);
}
else
{
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'newdata 视图处理逻辑不存在,请添加!'
});
}
...
...
@@ -1262,7 +1262,7 @@ export default class SYS_ROLEEditView2Base extends Vue {
if
(
args
.
length
>
0
)
{
Object
.
assign
(
data
,
{
srfsourcekey
:
args
[
0
].
srfkey
})
}
_this
.
newdata
([{
...
data
}],
params
,
$event
,
xData
);
_this
.
newdata
([{
...
data
}],
[{
...
data
}],
params
,
$event
,
xData
);
}
else
if
(
xData
&&
xData
.
copy
instanceof
Function
)
{
const
data2
:
any
=
{};
if
(
args
.
length
>
0
)
{
...
...
app_web/src/pages/uaa/sys-rolegrid-view/sys-rolegrid-view-base.vue
浏览文件 @
80a7da17
...
...
@@ -1153,7 +1153,7 @@ export default class SYS_ROLEGridViewBase extends Vue {
const
_this
:
any
=
this
;
if
(
_this
.
newdata
&&
_this
.
newdata
instanceof
Function
)
{
const
data
:
any
=
{};
_this
.
newdata
([{
...
data
}],
params
,
$event
,
xData
);
_this
.
newdata
([{
...
data
}],
[{
...
data
}],
params
,
$event
,
xData
);
}
else
{
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'newdata 视图处理逻辑不存在,请添加!'
});
}
...
...
@@ -1231,7 +1231,7 @@ export default class SYS_ROLEGridViewBase extends Vue {
if
(
args
.
length
>
0
)
{
Object
.
assign
(
data
,
{
srfsourcekey
:
args
[
0
].
srfkey
})
}
_this
.
newdata
([{
...
data
}],
params
,
$event
,
xData
);
_this
.
newdata
([{
...
data
}],
[{
...
data
}],
params
,
$event
,
xData
);
}
else
if
(
xData
&&
xData
.
copy
instanceof
Function
)
{
const
data2
:
any
=
{};
if
(
args
.
length
>
0
)
{
...
...
app_web/src/pages/uaa/sys-user-roleedit-view/sys-user-roleedit-view-base.vue
浏览文件 @
80a7da17
...
...
@@ -1204,7 +1204,7 @@ export default class SYS_USER_ROLEEditViewBase extends Vue {
const
_this
:
any
=
this
;
if
(
_this
.
newdata
&&
_this
.
newdata
instanceof
Function
)
{
const
data
:
any
=
{};
_this
.
newdata
([{
...
data
}],
params
,
$event
,
xData
);
_this
.
newdata
([{
...
data
}],
[{
...
data
}],
params
,
$event
,
xData
);
}
else
{
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'newdata 视图处理逻辑不存在,请添加!'
});
}
...
...
@@ -1230,7 +1230,7 @@ export default class SYS_USER_ROLEEditViewBase extends Vue {
if
(
args
.
length
>
0
)
{
Object
.
assign
(
data
,
{
srfsourcekey
:
args
[
0
].
srfkey
})
}
_this
.
newdata
([{
...
data
}],
params
,
$event
,
xData
);
_this
.
newdata
([{
...
data
}],
[{
...
data
}],
params
,
$event
,
xData
);
}
else
if
(
xData
&&
xData
.
copy
instanceof
Function
)
{
const
data2
:
any
=
{};
if
(
args
.
length
>
0
)
{
...
...
app_web/src/pages/uaa/sys-user-roleedit-view2/sys-user-roleedit-view2-base.vue
浏览文件 @
80a7da17
...
...
@@ -1236,7 +1236,7 @@ export default class SYS_USER_ROLEEditView2Base extends Vue {
const
_this
:
any
=
this
;
if
(
_this
.
newdata
&&
_this
.
newdata
instanceof
Function
)
{
const
data
:
any
=
{};
_this
.
newdata
([{
...
data
}],
params
,
$event
,
xData
);
_this
.
newdata
([{
...
data
}],
[{
...
data
}],
params
,
$event
,
xData
);
}
else
{
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'newdata 视图处理逻辑不存在,请添加!'
});
}
...
...
@@ -1262,7 +1262,7 @@ export default class SYS_USER_ROLEEditView2Base extends Vue {
if
(
args
.
length
>
0
)
{
Object
.
assign
(
data
,
{
srfsourcekey
:
args
[
0
].
srfkey
})
}
_this
.
newdata
([{
...
data
}],
params
,
$event
,
xData
);
_this
.
newdata
([{
...
data
}],
[{
...
data
}],
params
,
$event
,
xData
);
}
else
if
(
xData
&&
xData
.
copy
instanceof
Function
)
{
const
data2
:
any
=
{};
if
(
args
.
length
>
0
)
{
...
...
app_web/src/pages/uaa/sys-user-rolegrid-view/sys-user-rolegrid-view-base.vue
浏览文件 @
80a7da17
...
...
@@ -1163,7 +1163,7 @@ export default class SYS_USER_ROLEGridViewBase extends Vue {
const
_this
:
any
=
this
;
if
(
_this
.
newdata
&&
_this
.
newdata
instanceof
Function
)
{
const
data
:
any
=
{};
_this
.
newdata
([{
...
data
}],
params
,
$event
,
xData
);
_this
.
newdata
([{
...
data
}],
[{
...
data
}],
params
,
$event
,
xData
);
}
else
{
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'newdata 视图处理逻辑不存在,请添加!'
});
}
...
...
@@ -1241,7 +1241,7 @@ export default class SYS_USER_ROLEGridViewBase extends Vue {
if
(
args
.
length
>
0
)
{
Object
.
assign
(
data
,
{
srfsourcekey
:
args
[
0
].
srfkey
})
}
_this
.
newdata
([{
...
data
}],
params
,
$event
,
xData
);
_this
.
newdata
([{
...
data
}],
[{
...
data
}],
params
,
$event
,
xData
);
}
else
if
(
xData
&&
xData
.
copy
instanceof
Function
)
{
const
data2
:
any
=
{};
if
(
args
.
length
>
0
)
{
...
...
app_web/src/pages/uaa/sys-useredit-view/sys-useredit-view-base.vue
浏览文件 @
80a7da17
...
...
@@ -1204,7 +1204,7 @@ export default class SYS_USEREditViewBase extends Vue {
const
_this
:
any
=
this
;
if
(
_this
.
newdata
&&
_this
.
newdata
instanceof
Function
)
{
const
data
:
any
=
{};
_this
.
newdata
([{
...
data
}],
params
,
$event
,
xData
);
_this
.
newdata
([{
...
data
}],
[{
...
data
}],
params
,
$event
,
xData
);
}
else
{
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'newdata 视图处理逻辑不存在,请添加!'
});
}
...
...
@@ -1230,7 +1230,7 @@ export default class SYS_USEREditViewBase extends Vue {
if
(
args
.
length
>
0
)
{
Object
.
assign
(
data
,
{
srfsourcekey
:
args
[
0
].
srfkey
})
}
_this
.
newdata
([{
...
data
}],
params
,
$event
,
xData
);
_this
.
newdata
([{
...
data
}],
[{
...
data
}],
params
,
$event
,
xData
);
}
else
if
(
xData
&&
xData
.
copy
instanceof
Function
)
{
const
data2
:
any
=
{};
if
(
args
.
length
>
0
)
{
...
...
app_web/src/pages/uaa/sys-useredit-view2/sys-useredit-view2-base.vue
浏览文件 @
80a7da17
...
...
@@ -1236,7 +1236,7 @@ export default class SYS_USEREditView2Base extends Vue {
const
_this
:
any
=
this
;
if
(
_this
.
newdata
&&
_this
.
newdata
instanceof
Function
)
{
const
data
:
any
=
{};
_this
.
newdata
([{
...
data
}],
params
,
$event
,
xData
);
_this
.
newdata
([{
...
data
}],
[{
...
data
}],
params
,
$event
,
xData
);
}
else
{
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'newdata 视图处理逻辑不存在,请添加!'
});
}
...
...
@@ -1262,7 +1262,7 @@ export default class SYS_USEREditView2Base extends Vue {
if
(
args
.
length
>
0
)
{
Object
.
assign
(
data
,
{
srfsourcekey
:
args
[
0
].
srfkey
})
}
_this
.
newdata
([{
...
data
}],
params
,
$event
,
xData
);
_this
.
newdata
([{
...
data
}],
[{
...
data
}],
params
,
$event
,
xData
);
}
else
if
(
xData
&&
xData
.
copy
instanceof
Function
)
{
const
data2
:
any
=
{};
if
(
args
.
length
>
0
)
{
...
...
app_web/src/pages/uaa/sys-usergrid-view/sys-usergrid-view-base.vue
浏览文件 @
80a7da17
...
...
@@ -1153,7 +1153,7 @@ export default class SYS_USERGridViewBase extends Vue {
const
_this
:
any
=
this
;
if
(
_this
.
newdata
&&
_this
.
newdata
instanceof
Function
)
{
const
data
:
any
=
{};
_this
.
newdata
([{
...
data
}],
params
,
$event
,
xData
);
_this
.
newdata
([{
...
data
}],
[{
...
data
}],
params
,
$event
,
xData
);
}
else
{
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'newdata 视图处理逻辑不存在,请添加!'
});
}
...
...
@@ -1231,7 +1231,7 @@ export default class SYS_USERGridViewBase extends Vue {
if
(
args
.
length
>
0
)
{
Object
.
assign
(
data
,
{
srfsourcekey
:
args
[
0
].
srfkey
})
}
_this
.
newdata
([{
...
data
}],
params
,
$event
,
xData
);
_this
.
newdata
([{
...
data
}],
[{
...
data
}],
params
,
$event
,
xData
);
}
else
if
(
xData
&&
xData
.
copy
instanceof
Function
)
{
const
data2
:
any
=
{};
if
(
args
.
length
>
0
)
{
...
...
app_web/src/service/entity-service.ts
浏览文件 @
80a7da17
...
...
@@ -587,12 +587,12 @@ export default class EntityService {
* createBatch接口方法
*
* @param {*} [context={}]
* @param {*} [data
={}
]
* @param {*} [data]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof EntityService
*/
public
async
createBatch
(
context
:
any
=
{},
data
:
any
=
{}
,
isloading
?:
boolean
):
Promise
<
any
>
{
public
async
createBatch
(
context
:
any
=
{},
data
:
any
,
isloading
?:
boolean
):
Promise
<
any
>
{
return
Http
.
getInstance
().
post
(
`/
${
this
.
APPDENAME
}
/batch`
,
data
,
isloading
);
}
...
...
@@ -600,12 +600,12 @@ export default class EntityService {
* updateBatch接口方法
*
* @param {*} [context={}]
* @param {*} [data
={}
]
* @param {*} [data]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof EntityService
*/
public
async
updateBatch
(
context
:
any
=
{},
data
:
any
=
{}
,
isloading
?:
boolean
):
Promise
<
any
>
{
public
async
updateBatch
(
context
:
any
=
{},
data
:
any
,
isloading
?:
boolean
):
Promise
<
any
>
{
return
Http
.
getInstance
().
put
(
`/
${
this
.
APPDENAME
}
/batch`
,
data
,
isloading
);
}
...
...
@@ -613,12 +613,12 @@ export default class EntityService {
* removeBatch接口方法
*
* @param {*} [context={}]
* @param {*} [data
={}
]
* @param {*} [data]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof EntityService
*/
public
async
removeBatch
(
context
:
any
=
{},
data
:
any
=
{}
,
isloading
?:
boolean
):
Promise
<
any
>
{
public
async
removeBatch
(
context
:
any
=
{},
data
:
any
,
isloading
?:
boolean
):
Promise
<
any
>
{
return
Http
.
getInstance
().
delete
(
`/
${
this
.
APPDENAME
}
/batch`
,
isloading
,
data
);
}
...
...
app_web/src/utils/http/http.ts
浏览文件 @
80a7da17
...
...
@@ -78,7 +78,7 @@ export class Http {
axios
({
method
:
'post'
,
url
:
url
,
data
:
{
...
params
}
,
data
:
params
,
headers
:
{
'Content-Type'
:
'application/json;charset=UTF-8'
,
'Accept'
:
'application/json'
},
// transformResponse: [(data: any) => {
// let _data: any = null;
...
...
ibzuaa-core/src/main/java/cn/ibizlab/core/uaa/domain/IBZPSSYSUNIRES.java
0 → 100644
浏览文件 @
80a7da17
package
cn
.
ibizlab
.
core
.
uaa
.
domain
;
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
java.math.BigDecimal
;
import
com.alibaba.fastjson.annotation.JSONField
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
cn.ibizlab.util.domain.EntityBase
;
import
cn.ibizlab.util.annotation.DEField
;
import
cn.ibizlab.util.enums.DEPredefinedFieldType
;
import
cn.ibizlab.util.enums.DEFieldDefaultValueType
;
import
java.io.Serializable
;
import
lombok.Data
;
import
org.springframework.data.annotation.Transient
;
import
com.baomidou.mybatisplus.annotation.*
;
import
cn.ibizlab.util.domain.EntityMP
;
/**
* 实体[统一资源]
*/
@Data
@TableName
(
value
=
"IBZPSSYSUNIRES"
,
resultMap
=
"IBZPSSYSUNIRESResultMap"
)
public
class
IBZPSSYSUNIRES
extends
EntityMP
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 统一资源标识
*/
@DEField
(
isKeyField
=
true
)
@TableId
(
value
=
"ibzpssysuniresid"
,
type
=
IdType
.
UUID
)
@JSONField
(
name
=
"ibzpssysuniresid"
)
@JsonProperty
(
"ibzpssysuniresid"
)
private
String
ibzpssysuniresid
;
/**
* 建立人
*/
@DEField
(
preType
=
DEPredefinedFieldType
.
CREATEMAN
)
@TableField
(
value
=
"createman"
,
fill
=
FieldFill
.
INSERT
)
@JSONField
(
name
=
"createman"
)
@JsonProperty
(
"createman"
)
private
String
createman
;
/**
* 统一资源名称
*/
@TableField
(
value
=
"ibzpssysuniresname"
)
@JSONField
(
name
=
"ibzpssysuniresname"
)
@JsonProperty
(
"ibzpssysuniresname"
)
private
String
ibzpssysuniresname
;
/**
* 建立时间
*/
@DEField
(
preType
=
DEPredefinedFieldType
.
CREATEDATE
)
@TableField
(
value
=
"createdate"
,
fill
=
FieldFill
.
INSERT
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
locale
=
"zh"
,
timezone
=
"GMT+8"
)
@JSONField
(
name
=
"createdate"
,
format
=
"yyyy-MM-dd HH:mm:ss"
)
@JsonProperty
(
"createdate"
)
private
Timestamp
createdate
;
/**
* 更新人
*/
@DEField
(
preType
=
DEPredefinedFieldType
.
UPDATEMAN
)
@TableField
(
value
=
"updateman"
)
@JSONField
(
name
=
"updateman"
)
@JsonProperty
(
"updateman"
)
private
String
updateman
;
/**
* 更新时间
*/
@DEField
(
preType
=
DEPredefinedFieldType
.
UPDATEDATE
)
@TableField
(
value
=
"updatedate"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
locale
=
"zh"
,
timezone
=
"GMT+8"
)
@JSONField
(
name
=
"updatedate"
,
format
=
"yyyy-MM-dd HH:mm:ss"
)
@JsonProperty
(
"updatedate"
)
private
Timestamp
updatedate
;
/**
* 设置 [统一资源名称]
*/
public
void
setIbzpssysuniresname
(
String
ibzpssysuniresname
){
this
.
ibzpssysuniresname
=
ibzpssysuniresname
;
this
.
modify
(
"ibzpssysuniresname"
,
ibzpssysuniresname
);
}
}
ibzuaa-core/src/main/java/cn/ibizlab/core/uaa/filter/IBZPSSYSUNIRESSearchContext.java
0 → 100644
浏览文件 @
80a7da17
package
cn
.
ibizlab
.
core
.
uaa
.
filter
;
import
java.math.BigDecimal
;
import
java.math.BigInteger
;
import
java.sql.Timestamp
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.HashMap
;
import
lombok.Data
;
import
lombok.extern.slf4j.Slf4j
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.alibaba.fastjson.annotation.JSONField
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.StringUtils
;
import
cn.ibizlab.util.filter.QueryWrapperContext
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
cn.ibizlab.core.uaa.domain.IBZPSSYSUNIRES
;
/**
* 关系型数据实体[IBZPSSYSUNIRES] 查询条件对象
*/
@Slf4j
@Data
public
class
IBZPSSYSUNIRESSearchContext
extends
QueryWrapperContext
<
IBZPSSYSUNIRES
>
{
private
String
n_ibzpssysuniresname_like
;
//[统一资源名称]
public
void
setN_ibzpssysuniresname_like
(
String
n_ibzpssysuniresname_like
)
{
this
.
n_ibzpssysuniresname_like
=
n_ibzpssysuniresname_like
;
if
(!
ObjectUtils
.
isEmpty
(
this
.
n_ibzpssysuniresname_like
)){
this
.
getSelectCond
().
like
(
"ibzpssysuniresname"
,
n_ibzpssysuniresname_like
);
}
}
/**
* 启用快速搜索
*/
public
void
setQuery
(
String
query
)
{
this
.
query
=
query
;
if
(!
StringUtils
.
isEmpty
(
query
)){
this
.
getSelectCond
().
or
().
like
(
"ibzpssysuniresname"
,
query
);
}
}
}
ibzuaa-core/src/main/java/cn/ibizlab/core/uaa/mapper/IBZPSSYSUNIRESMapper.java
0 → 100644
浏览文件 @
80a7da17
package
cn
.
ibizlab
.
core
.
uaa
.
mapper
;
import
java.util.List
;
import
org.apache.ibatis.annotations.*
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.conditions.Wrapper
;
import
java.util.HashMap
;
import
org.apache.ibatis.annotations.Select
;
import
cn.ibizlab.core.uaa.domain.IBZPSSYSUNIRES
;
import
cn.ibizlab.core.uaa.filter.IBZPSSYSUNIRESSearchContext
;
import
org.springframework.cache.annotation.CacheEvict
;
import
org.springframework.cache.annotation.Cacheable
;
import
java.io.Serializable
;
import
com.baomidou.mybatisplus.core.toolkit.Constants
;
import
com.alibaba.fastjson.JSONObject
;
public
interface
IBZPSSYSUNIRESMapper
extends
BaseMapper
<
IBZPSSYSUNIRES
>{
Page
<
IBZPSSYSUNIRES
>
searchDefault
(
IPage
page
,
@Param
(
"srf"
)
IBZPSSYSUNIRESSearchContext
context
,
@Param
(
"ew"
)
Wrapper
<
IBZPSSYSUNIRES
>
wrapper
)
;
@Override
IBZPSSYSUNIRES
selectById
(
Serializable
id
);
@Override
int
insert
(
IBZPSSYSUNIRES
entity
);
@Override
int
updateById
(
@Param
(
Constants
.
ENTITY
)
IBZPSSYSUNIRES
entity
);
@Override
int
deleteById
(
Serializable
id
);
/**
* 自定义查询SQL
* @param sql
* @return
*/
@Select
(
"${sql}"
)
List
<
JSONObject
>
selectBySQL
(
@Param
(
"sql"
)
String
sql
);
/**
* 自定义更新SQL
* @param sql
* @return
*/
@Update
(
"${sql}"
)
boolean
updateBySQL
(
@Param
(
"sql"
)
String
sql
);
/**
* 自定义插入SQL
* @param sql
* @return
*/
@Insert
(
"${sql}"
)
boolean
insertBySQL
(
@Param
(
"sql"
)
String
sql
);
/**
* 自定义删除SQL
* @param sql
* @return
*/
@Delete
(
"${sql}"
)
boolean
deleteBySQL
(
@Param
(
"sql"
)
String
sql
);
}
ibzuaa-core/src/main/java/cn/ibizlab/core/uaa/service/IIBZPSSYSUNIRESService.java
0 → 100644
浏览文件 @
80a7da17
package
cn
.
ibizlab
.
core
.
uaa
.
service
;
import
java.io.Serializable
;
import
java.sql.Timestamp
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.HashMap
;
import
java.util.Collection
;
import
java.math.BigInteger
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Pageable
;
import
com.alibaba.fastjson.JSONObject
;
import
cn.ibizlab.core.uaa.domain.IBZPSSYSUNIRES
;
import
cn.ibizlab.core.uaa.filter.IBZPSSYSUNIRESSearchContext
;
import
com.baomidou.mybatisplus.extension.service.IService
;
/**
* 实体[IBZPSSYSUNIRES] 服务对象接口
*/
public
interface
IIBZPSSYSUNIRESService
extends
IService
<
IBZPSSYSUNIRES
>{
boolean
save
(
IBZPSSYSUNIRES
et
)
;
void
saveBatch
(
List
<
IBZPSSYSUNIRES
>
list
)
;
boolean
update
(
IBZPSSYSUNIRES
et
)
;
void
updateBatch
(
List
<
IBZPSSYSUNIRES
>
list
)
;
boolean
checkKey
(
IBZPSSYSUNIRES
et
)
;
IBZPSSYSUNIRES
get
(
String
key
)
;
boolean
create
(
IBZPSSYSUNIRES
et
)
;
void
createBatch
(
List
<
IBZPSSYSUNIRES
>
list
)
;
boolean
remove
(
String
key
)
;
void
removeBatch
(
Collection
<
String
>
idList
)
;
IBZPSSYSUNIRES
getDraft
(
IBZPSSYSUNIRES
et
)
;
Page
<
IBZPSSYSUNIRES
>
searchDefault
(
IBZPSSYSUNIRESSearchContext
context
)
;
List
<
JSONObject
>
select
(
String
sql
);
boolean
execute
(
String
sql
);
}
ibzuaa-core/src/main/java/cn/ibizlab/core/uaa/service/impl/IBZPSSYSUNIRESServiceImpl.java
0 → 100644
浏览文件 @
80a7da17
package
cn
.
ibizlab
.
core
.
uaa
.
service
.
impl
;
import
java.io.Serializable
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Set
;
import
java.util.HashSet
;
import
java.util.HashMap
;
import
java.util.Collection
;
import
java.util.Objects
;
import
java.util.Optional
;
import
java.math.BigInteger
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.cglib.beans.BeanCopier
;
import
org.springframework.stereotype.Service
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.PageImpl
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.context.annotation.Lazy
;
import
cn.ibizlab.core.uaa.domain.IBZPSSYSUNIRES
;
import
cn.ibizlab.core.uaa.filter.IBZPSSYSUNIRESSearchContext
;
import
cn.ibizlab.core.uaa.service.IIBZPSSYSUNIRESService
;
import
cn.ibizlab.util.helper.CachedBeanCopier
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
cn.ibizlab.core.uaa.mapper.IBZPSSYSUNIRESMapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.Wrapper
;
import
com.alibaba.fastjson.JSONObject
;
import
org.springframework.util.StringUtils
;
/**
* 实体[统一资源] 服务对象接口实现
*/
@Slf4j
@Service
(
"IBZPSSYSUNIRESServiceImpl"
)
public
class
IBZPSSYSUNIRESServiceImpl
extends
ServiceImpl
<
IBZPSSYSUNIRESMapper
,
IBZPSSYSUNIRES
>
implements
IIBZPSSYSUNIRESService
{
private
int
batchSize
=
500
;
@Override
@Transactional
public
boolean
save
(
IBZPSSYSUNIRES
et
)
{
if
(!
saveOrUpdate
(
et
))
return
false
;
return
true
;
}
@Override
@Transactional
(
rollbackFor
=
{
Exception
.
class
}
)
public
boolean
saveOrUpdate
(
IBZPSSYSUNIRES
et
)
{
if
(
null
==
et
)
{
return
false
;
}
else
{
return
checkKey
(
et
)
?
this
.
update
(
et
)
:
this
.
create
(
et
);
}
}
@Override
public
void
saveBatch
(
List
<
IBZPSSYSUNIRES
>
list
)
{
saveOrUpdateBatch
(
list
,
batchSize
);
}
@Override
@Transactional
public
boolean
update
(
IBZPSSYSUNIRES
et
)
{
if
(!
update
(
et
,(
Wrapper
)
et
.
getUpdateWrapper
(
true
).
eq
(
"ibzpssysuniresid"
,
et
.
getIbzpssysuniresid
())))
return
false
;
CachedBeanCopier
.
copy
(
get
(
et
.
getIbzpssysuniresid
()),
et
);
return
true
;
}
@Override
public
void
updateBatch
(
List
<
IBZPSSYSUNIRES
>
list
)
{
updateBatchById
(
list
,
batchSize
);
}
@Override
public
boolean
checkKey
(
IBZPSSYSUNIRES
et
)
{
return
(!
ObjectUtils
.
isEmpty
(
et
.
getIbzpssysuniresid
()))&&(!
Objects
.
isNull
(
this
.
getById
(
et
.
getIbzpssysuniresid
())));
}
@Override
@Transactional
public
IBZPSSYSUNIRES
get
(
String
key
)
{
IBZPSSYSUNIRES
et
=
getById
(
key
);
if
(
et
==
null
){
et
=
new
IBZPSSYSUNIRES
();
et
.
setIbzpssysuniresid
(
key
);
}
else
{
}
return
et
;
}
@Override
@Transactional
public
boolean
create
(
IBZPSSYSUNIRES
et
)
{
if
(!
this
.
retBool
(
this
.
baseMapper
.
insert
(
et
)))
return
false
;
CachedBeanCopier
.
copy
(
get
(
et
.
getIbzpssysuniresid
()),
et
);
return
true
;
}
@Override
public
void
createBatch
(
List
<
IBZPSSYSUNIRES
>
list
)
{
saveBatch
(
list
,
batchSize
);
}
@Override
@Transactional
public
boolean
remove
(
String
key
)
{
if
(!
removeById
(
key
))
return
false
;
return
true
;
}
@Override
public
void
removeBatch
(
Collection
<
String
>
idList
)
{
removeByIds
(
idList
);
}
@Override
public
IBZPSSYSUNIRES
getDraft
(
IBZPSSYSUNIRES
et
)
{
return
et
;
}
/**
* 查询集合 DEFAULT
*/
@Override
public
Page
<
IBZPSSYSUNIRES
>
searchDefault
(
IBZPSSYSUNIRESSearchContext
context
)
{
com
.
baomidou
.
mybatisplus
.
extension
.
plugins
.
pagination
.
Page
<
IBZPSSYSUNIRES
>
pages
=
baseMapper
.
searchDefault
(
context
.
getPages
(),
context
,
context
.
getSelectCond
());
return
new
PageImpl
<
IBZPSSYSUNIRES
>(
pages
.
getRecords
(),
context
.
getPageable
(),
pages
.
getTotal
());
}
@Override
public
List
<
JSONObject
>
select
(
String
sql
){
return
this
.
baseMapper
.
selectBySQL
(
sql
);
}
@Override
@Transactional
public
boolean
execute
(
String
sql
){
if
(
sql
==
null
||
sql
.
isEmpty
())
{
return
false
;
}
if
(
sql
.
toLowerCase
().
trim
().
startsWith
(
"insert"
))
{
return
this
.
baseMapper
.
insertBySQL
(
sql
);
}
if
(
sql
.
toLowerCase
().
trim
().
startsWith
(
"update"
))
{
return
this
.
baseMapper
.
updateBySQL
(
sql
);
}
if
(
sql
.
toLowerCase
().
trim
().
startsWith
(
"delete"
))
{
return
this
.
baseMapper
.
deleteBySQL
(
sql
);
}
log
.
warn
(
"暂未支持的SQL语法"
);
return
true
;
}
}
ibzuaa-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
80a7da17
...
...
@@ -73,13 +73,15 @@
</column>
</createTable>
</changeSet>
<!--输出实体[
SYS_
PSSYSUNIRES]数据结构 -->
<changeSet
author=
"a_A_5d9d78509"
id=
"tab-
sys_pssysunires-79
-4"
>
<createTable
tableName=
"
T_SYS_
PSSYSUNIRES"
>
<column
name=
"
SYS_
PSSYSUNIRESID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_
SYS_PSSYSUNIRES_SYS_PSSYSUN
"
/>
<!--输出实体[
IBZ
PSSYSUNIRES]数据结构 -->
<changeSet
author=
"a_A_5d9d78509"
id=
"tab-
ibzpssysunires-52
-4"
>
<createTable
tableName=
"
IBZ
PSSYSUNIRES"
>
<column
name=
"
IBZ
PSSYSUNIRESID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_
IBZPSSYSUNIRES_IBZPSSYSUNIR
"
/>
</column>
<column
name=
"SYS_PSSYSUNIRESNAME"
remarks=
""
type=
"VARCHAR(200)"
>
<column
name=
"CREATEMAN"
remarks=
""
type=
"VARCHAR(60)"
>
</column>
<column
name=
"IBZPSSYSUNIRESNAME"
remarks=
""
type=
"VARCHAR(200)"
>
</column>
<column
name=
"CREATEDATE"
remarks=
""
type=
"DATETIME"
>
</column>
...
...
@@ -87,10 +89,6 @@
</column>
<column
name=
"UPDATEDATE"
remarks=
""
type=
"DATETIME"
>
</column>
<column
name=
"CREATEMAN"
remarks=
""
type=
"VARCHAR(60)"
>
</column>
<column
name=
"UNIRESCODE"
remarks=
""
type=
"VARCHAR(100)"
>
</column>
</createTable>
</changeSet>
<!--输出实体[SYS_USER_ROLE]数据结构 -->
...
...
@@ -198,7 +196,7 @@
<addForeignKeyConstraint
baseColumnNames=
"SYS_PERMISSIONID"
baseTableName=
"IBZROLE_PERMISSION"
constraintName=
"DER1N_SYS_ROLE_PERMISSION_SYS_"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"SYS_PERMISSIONID"
referencedTableName=
"IBZPERMISSION"
validate=
"true"
/>
</changeSet>
<!--输出实体[SYS_USER]外键关系 -->
<!--输出实体[
SYS_
PSSYSUNIRES]外键关系 -->
<!--输出实体[
IBZ
PSSYSUNIRES]外键关系 -->
<!--输出实体[SYS_USER_ROLE]外键关系 -->
<changeSet
author=
"a_A_5d9d78509"
id=
"fk-sys_user_role-33-12"
>
<addForeignKeyConstraint
baseColumnNames=
"SYS_ROLEID"
baseTableName=
"IBZUSER_ROLE"
constraintName=
"DER1N_SYS_USER_ROLE_SYS_ROLE_S"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"SYS_ROLEID"
referencedTableName=
"IBZROLE"
validate=
"true"
/>
...
...
ibzuaa-core/src/main/resources/liquibase/view.xml
浏览文件 @
80a7da17
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog
xmlns=
"http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext=
"http://www.liquibase.org/xml/ns/dbchangelog-ext"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd"
>
<!--输出实体[SYS_PSSYSUNIRES]视图结构信息 runOnChange="true" 当视图发生变更时,通过liquibase强刷prod的视图,实现视图的同步-->
<changeSet
author=
"a_A_5d9d78509"
id=
"view-sys_pssysunires-79-1"
runOnChange=
"true"
>
<createView
fullDefinition=
"false"
replaceIfExists=
"true"
viewName=
"V_SYS_PSSYSUNIRES"
>
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`SYS_PSSYSUNIRESID`, t1.`SYS_PSSYSUNIRESNAME`, t1.`UNIRESCODE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_SYS_PSSYSUNIRES` t1 ]]>
</createView>
</changeSet>
</databaseChangeLog>
ibzuaa-core/src/main/resources/mapper/uaa/ibzpssysunires/IBZPSSYSUNIRESMapper.xml
0 → 100644
浏览文件 @
80a7da17
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"cn.ibizlab.core.uaa.mapper.IBZPSSYSUNIRESMapper"
>
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select
id=
"selectById"
resultMap=
"IBZPSSYSUNIRESResultMap"
databaseId=
"mysql"
>
<![CDATA[select t1.* from (SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`IBZPSSYSUNIRESID`, t1.`IBZPSSYSUNIRESNAME`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `IBZPSSYSUNIRES` t1 ) t1 where ibzpssysuniresid=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap
id=
"IBZPSSYSUNIRESResultMap"
type=
"cn.ibizlab.core.uaa.domain.IBZPSSYSUNIRES"
autoMapping=
"true"
>
<id
property=
"ibzpssysuniresid"
column=
"ibzpssysuniresid"
/>
<!--主键字段映射-->
</resultMap>
<!--数据集合[Default]-->
<select
id=
"searchDefault"
parameterType=
"cn.ibizlab.core.uaa.filter.IBZPSSYSUNIRESSearchContext"
resultMap=
"IBZPSSYSUNIRESResultMap"
>
select t1.* from (
<include
refid=
"Default"
/>
)t1
<where><if
test=
"ew!=null and ew.sqlSegment!=null and !ew.emptyOfWhere"
>
${ew.sqlSegment}
</if></where>
<if
test=
"ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere"
>
${ew.sqlSegment}
</if>
</select>
<!--数据查询[Default]-->
<sql
id=
"Default"
databaseId=
"mysql"
>
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`IBZPSSYSUNIRESID`, t1.`IBZPSSYSUNIRESNAME`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `IBZPSSYSUNIRES` t1
]]>
</sql>
<!--数据查询[View]-->
<sql
id=
"View"
databaseId=
"mysql"
>
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`IBZPSSYSUNIRESID`, t1.`IBZPSSYSUNIRESNAME`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `IBZPSSYSUNIRES` t1
]]>
</sql>
</mapper>
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录