rev:增加创建时间,字段优化
This commit is contained in:
@@ -32,8 +32,8 @@ public class BaseQuery<T> {
|
|||||||
/**
|
/**
|
||||||
* 创建时间范围查询
|
* 创建时间范围查询
|
||||||
*/
|
*/
|
||||||
private Date start_time;
|
private String begin_time;
|
||||||
private Date end_time;
|
private String end_time;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -44,8 +44,8 @@ public class BaseQuery<T> {
|
|||||||
* 通过buid构建
|
* 通过buid构建
|
||||||
*/
|
*/
|
||||||
public Map<String, QParam> doP = MapOf.of("blurry", QParam.builder().k(new String[]{"name"}).type(QueryTEnum.LK).build()
|
public Map<String, QParam> doP = MapOf.of("blurry", QParam.builder().k(new String[]{"name"}).type(QueryTEnum.LK).build()
|
||||||
, "startTime", QParam.builder().k(new String[]{"create_time"}).type(QueryTEnum.LT).build()
|
, "begin_time", QParam.builder().k(new String[]{"create_time"}).type(QueryTEnum.GT).build()
|
||||||
, "endTime", QParam.builder().k(new String[]{"create_time"}).type(QueryTEnum.LE).build()
|
, "end_time", QParam.builder().k(new String[]{"create_time"}).type(QueryTEnum.LE).build()
|
||||||
, "sort", QParam.builder().k(new String[]{"sort"}).type(QueryTEnum.BY).build()
|
, "sort", QParam.builder().k(new String[]{"sort"}).type(QueryTEnum.BY).build()
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -30,6 +30,9 @@ public enum QueryTEnum {
|
|||||||
LE((q, k, v) -> {
|
LE((q, k, v) -> {
|
||||||
q.le(k[0], v);
|
q.le(k[0], v);
|
||||||
}),
|
}),
|
||||||
|
GT((q, k, v) -> {
|
||||||
|
q.gt(k[0], v);
|
||||||
|
}),
|
||||||
BY((q, k, v) -> {
|
BY((q, k, v) -> {
|
||||||
q.orderByDesc(k[0], v);
|
q.orderByDesc(k[0], v);
|
||||||
}),
|
}),
|
||||||
|
|||||||
@@ -80,13 +80,14 @@ public class ToolLocalStorage implements Serializable {
|
|||||||
*/
|
*/
|
||||||
private String update_time;
|
private String update_time;
|
||||||
|
|
||||||
public ToolLocalStorage(String realName, String name, String suffix, String path, String type, String size) {
|
public ToolLocalStorage(String realName, String name, String suffix, String path, String type, String size, String create_time) {
|
||||||
this.real_name = realName;
|
this.real_name = realName;
|
||||||
this.name = name;
|
this.name = name;
|
||||||
this.suffix = suffix;
|
this.suffix = suffix;
|
||||||
this.path = path;
|
this.path = path;
|
||||||
this.type = type;
|
this.type = type;
|
||||||
this.size = size;
|
this.size = size;
|
||||||
|
this.create_time = create_time;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -115,7 +115,8 @@ public class AutoSaveIvtExcel {
|
|||||||
"xls",
|
"xls",
|
||||||
path,
|
path,
|
||||||
type,
|
type,
|
||||||
"");
|
"",
|
||||||
|
DateUtil.now());
|
||||||
iToolLocalStorageService.save(localStorage);
|
iToolLocalStorageService.save(localStorage);
|
||||||
workbook.write(fileOut);
|
workbook.write(fileOut);
|
||||||
|
|
||||||
|
|||||||
@@ -110,7 +110,8 @@ public class AutoSaveIvtExcelTwo {
|
|||||||
"xls",
|
"xls",
|
||||||
path,
|
path,
|
||||||
type,
|
type,
|
||||||
"");
|
"",
|
||||||
|
DateUtil.now());
|
||||||
iToolLocalStorageService.save(localStorage);
|
iToolLocalStorageService.save(localStorage);
|
||||||
workbook.write(fileOut);
|
workbook.write(fileOut);
|
||||||
|
|
||||||
|
|||||||
@@ -131,7 +131,8 @@ public class AutoSendIvtExcel {
|
|||||||
"xls",
|
"xls",
|
||||||
path,
|
path,
|
||||||
type,
|
type,
|
||||||
"");
|
"",
|
||||||
|
DateUtil.now());
|
||||||
iToolLocalStorageService.save(localStorage);
|
iToolLocalStorageService.save(localStorage);
|
||||||
}
|
}
|
||||||
workbook.write(fileOut);
|
workbook.write(fileOut);
|
||||||
|
|||||||
Reference in New Issue
Block a user