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
905c8c64
"jetbrains:/idea/checkout/git" did not exist on "aa88030e20d8a654471c25781a70301bed5abcae"
Commit
905c8c64
authored
Oct 31, 2019
by
dqjdda
Browse files
所有列表加入日期搜索与导出功能
parent
938ae1fc
Changes
67
Show whitespace changes
Inline
Side-by-side
eladmin-system/src/main/java/me/zhengjie/modules/system/domain/Menu.java
View file @
905c8c64
...
@@ -7,6 +7,7 @@ import org.hibernate.annotations.CreationTimestamp;
...
@@ -7,6 +7,7 @@ import org.hibernate.annotations.CreationTimestamp;
import
javax.persistence.*
;
import
javax.persistence.*
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotNull
;
import
javax.validation.constraints.NotNull
;
import
java.io.Serializable
;
import
java.sql.Timestamp
;
import
java.sql.Timestamp
;
import
java.util.Objects
;
import
java.util.Objects
;
import
java.util.Set
;
import
java.util.Set
;
...
@@ -19,7 +20,7 @@ import java.util.Set;
...
@@ -19,7 +20,7 @@ import java.util.Set;
@Getter
@Getter
@Setter
@Setter
@Table
(
name
=
"menu"
)
@Table
(
name
=
"menu"
)
public
class
Menu
{
public
class
Menu
implements
Serializable
{
@Id
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
...
...
eladmin-system/src/main/java/me/zhengjie/modules/system/domain/Role.java
View file @
905c8c64
...
@@ -7,6 +7,7 @@ import org.hibernate.annotations.CreationTimestamp;
...
@@ -7,6 +7,7 @@ import org.hibernate.annotations.CreationTimestamp;
import
javax.persistence.*
;
import
javax.persistence.*
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotNull
;
import
javax.validation.constraints.NotNull
;
import
java.io.Serializable
;
import
java.sql.Timestamp
;
import
java.sql.Timestamp
;
import
java.util.Objects
;
import
java.util.Objects
;
import
java.util.Set
;
import
java.util.Set
;
...
@@ -20,7 +21,7 @@ import java.util.Set;
...
@@ -20,7 +21,7 @@ import java.util.Set;
@Table
(
name
=
"role"
)
@Table
(
name
=
"role"
)
@Getter
@Getter
@Setter
@Setter
public
class
Role
{
public
class
Role
implements
Serializable
{
@Id
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
...
...
eladmin-system/src/main/java/me/zhengjie/modules/system/domain/User.java
View file @
905c8c64
...
@@ -7,6 +7,7 @@ import javax.persistence.*;
...
@@ -7,6 +7,7 @@ import javax.persistence.*;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotNull
;
import
javax.validation.constraints.NotNull
;
import
javax.validation.constraints.Pattern
;
import
javax.validation.constraints.Pattern
;
import
java.io.Serializable
;
import
java.sql.Timestamp
;
import
java.sql.Timestamp
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.Set
;
import
java.util.Set
;
...
@@ -19,7 +20,7 @@ import java.util.Set;
...
@@ -19,7 +20,7 @@ import java.util.Set;
@Getter
@Getter
@Setter
@Setter
@Table
(
name
=
"user"
)
@Table
(
name
=
"user"
)
public
class
User
{
public
class
User
implements
Serializable
{
@Id
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
...
...
eladmin-system/src/main/java/me/zhengjie/modules/system/domain/UserAvatar.java
View file @
905c8c64
...
@@ -8,6 +8,7 @@ import me.zhengjie.base.BaseEntity;
...
@@ -8,6 +8,7 @@ import me.zhengjie.base.BaseEntity;
import
org.hibernate.annotations.CreationTimestamp
;
import
org.hibernate.annotations.CreationTimestamp
;
import
javax.persistence.*
;
import
javax.persistence.*
;
import
java.io.Serializable
;
import
java.sql.Timestamp
;
import
java.sql.Timestamp
;
/**
/**
...
@@ -19,7 +20,7 @@ import java.sql.Timestamp;
...
@@ -19,7 +20,7 @@ import java.sql.Timestamp;
@Setter
@Setter
@NoArgsConstructor
@NoArgsConstructor
@Table
(
name
=
"user_avatar"
)
@Table
(
name
=
"user_avatar"
)
public
class
UserAvatar
{
public
class
UserAvatar
implements
Serializable
{
@Id
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
...
...
eladmin-system/src/main/java/me/zhengjie/modules/system/rest/DeptController.java
View file @
905c8c64
...
@@ -15,6 +15,9 @@ import org.springframework.http.ResponseEntity;
...
@@ -15,6 +15,9 @@ import org.springframework.http.ResponseEntity;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.IOException
;
import
java.util.List
;
import
java.util.List
;
/**
/**
...
@@ -37,6 +40,14 @@ public class DeptController {
...
@@ -37,6 +40,14 @@ public class DeptController {
this
.
dataScope
=
dataScope
;
this
.
dataScope
=
dataScope
;
}
}
@Log
(
"导出部门数据"
)
@ApiOperation
(
"导出部门数据"
)
@GetMapping
(
value
=
"/download"
)
@PreAuthorize
(
"@el.check('dept:list')"
)
public
void
download
(
HttpServletResponse
response
,
DeptQueryCriteria
criteria
)
throws
IOException
{
deptService
.
download
(
deptService
.
queryAll
(
criteria
),
response
);
}
@Log
(
"查询部门"
)
@Log
(
"查询部门"
)
@ApiOperation
(
"查询部门"
)
@ApiOperation
(
"查询部门"
)
@GetMapping
@GetMapping
...
...
eladmin-system/src/main/java/me/zhengjie/modules/system/rest/DictController.java
View file @
905c8c64
...
@@ -14,6 +14,9 @@ import org.springframework.security.access.prepost.PreAuthorize;
...
@@ -14,6 +14,9 @@ import org.springframework.security.access.prepost.PreAuthorize;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.IOException
;
/**
/**
* @author Zheng Jie
* @author Zheng Jie
* @date 2019-04-10
* @date 2019-04-10
...
@@ -31,6 +34,14 @@ public class DictController {
...
@@ -31,6 +34,14 @@ public class DictController {
this
.
dictService
=
dictService
;
this
.
dictService
=
dictService
;
}
}
@Log
(
"导出字典数据"
)
@ApiOperation
(
"导出字典数据"
)
@GetMapping
(
value
=
"/download"
)
@PreAuthorize
(
"@el.check('dict:list')"
)
public
void
download
(
HttpServletResponse
response
,
DictQueryCriteria
criteria
)
throws
IOException
{
dictService
.
download
(
dictService
.
queryAll
(
criteria
),
response
);
}
@Log
(
"查询字典"
)
@Log
(
"查询字典"
)
@ApiOperation
(
"查询字典"
)
@ApiOperation
(
"查询字典"
)
@GetMapping
@GetMapping
...
...
eladmin-system/src/main/java/me/zhengjie/modules/system/rest/JobController.java
View file @
905c8c64
...
@@ -16,6 +16,9 @@ import org.springframework.security.access.prepost.PreAuthorize;
...
@@ -16,6 +16,9 @@ import org.springframework.security.access.prepost.PreAuthorize;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.IOException
;
/**
/**
* @author Zheng Jie
* @author Zheng Jie
* @date 2019-03-29
* @date 2019-03-29
...
@@ -36,6 +39,14 @@ public class JobController {
...
@@ -36,6 +39,14 @@ public class JobController {
this
.
dataScope
=
dataScope
;
this
.
dataScope
=
dataScope
;
}
}
@Log
(
"导出岗位数据"
)
@ApiOperation
(
"导出岗位数据"
)
@GetMapping
(
value
=
"/download"
)
@PreAuthorize
(
"@el.check('job:list')"
)
public
void
download
(
HttpServletResponse
response
,
JobQueryCriteria
criteria
)
throws
IOException
{
jobService
.
download
(
jobService
.
queryAll
(
criteria
),
response
);
}
@Log
(
"查询岗位"
)
@Log
(
"查询岗位"
)
@ApiOperation
(
"查询岗位"
)
@ApiOperation
(
"查询岗位"
)
@GetMapping
@GetMapping
...
...
eladmin-system/src/main/java/me/zhengjie/modules/system/rest/MenuController.java
View file @
905c8c64
...
@@ -17,6 +17,9 @@ import org.springframework.http.ResponseEntity;
...
@@ -17,6 +17,9 @@ import org.springframework.http.ResponseEntity;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.IOException
;
import
java.util.HashSet
;
import
java.util.HashSet
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Set
;
import
java.util.Set
;
...
@@ -45,6 +48,14 @@ public class MenuController {
...
@@ -45,6 +48,14 @@ public class MenuController {
this
.
roleService
=
roleService
;
this
.
roleService
=
roleService
;
}
}
@Log
(
"导出菜单数据"
)
@ApiOperation
(
"导出菜单数据"
)
@GetMapping
(
value
=
"/download"
)
@PreAuthorize
(
"@el.check('menu:list')"
)
public
void
download
(
HttpServletResponse
response
,
MenuQueryCriteria
criteria
)
throws
IOException
{
menuService
.
download
(
menuService
.
queryAll
(
criteria
),
response
);
}
@ApiOperation
(
"获取前端所需菜单"
)
@ApiOperation
(
"获取前端所需菜单"
)
@GetMapping
(
value
=
"/build"
)
@GetMapping
(
value
=
"/build"
)
public
ResponseEntity
buildMenus
(){
public
ResponseEntity
buildMenus
(){
...
...
eladmin-system/src/main/java/me/zhengjie/modules/system/rest/RoleController.java
View file @
905c8c64
...
@@ -19,6 +19,9 @@ import org.springframework.http.ResponseEntity;
...
@@ -19,6 +19,9 @@ import org.springframework.http.ResponseEntity;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.IOException
;
import
java.util.Collections
;
import
java.util.Collections
;
import
java.util.List
;
import
java.util.List
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
...
@@ -47,6 +50,14 @@ public class RoleController {
...
@@ -47,6 +50,14 @@ public class RoleController {
return
new
ResponseEntity
<>(
roleService
.
findById
(
id
),
HttpStatus
.
OK
);
return
new
ResponseEntity
<>(
roleService
.
findById
(
id
),
HttpStatus
.
OK
);
}
}
@Log
(
"导出角色数据"
)
@ApiOperation
(
"导出角色数据"
)
@GetMapping
(
value
=
"/download"
)
@PreAuthorize
(
"@el.check('role:list')"
)
public
void
download
(
HttpServletResponse
response
,
RoleQueryCriteria
criteria
)
throws
IOException
{
roleService
.
download
(
roleService
.
queryAll
(
criteria
),
response
);
}
@ApiOperation
(
"返回全部的角色"
)
@ApiOperation
(
"返回全部的角色"
)
@GetMapping
(
value
=
"/all"
)
@GetMapping
(
value
=
"/all"
)
@PreAuthorize
(
"@el.check('roles:list','user:add','user:edit')"
)
@PreAuthorize
(
"@el.check('roles:list','user:add','user:edit')"
)
...
...
eladmin-system/src/main/java/me/zhengjie/modules/system/rest/UserController.java
View file @
905c8c64
...
@@ -61,7 +61,7 @@ public class UserController {
...
@@ -61,7 +61,7 @@ public class UserController {
@ApiOperation
(
"导出用户数据"
)
@ApiOperation
(
"导出用户数据"
)
@GetMapping
(
value
=
"/download"
)
@GetMapping
(
value
=
"/download"
)
@PreAuthorize
(
"@el.check('user:list')"
)
@PreAuthorize
(
"@el.check('user:list')"
)
public
void
update
(
HttpServletResponse
response
,
UserQueryCriteria
criteria
)
throws
IOException
{
public
void
download
(
HttpServletResponse
response
,
UserQueryCriteria
criteria
)
throws
IOException
{
userService
.
download
(
userService
.
queryAll
(
criteria
),
response
);
userService
.
download
(
userService
.
queryAll
(
criteria
),
response
);
}
}
...
...
eladmin-system/src/main/java/me/zhengjie/modules/system/service/DeptService.java
View file @
905c8c64
...
@@ -3,6 +3,9 @@ package me.zhengjie.modules.system.service;
...
@@ -3,6 +3,9 @@ package me.zhengjie.modules.system.service;
import
me.zhengjie.modules.system.domain.Dept
;
import
me.zhengjie.modules.system.domain.Dept
;
import
me.zhengjie.modules.system.service.dto.DeptDTO
;
import
me.zhengjie.modules.system.service.dto.DeptDTO
;
import
me.zhengjie.modules.system.service.dto.DeptQueryCriteria
;
import
me.zhengjie.modules.system.service.dto.DeptQueryCriteria
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.IOException
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Set
;
import
java.util.Set
;
...
@@ -27,4 +30,6 @@ public interface DeptService {
...
@@ -27,4 +30,6 @@ public interface DeptService {
List
<
Dept
>
findByPid
(
long
pid
);
List
<
Dept
>
findByPid
(
long
pid
);
Set
<
Dept
>
findByRoleIds
(
Long
id
);
Set
<
Dept
>
findByRoleIds
(
Long
id
);
void
download
(
List
<
DeptDTO
>
queryAll
,
HttpServletResponse
response
)
throws
IOException
;
}
}
\ No newline at end of file
eladmin-system/src/main/java/me/zhengjie/modules/system/service/DictService.java
View file @
905c8c64
...
@@ -5,13 +5,20 @@ import me.zhengjie.modules.system.service.dto.DictDTO;
...
@@ -5,13 +5,20 @@ import me.zhengjie.modules.system.service.dto.DictDTO;
import
me.zhengjie.modules.system.service.dto.DictQueryCriteria
;
import
me.zhengjie.modules.system.service.dto.DictQueryCriteria
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.data.domain.Pageable
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.IOException
;
import
java.util.List
;
import
java.util.Map
;
/**
/**
* @author Zheng Jie
* @author Zheng Jie
* @date 2019-04-10
* @date 2019-04-10
*/
*/
public
interface
DictService
{
public
interface
DictService
{
Object
queryAll
(
DictQueryCriteria
dict
,
Pageable
pageable
);
Map
<
String
,
Object
>
queryAll
(
DictQueryCriteria
dict
,
Pageable
pageable
);
List
<
DictDTO
>
queryAll
(
DictQueryCriteria
dict
);
DictDTO
findById
(
Long
id
);
DictDTO
findById
(
Long
id
);
...
@@ -20,4 +27,6 @@ public interface DictService {
...
@@ -20,4 +27,6 @@ public interface DictService {
void
update
(
Dict
resources
);
void
update
(
Dict
resources
);
void
delete
(
Long
id
);
void
delete
(
Long
id
);
void
download
(
List
<
DictDTO
>
queryAll
,
HttpServletResponse
response
)
throws
IOException
;
}
}
\ No newline at end of file
eladmin-system/src/main/java/me/zhengjie/modules/system/service/JobService.java
View file @
905c8c64
...
@@ -5,6 +5,11 @@ import me.zhengjie.modules.system.service.dto.JobDTO;
...
@@ -5,6 +5,11 @@ import me.zhengjie.modules.system.service.dto.JobDTO;
import
me.zhengjie.modules.system.service.dto.JobQueryCriteria
;
import
me.zhengjie.modules.system.service.dto.JobQueryCriteria
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.data.domain.Pageable
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.IOException
;
import
java.util.List
;
import
java.util.Map
;
/**
/**
* @author Zheng Jie
* @author Zheng Jie
* @date 2019-03-29
* @date 2019-03-29
...
@@ -19,5 +24,9 @@ public interface JobService {
...
@@ -19,5 +24,9 @@ public interface JobService {
void
delete
(
Long
id
);
void
delete
(
Long
id
);
Object
queryAll
(
JobQueryCriteria
criteria
,
Pageable
pageable
);
Map
<
String
,
Object
>
queryAll
(
JobQueryCriteria
criteria
,
Pageable
pageable
);
List
<
JobDTO
>
queryAll
(
JobQueryCriteria
criteria
);
void
download
(
List
<
JobDTO
>
queryAll
,
HttpServletResponse
response
)
throws
IOException
;
}
}
\ No newline at end of file
eladmin-system/src/main/java/me/zhengjie/modules/system/service/MenuService.java
View file @
905c8c64
...
@@ -4,6 +4,9 @@ import me.zhengjie.modules.system.domain.Menu;
...
@@ -4,6 +4,9 @@ import me.zhengjie.modules.system.domain.Menu;
import
me.zhengjie.modules.system.service.dto.MenuDTO
;
import
me.zhengjie.modules.system.service.dto.MenuDTO
;
import
me.zhengjie.modules.system.service.dto.MenuQueryCriteria
;
import
me.zhengjie.modules.system.service.dto.MenuQueryCriteria
;
import
me.zhengjie.modules.system.service.dto.RoleSmallDTO
;
import
me.zhengjie.modules.system.service.dto.RoleSmallDTO
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.IOException
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.Set
;
import
java.util.Set
;
...
@@ -37,4 +40,6 @@ public interface MenuService {
...
@@ -37,4 +40,6 @@ public interface MenuService {
Menu
findOne
(
Long
id
);
Menu
findOne
(
Long
id
);
void
delete
(
Set
<
Menu
>
menuSet
);
void
delete
(
Set
<
Menu
>
menuSet
);
void
download
(
List
<
MenuDTO
>
queryAll
,
HttpServletResponse
response
)
throws
IOException
;
}
}
eladmin-system/src/main/java/me/zhengjie/modules/system/service/RoleService.java
View file @
905c8c64
...
@@ -5,6 +5,9 @@ import me.zhengjie.modules.system.service.dto.RoleDTO;
...
@@ -5,6 +5,9 @@ import me.zhengjie.modules.system.service.dto.RoleDTO;
import
me.zhengjie.modules.system.service.dto.RoleQueryCriteria
;
import
me.zhengjie.modules.system.service.dto.RoleQueryCriteria
;
import
me.zhengjie.modules.system.service.dto.RoleSmallDTO
;
import
me.zhengjie.modules.system.service.dto.RoleSmallDTO
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.data.domain.Pageable
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.IOException
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Set
;
import
java.util.Set
;
...
@@ -35,4 +38,6 @@ public interface RoleService {
...
@@ -35,4 +38,6 @@ public interface RoleService {
Object
queryAll
(
RoleQueryCriteria
criteria
,
Pageable
pageable
);
Object
queryAll
(
RoleQueryCriteria
criteria
,
Pageable
pageable
);
List
<
RoleDTO
>
queryAll
(
RoleQueryCriteria
criteria
);
List
<
RoleDTO
>
queryAll
(
RoleQueryCriteria
criteria
);
void
download
(
List
<
RoleDTO
>
queryAll
,
HttpServletResponse
response
)
throws
IOException
;
}
}
eladmin-system/src/main/java/me/zhengjie/modules/system/service/dto/DeptDTO.java
View file @
905c8c64
...
@@ -4,6 +4,7 @@ import com.fasterxml.jackson.annotation.JsonInclude;
...
@@ -4,6 +4,7 @@ import com.fasterxml.jackson.annotation.JsonInclude;
import
lombok.Getter
;
import
lombok.Getter
;
import
lombok.Setter
;
import
lombok.Setter
;
import
javax.validation.constraints.NotNull
;
import
javax.validation.constraints.NotNull
;
import
java.io.Serializable
;
import
java.sql.Timestamp
;
import
java.sql.Timestamp
;
import
java.util.List
;
import
java.util.List
;
...
@@ -13,7 +14,7 @@ import java.util.List;
...
@@ -13,7 +14,7 @@ import java.util.List;
*/
*/
@Getter
@Getter
@Setter
@Setter
public
class
DeptDTO
{
public
class
DeptDTO
implements
Serializable
{
// ID
// ID
private
Long
id
;
private
Long
id
;
...
...
eladmin-system/src/main/java/me/zhengjie/modules/system/service/dto/DeptQueryCriteria.java
View file @
905c8c64
...
@@ -2,6 +2,8 @@ package me.zhengjie.modules.system.service.dto;
...
@@ -2,6 +2,8 @@ package me.zhengjie.modules.system.service.dto;
import
lombok.Data
;
import
lombok.Data
;
import
me.zhengjie.annotation.Query
;
import
me.zhengjie.annotation.Query
;
import
java.sql.Timestamp
;
import
java.util.Set
;
import
java.util.Set
;
/**
/**
...
@@ -22,4 +24,10 @@ public class DeptQueryCriteria{
...
@@ -22,4 +24,10 @@ public class DeptQueryCriteria{
@Query
@Query
private
Long
pid
;
private
Long
pid
;
@Query
(
type
=
Query
.
Type
.
GREATER_THAN
,
propName
=
"createTime"
)
private
Timestamp
startTime
;
@Query
(
type
=
Query
.
Type
.
LESS_THAN
,
propName
=
"createTime"
)
private
Timestamp
endTime
;
}
}
\ No newline at end of file
eladmin-system/src/main/java/me/zhengjie/modules/system/service/dto/DictDTO.java
View file @
905c8c64
...
@@ -3,7 +3,9 @@ package me.zhengjie.modules.system.service.dto;
...
@@ -3,7 +3,9 @@ package me.zhengjie.modules.system.service.dto;
import
lombok.Getter
;
import
lombok.Getter
;
import
lombok.Setter
;
import
lombok.Setter
;
import
java.io.Serializable
;
import
java.sql.Timestamp
;
import
java.sql.Timestamp
;
import
java.util.List
;
/**
/**
* @author Zheng Jie
* @author Zheng Jie
...
@@ -11,7 +13,7 @@ import java.sql.Timestamp;
...
@@ -11,7 +13,7 @@ import java.sql.Timestamp;
*/
*/
@Getter
@Getter
@Setter
@Setter
public
class
DictDTO
{
public
class
DictDTO
implements
Serializable
{
private
Long
id
;
private
Long
id
;
...
@@ -19,5 +21,7 @@ public class DictDTO{
...
@@ -19,5 +21,7 @@ public class DictDTO{
private
String
remark
;
private
String
remark
;
private
List
<
DictDetailDTO
>
dictDetails
;
private
Timestamp
createTime
;
private
Timestamp
createTime
;
}
}
eladmin-system/src/main/java/me/zhengjie/modules/system/service/dto/DictDetailDTO.java
View file @
905c8c64
...
@@ -3,6 +3,7 @@ package me.zhengjie.modules.system.service.dto;
...
@@ -3,6 +3,7 @@ package me.zhengjie.modules.system.service.dto;
import
lombok.Getter
;
import
lombok.Getter
;
import
lombok.Setter
;
import
lombok.Setter
;
import
java.io.Serializable
;
import
java.sql.Timestamp
;
import
java.sql.Timestamp
;
/**
/**
...
@@ -11,7 +12,7 @@ import java.sql.Timestamp;
...
@@ -11,7 +12,7 @@ import java.sql.Timestamp;
*/
*/
@Getter
@Getter
@Setter
@Setter
public
class
DictDetailDTO
{
public
class
DictDetailDTO
implements
Serializable
{
private
Long
id
;
private
Long
id
;
...
...
eladmin-system/src/main/java/me/zhengjie/modules/system/service/dto/JobDTO.java
View file @
905c8c64
...
@@ -3,6 +3,8 @@ package me.zhengjie.modules.system.service.dto;
...
@@ -3,6 +3,8 @@ package me.zhengjie.modules.system.service.dto;
import
lombok.Getter
;
import
lombok.Getter
;
import
lombok.NoArgsConstructor
;
import
lombok.NoArgsConstructor
;
import
lombok.Setter
;
import
lombok.Setter
;
import
java.io.Serializable
;
import
java.sql.Timestamp
;
import
java.sql.Timestamp
;
/**
/**
...
@@ -12,7 +14,7 @@ import java.sql.Timestamp;
...
@@ -12,7 +14,7 @@ import java.sql.Timestamp;
@Getter
@Getter
@Setter
@Setter
@NoArgsConstructor
@NoArgsConstructor
public
class
JobDTO
{
public
class
JobDTO
implements
Serializable
{
private
Long
id
;
private
Long
id
;
...
...
Prev
1
2
3
4
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