调整时间返回

This commit is contained in:
xpecya 2024-12-15 16:57:07 +08:00
parent 6cdf895ea6
commit 2a7f65e577
6 changed files with 16 additions and 16 deletions

View File

@ -35,13 +35,13 @@ public class AdminUserVO {
/**
* 用户创建时间
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
private Date createTime;
/**
* 用户修改时间
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
private Date updateTime;
public AdminUserVO(AdminUser adminUser) {

View File

@ -35,13 +35,13 @@ public class LoginVO {
/**
* 用户创建时间
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
private Date createTime;
/**
* 用户修改时间
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
private Date updateTime;
public LoginVO(AdminUser adminUser) {

View File

@ -91,14 +91,14 @@ public interface NewsMapper {
"news.publish_time as publishTime," +
"news.update_time as updateTime " +
"from news " +
"<if test=\"column != null\">" +
"<if test=\"column != null and !column.isEmpty()\">" +
"inner join news_column_rel on news.id = news_column_rel.news_id " +
"</if>" +
"<where>" +
"<if test=\"keyword != null and !keyword.isEmpty()\">" +
"news.title like concat('%', #{keyword}, '%') " +
"</if>" +
"<if test=\"column != null\">" +
"<if test=\"column != null and !column.isEmpty()\">" +
"and news_column_rel.column_id in (${column}) " +
"</if>" +
"<if test=\"status != null\">" +
@ -108,7 +108,7 @@ public interface NewsMapper {
"and news.id &gt; #{last}" +
"</if>" +
"</where>" +
"order by concat('`', ${orderBy}, '`') " +
"order by news.${orderBy} " +
"<if test=\"'desc'.equals(direction)\">" +
"desc" +
"</if>" +
@ -125,14 +125,14 @@ public interface NewsMapper {
@Select("<script>" +
"select count(*) from (select distinct news.* from news " +
"<if test=\"column != null\">" +
"<if test=\"column != null and !column.isEmpty() \">" +
"inner join news_column_rel on news.id = news_column_rel.news_id " +
"</if>" +
"<where>" +
"<if test=\"keyword != null and !keyword.isEmpty()\">" +
"news.title like concat('%', #{keyword}, '%') " +
"</if>" +
"<if test=\"column != null\">" +
"<if test=\"column != null and !column.isEmpty()\">" +
"and news_column_rel.column_id in (${column}) " +
"</if>" +
"<if test=\"status != null\">" +

View File

@ -31,13 +31,13 @@ public class ColumnVO {
/**
* 创建时间
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
private Date createTime;
/**
* 修改时间
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
private Date updateTime;
/**

View File

@ -37,19 +37,19 @@ public class NewsVO {
/**
* 创建时间
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
private Date createTime;
/**
* 发布时间
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
private Date publishTime;
/**
* 修改时间
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
private Date updateTime;
public NewsVO(News news) {

View File

@ -26,13 +26,13 @@ public class TagVO {
/**
* 创建时间
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
private Date createTime;
/**
* 修改时间
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
private Date updateTime;
/**