调整时间返回
This commit is contained in:
parent
6cdf895ea6
commit
2a7f65e577
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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 > #{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\">" +
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue