Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
logwire-bo-sdk
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
薛涛 Toby Xue
logwire-bo-sdk
Commits
deac5c87
Commit
deac5c87
authored
Jan 06, 2021
by
姜逸青 Jameson Jiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#1971 建表clear,BO字段调整
parent
312a4c91
Pipeline
#4712
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
36 deletions
+41
-36
BizObject.java
src/main/java/logwire/core/bo/object/BizObject.java
+41
-36
No files found.
src/main/java/logwire/core/bo/object/BizObject.java
View file @
deac5c87
...
...
@@ -16,31 +16,32 @@ public abstract class BizObject extends ModelObject {
/**
* 事务类型 insert/update/delete
*/
private
String
txCode
;
String
txCode
;
/**
* 当事务类型为update时,记录修改过的字段
*/
private
Map
<
String
,
Object
>
updatedFields
;
Map
<
String
,
Object
>
updatedFields
;
Long
id
;
// BO 的ID全部为雪花ID
int
version
;
@Column
(
label
=
"主键"
)
private
Long
id
;
// BO 的ID全部为雪花ID
@Column
(
label
=
"版本号"
)
private
int
version
;
@Column
(
label
=
"BO名称"
)
private
String
boName
;
@Column
(
label
=
"创建用户"
)
private
BizOne
<
User
>
createUser
;
@Column
(
label
=
"创建时间"
)
private
OffsetDateTime
createDate
;
@Column
(
label
=
"最后修改用户"
)
private
BizOne
<
User
>
updateUser
;
@Column
(
label
=
"最后修改时间"
)
private
OffsetDateTime
updateDate
;
String
boName
;
BizOne
<
User
>
insertUser
;
OffsetDateTime
insertDate
;
BizOne
<
User
>
updateUser
;
OffsetDateTime
updateDate
;
@Composite
(
label
=
"项目扩展字段"
,
prefix
=
"exp_"
)
private
BizExpando
exps
;
@Column
(
label
=
"域"
)
private
String
domain
;
BizExpando
exps
;
String
domainName
;
@Override
...
...
@@ -77,28 +78,24 @@ public abstract class BizObject extends ModelObject {
this
.
boName
=
boName
;
}
public
BizOne
<
User
>
getCreateUser
()
{
return
createUser
;
public
Map
<
String
,
Object
>
getUpdatedFields
()
{
return
updatedFields
;
}
public
void
setCreateUser
(
BizOne
<
User
>
createUser
)
{
this
.
createUser
=
create
User
;
public
BizOne
<
User
>
getInsertUser
(
)
{
return
insert
User
;
}
public
OffsetDateTime
getCreateDate
(
)
{
return
createDate
;
public
void
setInsertUser
(
BizOne
<
User
>
insertUser
)
{
this
.
insertUser
=
insertUser
;
}
public
void
setCreateDate
(
OffsetDateTime
createDate
)
{
this
.
createDate
=
createDate
;
}
public
BizOne
<
User
>
getUpdateUser
()
{
return
updateUser
;
public
OffsetDateTime
getInsertDate
()
{
return
insertDate
;
}
public
void
set
UpdateUser
(
BizOne
<
User
>
updateUser
)
{
this
.
updateUser
=
updateUser
;
public
void
set
InsertDate
(
OffsetDateTime
insertDate
)
{
this
.
insertDate
=
insertDate
;
}
public
OffsetDateTime
getUpdateDate
()
{
...
...
@@ -109,6 +106,14 @@ public abstract class BizObject extends ModelObject {
this
.
updateDate
=
updateDate
;
}
public
BizOne
<
User
>
getUpdateUser
()
{
return
updateUser
;
}
public
void
setUpdateUser
(
BizOne
<
User
>
updateUser
)
{
this
.
updateUser
=
updateUser
;
}
public
BizExpando
getExps
()
{
return
exps
;
}
...
...
@@ -117,11 +122,11 @@ public abstract class BizObject extends ModelObject {
this
.
exps
=
exps
;
}
public
String
getDomain
()
{
return
domain
;
public
String
getDomain
Name
()
{
return
domain
Name
;
}
public
void
setDomain
(
String
domain
)
{
this
.
domain
=
domain
;
public
void
setDomain
Name
(
String
domainName
)
{
this
.
domain
Name
=
domainName
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment