feat: 更新时间格式
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.schisandra.share.infra.basic.entity;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.mybatisflex.annotation.Column;
|
||||
import com.mybatisflex.annotation.Id;
|
||||
import com.mybatisflex.annotation.KeyType;
|
||||
@@ -107,6 +108,7 @@ public class SchisandraShareCommentReply implements Serializable {
|
||||
* 创建时间
|
||||
*/
|
||||
@Column("created_time")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
|
||||
private Date createdTime;
|
||||
|
||||
/**
|
||||
@@ -119,6 +121,7 @@ public class SchisandraShareCommentReply implements Serializable {
|
||||
* 更新时间
|
||||
*/
|
||||
@Column("update_time")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
|
@@ -1,5 +1,6 @@
|
||||
package com.schisandra.share.infra.basic.entity;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.mybatisflex.annotation.Column;
|
||||
import com.mybatisflex.annotation.Id;
|
||||
import com.mybatisflex.annotation.KeyType;
|
||||
@@ -96,6 +97,7 @@ public class SchisandraShareDetail implements Serializable {
|
||||
* 创建时间
|
||||
*/
|
||||
@Column("created_time")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
|
||||
private Date createdTime;
|
||||
|
||||
/**
|
||||
@@ -108,6 +110,7 @@ public class SchisandraShareDetail implements Serializable {
|
||||
* 更新时间
|
||||
*/
|
||||
@Column("update_time")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
|
@@ -1,5 +1,6 @@
|
||||
package com.schisandra.share.infra.basic.entity;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.mybatisflex.annotation.Column;
|
||||
import com.mybatisflex.annotation.Id;
|
||||
import com.mybatisflex.annotation.KeyType;
|
||||
@@ -66,6 +67,7 @@ public class SchisandraShareMessage implements Serializable {
|
||||
* 创建时间
|
||||
*/
|
||||
@Column("created_time")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
|
||||
private Date createdTime;
|
||||
|
||||
/**
|
||||
@@ -78,6 +80,7 @@ public class SchisandraShareMessage implements Serializable {
|
||||
* 更新时间
|
||||
*/
|
||||
@Column("update_time")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
|
@@ -1,5 +1,6 @@
|
||||
package com.schisandra.share.infra.basic.entity;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.mybatisflex.annotation.Column;
|
||||
import com.mybatisflex.annotation.Id;
|
||||
import com.mybatisflex.annotation.KeyType;
|
||||
@@ -54,6 +55,7 @@ public class SchisandraShareTags implements Serializable {
|
||||
* 创建时间
|
||||
*/
|
||||
@Column("created_time")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
|
||||
private Date createdTime;
|
||||
|
||||
/**
|
||||
@@ -66,6 +68,7 @@ public class SchisandraShareTags implements Serializable {
|
||||
* 更新时间
|
||||
*/
|
||||
@Column("update_time")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
|
@@ -1,5 +1,6 @@
|
||||
package com.schisandra.share.infra.basic.entity;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.mybatisflex.annotation.Column;
|
||||
import com.mybatisflex.annotation.Id;
|
||||
import com.mybatisflex.annotation.KeyType;
|
||||
@@ -72,6 +73,7 @@ public class SchisandraShareUrl implements Serializable {
|
||||
* 创建时间
|
||||
*/
|
||||
@Column("created_time")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
|
||||
private Date createdTime;
|
||||
|
||||
/**
|
||||
@@ -84,6 +86,7 @@ public class SchisandraShareUrl implements Serializable {
|
||||
* 更新时间
|
||||
*/
|
||||
@Column("update_time")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
|
@@ -1,5 +1,6 @@
|
||||
package com.schisandra.share.infra.basic.entity;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.mybatisflex.annotation.Column;
|
||||
import com.mybatisflex.annotation.Id;
|
||||
import com.mybatisflex.annotation.KeyType;
|
||||
@@ -60,6 +61,7 @@ public class SchisandraUserFavorites implements Serializable {
|
||||
* 创建时间
|
||||
*/
|
||||
@Column("created_time")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
|
||||
private Date createdTime;
|
||||
|
||||
/**
|
||||
@@ -72,6 +74,7 @@ public class SchisandraUserFavorites implements Serializable {
|
||||
* 更新时间
|
||||
*/
|
||||
@Column("update_time")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
|
@@ -102,7 +102,8 @@ public class SchisandraShareCommentReplyServiceImpl implements SchisandraShareCo
|
||||
.from(SchisandraShareCommentReplyTableDef.SCHISANDRA_SHARE_COMMENT_REPLY)
|
||||
.where(SchisandraShareCommentReplyTableDef.SCHISANDRA_SHARE_COMMENT_REPLY.DETAIL_ID.eq(detailId))
|
||||
.where(SchisandraShareCommentReplyTableDef.SCHISANDRA_SHARE_COMMENT_REPLY.REPLY_TYPE.eq(0))
|
||||
.orderBy(SchisandraShareCommentReplyTableDef.SCHISANDRA_SHARE_COMMENT_REPLY.CREATED_TIME,false);
|
||||
.orderBy(SchisandraShareCommentReplyTableDef.SCHISANDRA_SHARE_COMMENT_REPLY.LIKES,false)
|
||||
.orderBy(SchisandraShareCommentReplyTableDef.SCHISANDRA_SHARE_COMMENT_REPLY.REPLY_COUNT,false);
|
||||
return this.schisandraShareCommentReplyDao.selectListByQuery(wrapper);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user