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
Show 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 {
...
@@ -16,31 +16,32 @@ public abstract class BizObject extends ModelObject {
/**
/**
* 事务类型 insert/update/delete
* 事务类型 insert/update/delete
*/
*/
private
String
txCode
;
String
txCode
;
/**
/**
* 当事务类型为update时,记录修改过的字段
* 当事务类型为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名称"
)
@Column
(
label
=
"BO名称"
)
private
String
boName
;
String
boName
;
@Column
(
label
=
"创建用户"
)
private
BizOne
<
User
>
createUser
;
BizOne
<
User
>
insertUser
;
@Column
(
label
=
"创建时间"
)
private
OffsetDateTime
createDate
;
OffsetDateTime
insertDate
;
@Column
(
label
=
"最后修改用户"
)
private
BizOne
<
User
>
updateUser
;
BizOne
<
User
>
updateUser
;
@Column
(
label
=
"最后修改时间"
)
private
OffsetDateTime
updateDate
;
OffsetDateTime
updateDate
;
@Composite
(
label
=
"项目扩展字段"
,
prefix
=
"exp_"
)
@Composite
(
label
=
"项目扩展字段"
,
prefix
=
"exp_"
)
private
BizExpando
exps
;
BizExpando
exps
;
@Column
(
label
=
"域"
)
private
String
domain
;
String
domainName
;
@Override
@Override
...
@@ -77,28 +78,24 @@ public abstract class BizObject extends ModelObject {
...
@@ -77,28 +78,24 @@ public abstract class BizObject extends ModelObject {
this
.
boName
=
boName
;
this
.
boName
=
boName
;
}
}
public
BizOne
<
User
>
getCreateUser
()
{
public
Map
<
String
,
Object
>
getUpdatedFields
()
{
return
createUser
;
return
updatedFields
;
}
}
public
void
setCreateUser
(
BizOne
<
User
>
createUser
)
{
public
BizOne
<
User
>
getInsertUser
(
)
{
this
.
createUser
=
create
User
;
return
insert
User
;
}
}
public
OffsetDateTime
getCreateDate
(
)
{
public
void
setInsertUser
(
BizOne
<
User
>
insertUser
)
{
return
createDate
;
this
.
insertUser
=
insertUser
;
}
}
public
void
setCreateDate
(
OffsetDateTime
createDate
)
{
public
OffsetDateTime
getInsertDate
()
{
this
.
createDate
=
createDate
;
return
insertDate
;
}
public
BizOne
<
User
>
getUpdateUser
()
{
return
updateUser
;
}
}
public
void
set
UpdateUser
(
BizOne
<
User
>
updateUser
)
{
public
void
set
InsertDate
(
OffsetDateTime
insertDate
)
{
this
.
updateUser
=
updateUser
;
this
.
insertDate
=
insertDate
;
}
}
public
OffsetDateTime
getUpdateDate
()
{
public
OffsetDateTime
getUpdateDate
()
{
...
@@ -109,6 +106,14 @@ public abstract class BizObject extends ModelObject {
...
@@ -109,6 +106,14 @@ public abstract class BizObject extends ModelObject {
this
.
updateDate
=
updateDate
;
this
.
updateDate
=
updateDate
;
}
}
public
BizOne
<
User
>
getUpdateUser
()
{
return
updateUser
;
}
public
void
setUpdateUser
(
BizOne
<
User
>
updateUser
)
{
this
.
updateUser
=
updateUser
;
}
public
BizExpando
getExps
()
{
public
BizExpando
getExps
()
{
return
exps
;
return
exps
;
}
}
...
@@ -117,11 +122,11 @@ public abstract class BizObject extends ModelObject {
...
@@ -117,11 +122,11 @@ public abstract class BizObject extends ModelObject {
this
.
exps
=
exps
;
this
.
exps
=
exps
;
}
}
public
String
getDomain
()
{
public
String
getDomain
Name
()
{
return
domain
;
return
domain
Name
;
}
}
public
void
setDomain
(
String
domain
)
{
public
void
setDomain
Name
(
String
domainName
)
{
this
.
domain
=
domain
;
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