Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzuaa
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzuaa
提交
f4b1578b
提交
f4b1578b
编写于
5月 12, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ibizdev提交
上级
76818c67
变更
5
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
26 行增加
和
46 行删除
+26
-46
SYS_PSSYSUNIRES.java
...main/java/cn/ibizlab/core/uaa/domain/SYS_PSSYSUNIRES.java
+14
-30
SYS_PSSYSUNIRESServiceImpl.java
...lab/core/uaa/service/impl/SYS_PSSYSUNIRESServiceImpl.java
+5
-5
h2_table.xml
ibzuaa-core/src/main/resources/liquibase/h2_table.xml
+2
-6
view.xml
ibzuaa-core/src/main/resources/liquibase/view.xml
+2
-2
SYS_PSSYSUNIRESMapper.xml
...rces/mapper/uaa/sys_pssysunires/SYS_PSSYSUNIRESMapper.xml
+3
-3
未找到文件。
ibzuaa-core/src/main/java/cn/ibizlab/core/uaa/domain/SYS_PSSYSUNIRES.java
浏览文件 @
f4b1578b
...
...
@@ -37,25 +37,24 @@ public class SYS_PSSYSUNIRES extends EntityMP implements Serializable {
*/
@DEField
(
name
=
"sys_pssysuniresid"
,
isKeyField
=
true
)
@TableId
(
value
=
"sys_pssysuniresid"
,
type
=
IdType
.
UUID
)
@JSONField
(
name
=
"
sys_pssys
uniresid"
)
@JsonProperty
(
"
sys_pssys
uniresid"
)
private
String
sysPssys
uniresid
;
@JSONField
(
name
=
"uniresid"
)
@JsonProperty
(
"uniresid"
)
private
String
uniresid
;
/**
* 实体2名称
*/
@DEField
(
name
=
"sys_pssysuniresname"
)
@TableField
(
value
=
"sys_pssysuniresname"
)
@JSONField
(
name
=
"
sys_pssys
uniresname"
)
@JsonProperty
(
"
sys_pssys
uniresname"
)
private
String
sysPssys
uniresname
;
@JSONField
(
name
=
"uniresname"
)
@JsonProperty
(
"uniresname"
)
private
String
uniresname
;
/**
*
建立人
*
资源代码
*/
@DEField
(
preType
=
DEPredefinedFieldType
.
CREATEMAN
)
@TableField
(
value
=
"createman"
,
fill
=
FieldFill
.
INSERT
)
@JSONField
(
name
=
"createman"
)
@JsonProperty
(
"createman"
)
private
String
createman
;
@TableField
(
value
=
"unirescode"
)
@JSONField
(
name
=
"unirescode"
)
@JsonProperty
(
"unirescode"
)
private
String
unirescode
;
/**
* 建立时间
*/
...
...
@@ -65,14 +64,6 @@ public class SYS_PSSYSUNIRES extends EntityMP implements Serializable {
@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
;
/**
* 更新时间
*/
...
...
@@ -82,22 +73,15 @@ public class SYS_PSSYSUNIRES extends EntityMP implements Serializable {
@JSONField
(
name
=
"updatedate"
,
format
=
"yyyy-MM-dd HH:mm:ss"
)
@JsonProperty
(
"updatedate"
)
private
Timestamp
updatedate
;
/**
* 资源代码
*/
@TableField
(
value
=
"unirescode"
)
@JSONField
(
name
=
"unirescode"
)
@JsonProperty
(
"unirescode"
)
private
String
unirescode
;
/**
* 设置 [实体2名称]
*/
public
void
set
SysPssysuniresname
(
String
sysPssys
uniresname
){
this
.
sysPssysuniresname
=
sysPssys
uniresname
;
this
.
modify
(
"sys_pssysuniresname"
,
sysPssys
uniresname
);
public
void
set
Uniresname
(
String
uniresname
){
this
.
uniresname
=
uniresname
;
this
.
modify
(
"sys_pssysuniresname"
,
uniresname
);
}
/**
* 设置 [资源代码]
...
...
ibzuaa-core/src/main/java/cn/ibizlab/core/uaa/service/impl/SYS_PSSYSUNIRESServiceImpl.java
浏览文件 @
f4b1578b
...
...
@@ -50,9 +50,9 @@ public class SYS_PSSYSUNIRESServiceImpl extends ServiceImpl<SYS_PSSYSUNIRESMappe
@Override
@Transactional
public
boolean
update
(
SYS_PSSYSUNIRES
et
)
{
if
(!
update
(
et
,(
Wrapper
)
et
.
getUpdateWrapper
(
true
).
eq
(
"sys_pssysuniresid"
,
et
.
get
SysPssysu
niresid
())))
if
(!
update
(
et
,(
Wrapper
)
et
.
getUpdateWrapper
(
true
).
eq
(
"sys_pssysuniresid"
,
et
.
get
U
niresid
())))
return
false
;
CachedBeanCopier
.
copy
(
get
(
et
.
get
SysPssysu
niresid
()),
et
);
CachedBeanCopier
.
copy
(
get
(
et
.
get
U
niresid
()),
et
);
return
true
;
}
...
...
@@ -88,7 +88,7 @@ public class SYS_PSSYSUNIRESServiceImpl extends ServiceImpl<SYS_PSSYSUNIRESMappe
@Override
public
boolean
checkKey
(
SYS_PSSYSUNIRES
et
)
{
return
(!
ObjectUtils
.
isEmpty
(
et
.
get
SysPssysuniresid
()))&&(!
Objects
.
isNull
(
this
.
getById
(
et
.
getSysPssysu
niresid
())));
return
(!
ObjectUtils
.
isEmpty
(
et
.
get
Uniresid
()))&&(!
Objects
.
isNull
(
this
.
getById
(
et
.
getU
niresid
())));
}
@Override
...
...
@@ -114,7 +114,7 @@ public class SYS_PSSYSUNIRESServiceImpl extends ServiceImpl<SYS_PSSYSUNIRESMappe
SYS_PSSYSUNIRES
et
=
getById
(
key
);
if
(
et
==
null
){
et
=
new
SYS_PSSYSUNIRES
();
et
.
set
SysPssysu
niresid
(
key
);
et
.
set
U
niresid
(
key
);
}
else
{
}
...
...
@@ -126,7 +126,7 @@ public class SYS_PSSYSUNIRESServiceImpl extends ServiceImpl<SYS_PSSYSUNIRESMappe
public
boolean
create
(
SYS_PSSYSUNIRES
et
)
{
if
(!
this
.
retBool
(
this
.
baseMapper
.
insert
(
et
)))
return
false
;
CachedBeanCopier
.
copy
(
get
(
et
.
get
SysPssysu
niresid
()),
et
);
CachedBeanCopier
.
copy
(
get
(
et
.
get
U
niresid
()),
et
);
return
true
;
}
...
...
ibzuaa-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
f4b1578b
...
...
@@ -74,23 +74,19 @@
</createTable>
</changeSet>
<!--输出实体[SYS_PSSYSUNIRES]数据结构 -->
<changeSet
author=
"a_A_5d9d78509"
id=
"tab-sys_pssysunires-
78
-4"
>
<changeSet
author=
"a_A_5d9d78509"
id=
"tab-sys_pssysunires-
89
-4"
>
<createTable
tableName=
"IBZPSSYSUNIRES"
>
<column
name=
"SYS_PSSYSUNIRESID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_SYS_PSSYSUNIRES_SYS_PSSYSUN"
/>
</column>
<column
name=
"SYS_PSSYSUNIRESNAME"
remarks=
""
type=
"VARCHAR(200)"
>
</column>
<column
name=
"
CREATEMAN"
remarks=
""
type=
"VARCHAR(6
0)"
>
<column
name=
"
UNIRESCODE"
remarks=
""
type=
"VARCHAR(10
0)"
>
</column>
<column
name=
"CREATEDATE"
remarks=
""
type=
"DATETIME"
>
</column>
<column
name=
"UPDATEMAN"
remarks=
""
type=
"VARCHAR(60)"
>
</column>
<column
name=
"UPDATEDATE"
remarks=
""
type=
"DATETIME"
>
</column>
<column
name=
"UNIRESCODE"
remarks=
""
type=
"VARCHAR(100)"
>
</column>
</createTable>
</changeSet>
<!--输出实体[SYS_USER_ROLE]数据结构 -->
...
...
ibzuaa-core/src/main/resources/liquibase/view.xml
浏览文件 @
f4b1578b
<?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-
78
-1"
runOnChange=
"true"
>
<changeSet
author=
"a_A_5d9d78509"
id=
"view-sys_pssysunires-
89
-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 `IBZPSSYSUNIRES` t1 ]]>
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`
SYS_PSSYSUNIRESID`, t1.`SYS_PSSYSUNIRESNAME`, t1.`UNIRESCODE`, t1.`UPDATEDATE
` FROM `IBZPSSYSUNIRES` t1 ]]>
</createView>
</changeSet>
...
...
ibzuaa-core/src/main/resources/mapper/uaa/sys_pssysunires/SYS_PSSYSUNIRESMapper.xml
浏览文件 @
f4b1578b
...
...
@@ -10,8 +10,8 @@
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap
id=
"SYS_PSSYSUNIRESResultMap"
type=
"cn.ibizlab.core.uaa.domain.SYS_PSSYSUNIRES"
autoMapping=
"true"
>
<id
property=
"
sysPssys
uniresid"
column=
"sys_pssysuniresid"
/>
<!--主键字段映射-->
<result
property=
"
sysPssys
uniresname"
column=
"sys_pssysuniresname"
/>
<id
property=
"uniresid"
column=
"sys_pssysuniresid"
/>
<!--主键字段映射-->
<result
property=
"uniresname"
column=
"sys_pssysuniresname"
/>
</resultMap>
...
...
@@ -28,7 +28,7 @@
<!--数据查询[Default]-->
<sql
id=
"Default"
databaseId=
"mysql"
>
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`
CREATEMAN`, t1.`SYS_PSSYSUNIRESID`, t1.`SYS_PSSYSUNIRESNAME`, t1.`UNIRESCODE`, t1.`UPDATEDATE`, t1.`UPDATEMAN
` FROM `IBZPSSYSUNIRES` t1
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`
SYS_PSSYSUNIRESID`, t1.`SYS_PSSYSUNIRESNAME`, t1.`UNIRESCODE`, t1.`UPDATEDATE
` FROM `IBZPSSYSUNIRES` t1
]]>
</sql>
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录