Commit 22006857 authored by hanfeng's avatar hanfeng

客户管理日志

parent be1ed125
package com.github.wxiaoqi.security.admin.dto;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.util.Date;
......@@ -18,7 +19,8 @@ public class AppUserLogRemarkDTO {
/**
* 创建时间
*/
private Date crtTime;
@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
private Date time;
/**
* 用户id
......@@ -27,4 +29,5 @@ public class AppUserLogRemarkDTO {
}
package com.github.wxiaoqi.security.admin.entity;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import javax.persistence.Column;
......@@ -32,4 +34,10 @@ public class AppUserLogRemark {
@Column(name = "level_id")
private Integer levelId;
/**
* 创建时间
*/
@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
private Date time;
}
......@@ -44,6 +44,7 @@ public class AppUserLogRemarkBiz extends BaseBiz<AppUserLogRemarkMapper, AppUser
Example example = new Example(AppUserLogRemark.class);
example.createCriteria().andEqualTo("levelId", levelId);
example.orderBy("time").desc();
List<AppUserLogRemark> list = selectByExample(example);
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