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
2955f52f
Commit
2955f52f
authored
Dec 07, 2020
by
薛涛 Toby Xue
🆒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#1971 actionListener
parent
f09f1d0f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
97 additions
and
13 deletions
+97
-13
BizObject.java
src/main/java/logwire/core/bo/object/BizObject.java
+95
-11
ModelObject.java
src/main/java/logwire/core/bo/object/ModelObject.java
+1
-1
User.java
src/main/java/logwire/core/bo/object/User.java
+1
-1
No files found.
src/main/java/logwire/core/bo/object/BizObject.java
View file @
2955f52f
...
...
@@ -4,6 +4,7 @@ import logwire.core.bo.annotation.Column;
import
logwire.core.bo.annotation.Composite
;
import
logwire.core.bo.field.BizExpando
;
import
logwire.core.bo.field.BizOne
;
import
java.time.OffsetDateTime
;
import
java.util.Map
;
...
...
@@ -15,29 +16,112 @@ public abstract class BizObject extends ModelObject {
/**
* 事务类型 insert/update/delete
*/
String
_TX_CODE
;
private
String
txCode
;
/**
* 当事务类型为update时,记录修改过的字段
*/
Map
<
String
,
Object
>
UPDATED_FIELDS
;
private
Map
<
String
,
Object
>
updatedFields
;
@Column
(
label
=
"主键"
)
Long
id
;
// BO 的ID全部为雪花ID
private
Long
id
;
// BO 的ID全部为雪花ID
@Column
(
label
=
"版本号"
)
int
version
;
private
int
version
;
@Column
(
label
=
"BO名称"
)
String
boName
;
private
String
boName
;
@Column
(
label
=
"创建用户"
)
BizOne
<
User
>
createUser
;
private
BizOne
<
User
>
createUser
;
@Column
(
label
=
"创建时间"
)
OffsetDateTime
createDate
;
private
OffsetDateTime
createDate
;
@Column
(
label
=
"最后修改用户"
)
BizOne
<
User
>
updateUser
;
private
BizOne
<
User
>
updateUser
;
@Column
(
label
=
"最后修改时间"
)
OffsetDateTime
updateDate
;
private
OffsetDateTime
updateDate
;
@Composite
(
label
=
"项目扩展字段"
,
prefix
=
"exp_"
)
BizExpando
exps
;
private
BizExpando
exps
;
@Column
(
label
=
"域"
)
String
domain
;
private
String
domain
;
@Override
public
Object
getId
()
{
return
id
;
}
public
String
getTxCode
()
{
return
txCode
;
}
public
void
setTxCode
(
String
txCode
)
{
this
.
txCode
=
txCode
;
}
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
int
getVersion
()
{
return
version
;
}
public
void
setVersion
(
int
version
)
{
this
.
version
=
version
;
}
public
String
getBoName
()
{
return
boName
;
}
public
void
setBoName
(
String
boName
)
{
this
.
boName
=
boName
;
}
public
BizOne
<
User
>
getCreateUser
()
{
return
createUser
;
}
public
void
setCreateUser
(
BizOne
<
User
>
createUser
)
{
this
.
createUser
=
createUser
;
}
public
OffsetDateTime
getCreateDate
()
{
return
createDate
;
}
public
void
setCreateDate
(
OffsetDateTime
createDate
)
{
this
.
createDate
=
createDate
;
}
public
BizOne
<
User
>
getUpdateUser
()
{
return
updateUser
;
}
public
void
setUpdateUser
(
BizOne
<
User
>
updateUser
)
{
this
.
updateUser
=
updateUser
;
}
public
OffsetDateTime
getUpdateDate
()
{
return
updateDate
;
}
public
void
setUpdateDate
(
OffsetDateTime
updateDate
)
{
this
.
updateDate
=
updateDate
;
}
public
BizExpando
getExps
()
{
return
exps
;
}
public
void
setExps
(
BizExpando
exps
)
{
this
.
exps
=
exps
;
}
public
String
getDomain
()
{
return
domain
;
}
public
void
setDomain
(
String
domain
)
{
this
.
domain
=
domain
;
}
}
src/main/java/logwire/core/bo/object/ModelObject.java
View file @
2955f52f
...
...
@@ -8,5 +8,5 @@ public abstract class ModelObject{
/**
* @return 返回主键值
*/
abstract
Object
getId
();
public
abstract
Object
getId
();
}
src/main/java/logwire/core/bo/object/User.java
View file @
2955f52f
...
...
@@ -10,7 +10,7 @@ public abstract class User extends ModelObject {
@Column
()
String
userXid
;
Object
getId
()
{
public
Object
getId
()
{
return
userGid
;
}
}
\ No newline at end of file
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