Просмотр исходного кода

短信发送记录发送时间格式化

codingliang 1 год назад
Родитель
Сommit
28644e8e83

+ 3 - 0
src/main/java/com/sqx/modules/errand/entity/TbIndentSmsSendLog.java

@@ -2,6 +2,8 @@ package com.sqx.modules.errand.entity;
 
 import com.baomidou.mybatisplus.annotation.IdType;
 import com.baomidou.mybatisplus.annotation.TableId;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import com.sqx.modules.chats.utils.DateUtil;
 import io.swagger.annotations.ApiModel;
 import io.swagger.annotations.ApiModelProperty;
 import lombok.Data;
@@ -44,6 +46,7 @@ public class TbIndentSmsSendLog {
     private String sendTo;
 
     @ApiModelProperty("发送时间")
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
     private Date sendTime;
 
     @ApiModelProperty("发送来源 1骑手、2商家")