Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
yangxiujun
/
paidan_demo
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a0100d1a
authored
Aug 01, 2023
by
丁伟峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
默认时间
1 parent
f66a32c3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
project-order/src/main/java/com/dituhui/pea/order/entity/OrderInfoEntity.java
project-order/src/main/java/com/dituhui/pea/order/entity/OrderInfoEntity.java
View file @
a0100d1
...
...
@@ -170,10 +170,10 @@ public class OrderInfoEntity {
private
String
extraInfo
;
@Column
(
name
=
"create_time"
,
nullable
=
true
,
columnDefinition
=
"timestamp default current_timestamp"
)
private
LocalDateTime
createTime
;
private
LocalDateTime
createTime
=
LocalDateTime
.
now
()
;
@Column
(
name
=
"update_time"
,
nullable
=
true
,
columnDefinition
=
"timestamp default current_timestamp on update current_timestamp"
)
private
LocalDateTime
updateTime
;
private
LocalDateTime
updateTime
=
LocalDateTime
.
now
()
;
// Getters and setters (omitted for brevity)
}
Write
Preview
Markdown
is supported
Attach a file
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 post a comment