Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzuaa
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzuaa
提交
83995ef7
提交
83995ef7
编写于
5月 09, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ibizdev提交
上级
7610e90f
变更
7
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
67 行增加
和
61 行删除
+67
-61
SYS_PSSYSUNIRES.java
...main/java/cn/ibizlab/core/uaa/domain/SYS_PSSYSUNIRES.java
+13
-13
SYS_PSSYSUNIRESSearchContext.java
...ibizlab/core/uaa/filter/SYS_PSSYSUNIRESSearchContext.java
+1
-1
ISYS_PSSYSUNIRESService.java
.../cn/ibizlab/core/uaa/service/ISYS_PSSYSUNIRESService.java
+6
-6
SYS_PSSYSUNIRESServiceImpl.java
...lab/core/uaa/service/impl/SYS_PSSYSUNIRESServiceImpl.java
+33
-33
h2_table.xml
ibzuaa-core/src/main/resources/liquibase/h2_table.xml
+7
-7
view.xml
ibzuaa-core/src/main/resources/liquibase/view.xml
+6
-0
SYS_PSSYSUNIRESMapper.xml
...rces/mapper/uaa/sys_pssysunires/SYS_PSSYSUNIRESMapper.xml
+1
-1
未找到文件。
ibzuaa-core/src/main/java/cn/ibizlab/core/uaa/domain/SYS_PSSYSUNIRES.java
浏览文件 @
83995ef7
...
...
@@ -24,16 +24,16 @@ import com.baomidou.mybatisplus.annotation.*;
import
cn.ibizlab.util.domain.EntityMP
;
/**
* 实体[
统一资源
]
* 实体[
实体2
]
*/
@Data
@TableName
(
value
=
"
T_SYS_
PSSYSUNIRES"
,
resultMap
=
"SYS_PSSYSUNIRESResultMap"
)
@TableName
(
value
=
"
IBZ
PSSYSUNIRES"
,
resultMap
=
"SYS_PSSYSUNIRESResultMap"
)
public
class
SYS_PSSYSUNIRES
extends
EntityMP
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
*
统一资源
标识
*
实体2
标识
*/
@DEField
(
name
=
"sys_pssysuniresid"
,
isKeyField
=
true
)
@TableId
(
value
=
"sys_pssysuniresid"
,
type
=
IdType
.
UUID
)
...
...
@@ -41,13 +41,21 @@ public class SYS_PSSYSUNIRES extends EntityMP implements Serializable {
@JsonProperty
(
"sys_pssysuniresid"
)
private
String
sysPssysuniresid
;
/**
*
统一资源
名称
*
实体2
名称
*/
@DEField
(
name
=
"sys_pssysuniresname"
)
@TableField
(
value
=
"sys_pssysuniresname"
)
@JSONField
(
name
=
"sys_pssysuniresname"
)
@JsonProperty
(
"sys_pssysuniresname"
)
private
String
sysPssysuniresname
;
/**
* 建立人
*/
@DEField
(
preType
=
DEPredefinedFieldType
.
CREATEMAN
)
@TableField
(
value
=
"createman"
,
fill
=
FieldFill
.
INSERT
)
@JSONField
(
name
=
"createman"
)
@JsonProperty
(
"createman"
)
private
String
createman
;
/**
* 建立时间
*/
...
...
@@ -74,14 +82,6 @@ public class SYS_PSSYSUNIRES extends EntityMP implements Serializable {
@JSONField
(
name
=
"updatedate"
,
format
=
"yyyy-MM-dd HH:mm:ss"
)
@JsonProperty
(
"updatedate"
)
private
Timestamp
updatedate
;
/**
* 建立人
*/
@DEField
(
preType
=
DEPredefinedFieldType
.
CREATEMAN
)
@TableField
(
value
=
"createman"
,
fill
=
FieldFill
.
INSERT
)
@JSONField
(
name
=
"createman"
)
@JsonProperty
(
"createman"
)
private
String
createman
;
/**
* 资源代码
*/
...
...
@@ -93,7 +93,7 @@ public class SYS_PSSYSUNIRES extends EntityMP implements Serializable {
/**
* 设置 [
统一资源
名称]
* 设置 [
实体2
名称]
*/
public
void
setSysPssysuniresname
(
String
sysPssysuniresname
){
this
.
sysPssysuniresname
=
sysPssysuniresname
;
...
...
ibzuaa-core/src/main/java/cn/ibizlab/core/uaa/filter/SYS_PSSYSUNIRESSearchContext.java
浏览文件 @
83995ef7
...
...
@@ -27,7 +27,7 @@ import cn.ibizlab.core.uaa.domain.SYS_PSSYSUNIRES;
@Data
public
class
SYS_PSSYSUNIRESSearchContext
extends
QueryWrapperContext
<
SYS_PSSYSUNIRES
>
{
private
String
n_sys_pssysuniresname_like
;
//[
统一资源
名称]
private
String
n_sys_pssysuniresname_like
;
//[
实体2
名称]
public
void
setN_sys_pssysuniresname_like
(
String
n_sys_pssysuniresname_like
)
{
this
.
n_sys_pssysuniresname_like
=
n_sys_pssysuniresname_like
;
if
(!
ObjectUtils
.
isEmpty
(
this
.
n_sys_pssysuniresname_like
)){
...
...
ibzuaa-core/src/main/java/cn/ibizlab/core/uaa/service/ISYS_PSSYSUNIRESService.java
浏览文件 @
83995ef7
...
...
@@ -24,17 +24,17 @@ import com.baomidou.mybatisplus.extension.service.IService;
*/
public
interface
ISYS_PSSYSUNIRESService
extends
IService
<
SYS_PSSYSUNIRES
>{
SYS_PSSYSUNIRES
get
(
String
key
)
;
boolean
update
(
SYS_PSSYSUNIRES
et
)
;
void
updateBatch
(
List
<
SYS_PSSYSUNIRES
>
list
)
;
boolean
save
(
SYS_PSSYSUNIRES
et
)
;
void
saveBatch
(
List
<
SYS_PSSYSUNIRES
>
list
)
;
boolean
create
(
SYS_PSSYSUNIRES
et
)
;
void
createBatch
(
List
<
SYS_PSSYSUNIRES
>
list
)
;
SYS_PSSYSUNIRES
getDraft
(
SYS_PSSYSUNIRES
et
)
;
boolean
checkKey
(
SYS_PSSYSUNIRES
et
)
;
boolean
remove
(
String
key
)
;
void
removeBatch
(
Collection
<
String
>
idList
)
;
boolean
update
(
SYS_PSSYSUNIRES
et
)
;
void
updateBatch
(
List
<
SYS_PSSYSUNIRES
>
list
)
;
SYS_PSSYSUNIRES
getDraft
(
SYS_PSSYSUNIRES
et
)
;
SYS_PSSYSUNIRES
get
(
String
key
)
;
boolean
create
(
SYS_PSSYSUNIRES
et
)
;
void
createBatch
(
List
<
SYS_PSSYSUNIRES
>
list
)
;
Page
<
SYS_PSSYSUNIRES
>
searchDefault
(
SYS_PSSYSUNIRESSearchContext
context
)
;
...
...
ibzuaa-core/src/main/java/cn/ibizlab/core/uaa/service/impl/SYS_PSSYSUNIRESServiceImpl.java
浏览文件 @
83995ef7
...
...
@@ -38,7 +38,7 @@ import com.alibaba.fastjson.JSONObject;
import
org.springframework.util.StringUtils
;
/**
* 实体[
统一资源
] 服务对象接口实现
* 实体[
实体2
] 服务对象接口实现
*/
@Slf4j
@Service
(
"SYS_PSSYSUNIRESServiceImpl"
)
...
...
@@ -48,15 +48,16 @@ public class SYS_PSSYSUNIRESServiceImpl extends ServiceImpl<SYS_PSSYSUNIRESMappe
@Override
@Transactional
public
SYS_PSSYSUNIRES
get
(
String
key
)
{
SYS_PSSYSUNIRES
et
=
getById
(
key
);
if
(
et
==
null
){
et
=
new
SYS_PSSYSUNIRES
();
et
.
setSysPssysuniresid
(
key
);
}
else
{
}
return
et
;
public
boolean
update
(
SYS_PSSYSUNIRES
et
)
{
if
(!
update
(
et
,(
Wrapper
)
et
.
getUpdateWrapper
(
true
).
eq
(
"sys_pssysuniresid"
,
et
.
getSysPssysuniresid
())))
return
false
;
CachedBeanCopier
.
copy
(
get
(
et
.
getSysPssysuniresid
()),
et
);
return
true
;
}
@Override
public
void
updateBatch
(
List
<
SYS_PSSYSUNIRES
>
list
)
{
updateBatchById
(
list
,
batchSize
);
}
@Override
...
...
@@ -84,25 +85,6 @@ public class SYS_PSSYSUNIRESServiceImpl extends ServiceImpl<SYS_PSSYSUNIRESMappe
saveOrUpdateBatch
(
list
,
batchSize
);
}
@Override
@Transactional
public
boolean
create
(
SYS_PSSYSUNIRES
et
)
{
if
(!
this
.
retBool
(
this
.
baseMapper
.
insert
(
et
)))
return
false
;
CachedBeanCopier
.
copy
(
get
(
et
.
getSysPssysuniresid
()),
et
);
return
true
;
}
@Override
public
void
createBatch
(
List
<
SYS_PSSYSUNIRES
>
list
)
{
saveBatch
(
list
,
batchSize
);
}
@Override
public
SYS_PSSYSUNIRES
getDraft
(
SYS_PSSYSUNIRES
et
)
{
return
et
;
}
@Override
public
boolean
checkKey
(
SYS_PSSYSUNIRES
et
)
{
return
(!
ObjectUtils
.
isEmpty
(
et
.
getSysPssysuniresid
()))&&(!
Objects
.
isNull
(
this
.
getById
(
et
.
getSysPssysuniresid
())));
...
...
@@ -120,18 +102,36 @@ public class SYS_PSSYSUNIRESServiceImpl extends ServiceImpl<SYS_PSSYSUNIRESMappe
removeByIds
(
idList
);
}
@Override
public
SYS_PSSYSUNIRES
getDraft
(
SYS_PSSYSUNIRES
et
)
{
return
et
;
}
@Override
@Transactional
public
boolean
update
(
SYS_PSSYSUNIRES
et
)
{
if
(!
update
(
et
,(
Wrapper
)
et
.
getUpdateWrapper
(
true
).
eq
(
"sys_pssysuniresid"
,
et
.
getSysPssysuniresid
())))
public
SYS_PSSYSUNIRES
get
(
String
key
)
{
SYS_PSSYSUNIRES
et
=
getById
(
key
);
if
(
et
==
null
){
et
=
new
SYS_PSSYSUNIRES
();
et
.
setSysPssysuniresid
(
key
);
}
else
{
}
return
et
;
}
@Override
@Transactional
public
boolean
create
(
SYS_PSSYSUNIRES
et
)
{
if
(!
this
.
retBool
(
this
.
baseMapper
.
insert
(
et
)))
return
false
;
CachedBeanCopier
.
copy
(
get
(
et
.
getSysPssysuniresid
()),
et
);
return
true
;
}
@Override
public
void
upd
ateBatch
(
List
<
SYS_PSSYSUNIRES
>
list
)
{
updateBatchById
(
list
,
batchSize
);
public
void
cre
ateBatch
(
List
<
SYS_PSSYSUNIRES
>
list
)
{
saveBatch
(
list
,
batchSize
);
}
...
...
ibzuaa-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
83995ef7
...
...
@@ -73,15 +73,15 @@
</column>
</createTable>
</changeSet>
<!--输出实体[
IBZ
PSSYSUNIRES]数据结构 -->
<changeSet
author=
"a_A_5d9d78509"
id=
"tab-
ibzpssysunires-59
-4"
>
<!--输出实体[
SYS_
PSSYSUNIRES]数据结构 -->
<changeSet
author=
"a_A_5d9d78509"
id=
"tab-
sys_pssysunires-76
-4"
>
<createTable
tableName=
"IBZPSSYSUNIRES"
>
<column
name=
"
IBZ
PSSYSUNIRESID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_
IBZPSSYSUNIRES_IBZPSSYSUNIR
"
/>
<column
name=
"
SYS_
PSSYSUNIRESID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_
SYS_PSSYSUNIRES_SYS_PSSYSUN
"
/>
</column>
<column
name=
"
CREATEMAN"
remarks=
""
type=
"VARCHAR(6
0)"
>
<column
name=
"
SYS_PSSYSUNIRESNAME"
remarks=
""
type=
"VARCHAR(20
0)"
>
</column>
<column
name=
"
IBZPSSYSUNIRESNAME"
remarks=
""
type=
"VARCHAR(20
0)"
>
<column
name=
"
CREATEMAN"
remarks=
""
type=
"VARCHAR(6
0)"
>
</column>
<column
name=
"CREATEDATE"
remarks=
""
type=
"DATETIME"
>
</column>
...
...
@@ -198,7 +198,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]外键关系 -->
<!--输出实体[
IBZ
PSSYSUNIRES]外键关系 -->
<!--输出实体[
SYS_
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
浏览文件 @
83995ef7
<?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-76-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 ]]>
</createView>
</changeSet>
</databaseChangeLog>
ibzuaa-core/src/main/resources/mapper/uaa/sys_pssysunires/SYS_PSSYSUNIRESMapper.xml
浏览文件 @
83995ef7
...
...
@@ -27,7 +27,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 `
T_SYS_
PSSYSUNIRES` t1
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`SYS_PSSYSUNIRESID`, t1.`SYS_PSSYSUNIRESNAME`, t1.`UNIRESCODE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `
IBZ
PSSYSUNIRES` t1
]]>
</sql>
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录