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
776cee4b
Commit
776cee4b
authored
Nov 24, 2019
by
dqjdda
Browse files
代码优化
parent
aaeb67b2
Changes
24
Show whitespace changes
Inline
Side-by-side
eladmin-tools/src/main/java/me/zhengjie/rest/QiniuController.java
View file @
776cee4b
...
@@ -52,7 +52,7 @@ public class QiniuController {
...
@@ -52,7 +52,7 @@ public class QiniuController {
@Log
(
"导出数据"
)
@Log
(
"导出数据"
)
@ApiOperation
(
"导出数据"
)
@ApiOperation
(
"导出数据"
)
@GetMapping
(
value
=
"/download
/list
"
)
@GetMapping
(
value
=
"/download"
)
public
void
download
(
HttpServletResponse
response
,
QiniuQueryCriteria
criteria
)
throws
IOException
{
public
void
download
(
HttpServletResponse
response
,
QiniuQueryCriteria
criteria
)
throws
IOException
{
qiNiuService
.
downloadList
(
qiNiuService
.
queryAll
(
criteria
),
response
);
qiNiuService
.
downloadList
(
qiNiuService
.
queryAll
(
criteria
),
response
);
}
}
...
...
eladmin-tools/src/main/java/me/zhengjie/service/dto/LocalStorageQueryCriteria.java
View file @
776cee4b
...
@@ -2,6 +2,8 @@ package me.zhengjie.service.dto;
...
@@ -2,6 +2,8 @@ package me.zhengjie.service.dto;
import
lombok.Data
;
import
lombok.Data
;
import
java.sql.Timestamp
;
import
java.sql.Timestamp
;
import
java.util.List
;
import
me.zhengjie.annotation.Query
;
import
me.zhengjie.annotation.Query
;
/**
/**
...
@@ -15,9 +17,6 @@ public class LocalStorageQueryCriteria{
...
@@ -15,9 +17,6 @@ public class LocalStorageQueryCriteria{
@Query
(
blurry
=
"name,suffix,type,operate,size"
)
@Query
(
blurry
=
"name,suffix,type,operate,size"
)
private
String
blurry
;
private
String
blurry
;
@Query
(
type
=
Query
.
Type
.
GREATER_THAN
,
propName
=
"createTime"
)
@Query
(
type
=
Query
.
Type
.
BETWEEN
)
private
Timestamp
startTime
;
private
List
<
Timestamp
>
createTime
;
@Query
(
type
=
Query
.
Type
.
LESS_THAN
,
propName
=
"createTime"
)
private
Timestamp
endTime
;
}
}
\ No newline at end of file
eladmin-tools/src/main/java/me/zhengjie/service/dto/PictureQueryCriteria.java
View file @
776cee4b
...
@@ -4,6 +4,7 @@ import lombok.Data;
...
@@ -4,6 +4,7 @@ import lombok.Data;
import
me.zhengjie.annotation.Query
;
import
me.zhengjie.annotation.Query
;
import
java.sql.Timestamp
;
import
java.sql.Timestamp
;
import
java.util.List
;
/**
/**
* sm.ms图床
* sm.ms图床
...
@@ -20,9 +21,6 @@ public class PictureQueryCriteria{
...
@@ -20,9 +21,6 @@ public class PictureQueryCriteria{
@Query
(
type
=
Query
.
Type
.
INNER_LIKE
)
@Query
(
type
=
Query
.
Type
.
INNER_LIKE
)
private
String
username
;
private
String
username
;
@Query
(
type
=
Query
.
Type
.
GREATER_THAN
,
propName
=
"createTime"
)
@Query
(
type
=
Query
.
Type
.
BETWEEN
)
private
Timestamp
startTime
;
private
List
<
Timestamp
>
createTime
;
@Query
(
type
=
Query
.
Type
.
LESS_THAN
,
propName
=
"createTime"
)
private
Timestamp
endTime
;
}
}
eladmin-tools/src/main/java/me/zhengjie/service/dto/QiniuQueryCriteria.java
View file @
776cee4b
...
@@ -4,6 +4,7 @@ import lombok.Data;
...
@@ -4,6 +4,7 @@ import lombok.Data;
import
me.zhengjie.annotation.Query
;
import
me.zhengjie.annotation.Query
;
import
java.sql.Timestamp
;
import
java.sql.Timestamp
;
import
java.util.List
;
/**
/**
* @author Zheng Jie
* @author Zheng Jie
...
@@ -15,9 +16,6 @@ public class QiniuQueryCriteria{
...
@@ -15,9 +16,6 @@ public class QiniuQueryCriteria{
@Query
(
type
=
Query
.
Type
.
INNER_LIKE
)
@Query
(
type
=
Query
.
Type
.
INNER_LIKE
)
private
String
key
;
private
String
key
;
@Query
(
type
=
Query
.
Type
.
GREATER_THAN
,
propName
=
"updateTime"
)
@Query
(
type
=
Query
.
Type
.
BETWEEN
)
private
Timestamp
startTime
;
private
List
<
Timestamp
>
createTime
;
@Query
(
type
=
Query
.
Type
.
LESS_THAN
,
propName
=
"updateTime"
)
private
Timestamp
endTime
;
}
}
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