Commit 776cee4b authored by dqjdda's avatar dqjdda
Browse files

代码优化

parent aaeb67b2
...@@ -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);
} }
......
...@@ -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
...@@ -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;
} }
...@@ -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;
} }
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