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 f6acd499
authored
Jul 12, 2023
by
丁伟峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LocalDateTime转换处理
1 parent
4ae7289e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
project-order/src/main/java/com/dituhui/pea/order/dto/BusinessSkillListDTO.java
project-order/src/main/java/com/dituhui/pea/order/dto/BusinessSkillListDTO.java
View file @
f6acd49
package
com
.
dituhui
.
pea
.
order
.
dto
;
package
com
.
dituhui
.
pea
.
order
.
dto
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.databind.annotation.JsonDeserialize
;
import
com.fasterxml.jackson.databind.annotation.JsonSerialize
;
import
com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer
;
import
com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer
;
import
lombok.experimental.Accessors
;
import
lombok.experimental.Accessors
;
import
java.time.LocalDateTime
;
import
java.time.LocalDateTime
;
...
@@ -38,6 +43,10 @@ public class BusinessSkillListDTO {
...
@@ -38,6 +43,10 @@ public class BusinessSkillListDTO {
@Accessors
(
chain
=
true
)
@Accessors
(
chain
=
true
)
public
static
class
Content
{
public
static
class
Content
{
private
String
brand
;
private
String
brand
;
@JsonDeserialize
(
using
=
LocalDateTimeDeserializer
.
class
)
@JsonSerialize
(
using
=
LocalDateTimeSerializer
.
class
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
LocalDateTime
createTime
;
private
LocalDateTime
createTime
;
private
Boolean
gasCert
;
private
Boolean
gasCert
;
private
String
layerId
;
private
String
layerId
;
...
@@ -54,6 +63,10 @@ public class BusinessSkillListDTO {
...
@@ -54,6 +63,10 @@ public class BusinessSkillListDTO {
private
Integer
takeTime
;
private
Integer
takeTime
;
private
String
type
;
private
String
type
;
private
String
typeCategory
;
private
String
typeCategory
;
@JsonDeserialize
(
using
=
LocalDateTimeDeserializer
.
class
)
@JsonSerialize
(
using
=
LocalDateTimeSerializer
.
class
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
LocalDateTime
updateTime
;
private
LocalDateTime
updateTime
;
}
}
}
}
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