Commit d9de7705 authored by hanfeng's avatar hanfeng

Merge branch 'master-customer-management' into dev

parents 47200a5e 7f375cf7
package com.github.wxiaoqi.security.admin.dto; package com.github.wxiaoqi.security.admin.dto;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data; import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date; import java.util.Date;
...@@ -16,9 +18,11 @@ public class AppUserLogRemarkDTO { ...@@ -16,9 +18,11 @@ public class AppUserLogRemarkDTO {
private String remark; private String remark;
/** /**
* 创建时间 * 日志时间
*/ */
private Date crtTime; @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd")
private Date time;
/** /**
* 用户id * 用户id
...@@ -27,4 +31,5 @@ public class AppUserLogRemarkDTO { ...@@ -27,4 +31,5 @@ public class AppUserLogRemarkDTO {
} }
package com.github.wxiaoqi.security.admin.entity; package com.github.wxiaoqi.security.admin.entity;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import javax.persistence.Column; import javax.persistence.Column;
...@@ -32,4 +34,8 @@ public class AppUserLogRemark { ...@@ -32,4 +34,8 @@ public class AppUserLogRemark {
@Column(name = "level_id") @Column(name = "level_id")
private Integer levelId; private Integer levelId;
@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd")
private Date time;
} }
...@@ -44,6 +44,7 @@ public class AppUserLogRemarkBiz extends BaseBiz<AppUserLogRemarkMapper, AppUser ...@@ -44,6 +44,7 @@ public class AppUserLogRemarkBiz extends BaseBiz<AppUserLogRemarkMapper, AppUser
Example example = new Example(AppUserLogRemark.class); Example example = new Example(AppUserLogRemark.class);
example.createCriteria().andEqualTo("levelId", levelId); example.createCriteria().andEqualTo("levelId", levelId);
example.orderBy("time").desc();
List<AppUserLogRemark> list = selectByExample(example); List<AppUserLogRemark> list = selectByExample(example);
return list; return list;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment