Commit f114cfaeb8952a7299bfc84cd658cbccd5127838
1 parent
2ab96b82
update(测一下)
Showing
1 changed file
with
4 additions
and
1 deletions
src/main/java/com/cnlive/shenhe/api/CommentsControllerApi.java
| ... | ... | @@ -17,7 +17,9 @@ import org.springframework.web.bind.annotation.PostMapping; |
| 17 | 17 | import org.springframework.web.bind.annotation.RequestMapping; |
| 18 | 18 | import org.springframework.web.bind.annotation.ResponseBody; |
| 19 | 19 | |
| 20 | +import java.sql.Timestamp; | |
| 20 | 21 | import java.util.Arrays; |
| 22 | +import java.util.Date; | |
| 21 | 23 | import java.util.List; |
| 22 | 24 | |
| 23 | 25 | @Controller |
| ... | ... | @@ -84,7 +86,8 @@ public class CommentsControllerApi { |
| 84 | 86 | shyComments.setComment_user_avatar(json.getString("commentUserAvatar")); |
| 85 | 87 | shyComments.setComment_user_ip(json.getString("commentUserIP")); |
| 86 | 88 | shyComments.setComment_content(json.getString("commentContent")); |
| 87 | - shyComments.setComment_time(json.getDate("commentTime")); | |
| 89 | + Date commentTime = new Date(json.getString("commentTime")); | |
| 90 | + shyComments.setComment_time(commentTime); | |
| 88 | 91 | shyComments.setSpid(json.getInteger("spId")); |
| 89 | 92 | shyComments.setApp_id(json.getString("appId")); |
| 90 | 93 | shyComments.setPlatform(json.getString("platform")); | ... | ... |