Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Eladmin
Commits
7fe31802
Commit
7fe31802
authored
Oct 27, 2019
by
dqjdda
Browse files
代码优化,更新sql文件
parent
e2b0b93c
Changes
23
Expand all
Hide whitespace changes
Inline
Side-by-side
eladmin-tools/src/main/java/me/zhengjie/domain/LocalStorage.java
View file @
7fe31802
...
...
@@ -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
;
...
...
eladmin-tools/src/main/java/me/zhengjie/service/dto/LocalStorageDTO.java
View file @
7fe31802
...
...
@@ -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
sql/eladmin.sql
View file @
7fe31802
This diff is collapsed.
Click to expand it.
Prev
1
2
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment