Commit f453fa5354c9444a6c00405da330a26504d51dc0
1 parent
0b9ee88e
fix: insert bug resolve
Showing
1 changed file
with
4 additions
and
0 deletions
ruoyi-admin/src/main/java/com/ruoyi/pojo/response/ResponseScheduling.java
| 1 | 1 | package com.ruoyi.pojo.response; |
| 2 | 2 | |
| 3 | +import com.fasterxml.jackson.annotation.JsonFormat; | |
| 3 | 4 | import lombok.Data; |
| 5 | +import org.springframework.format.annotation.DateTimeFormat; | |
| 4 | 6 | |
| 5 | 7 | import java.util.Date; |
| 6 | 8 | import java.util.List; |
| ... | ... | @@ -15,6 +17,8 @@ import java.util.List; |
| 15 | 17 | public class ResponseScheduling { |
| 16 | 18 | |
| 17 | 19 | private Long id; |
| 20 | + @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss") | |
| 21 | + @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss",timezone = "GMT+8") | |
| 18 | 22 | private Date scheduleDate; |
| 19 | 23 | private String lineName; |
| 20 | 24 | private String lineCode; | ... | ... |