Commit 7fe31802 authored by dqjdda's avatar dqjdda
Browse files

代码优化,更新sql文件

parent e2b0b93c
......@@ -4,7 +4,10 @@ import lombok.*;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.bean.copier.CopyOptions;
import me.zhengjie.base.BaseEntity;
import org.hibernate.annotations.CreationTimestamp;
import javax.persistence.*;
import java.sql.Timestamp;
/**
* @author Zheng Jie
......@@ -15,7 +18,7 @@ import javax.persistence.*;
@Entity
@Table(name="local_storage")
@NoArgsConstructor
public class LocalStorage extends BaseEntity {
public class LocalStorage {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
......@@ -50,6 +53,10 @@ public class LocalStorage extends BaseEntity {
@Column(name = "operate")
private String operate;
@Column(name = "create_time")
@CreationTimestamp
private Timestamp createTime;
public LocalStorage(String realName,String name, String suffix, String path, String type, String size, String operate) {
this.realName = realName;
this.name = name;
......
......@@ -2,7 +2,8 @@ package me.zhengjie.service.dto;
import lombok.Getter;
import lombok.Setter;
import me.zhengjie.base.BaseDTO;
import java.sql.Timestamp;
/**
* @author Zheng Jie
......@@ -10,7 +11,7 @@ import me.zhengjie.base.BaseDTO;
*/
@Getter
@Setter
public class LocalStorageDTO extends BaseDTO {
public class LocalStorageDTO{
// ID
private Long id;
......@@ -31,4 +32,6 @@ public class LocalStorageDTO extends BaseDTO {
// 操作人
private String operate;
private Timestamp createTime;
}
\ No newline at end of file
This diff is collapsed.
Supports Markdown
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