rev:增加创建时间,字段优化

This commit is contained in:
2025-03-14 10:08:05 +08:00
parent 965a9bda2b
commit ee6bec05eb
6 changed files with 15 additions and 8 deletions

View File

@@ -32,8 +32,8 @@ public class BaseQuery<T> {
/**
* 创建时间范围查询
*/
private Date start_time;
private Date end_time;
private String begin_time;
private String end_time;
/**
@@ -44,8 +44,8 @@ public class BaseQuery<T> {
* 通过buid构建
*/
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()
, "endTime", QParam.builder().k(new String[]{"create_time"}).type(QueryTEnum.LE).build()
, "begin_time", QParam.builder().k(new String[]{"create_time"}).type(QueryTEnum.GT).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()
);

View File

@@ -30,6 +30,9 @@ public enum QueryTEnum {
LE((q, k, v) -> {
q.le(k[0], v);
}),
GT((q, k, v) -> {
q.gt(k[0], v);
}),
BY((q, k, v) -> {
q.orderByDesc(k[0], v);
}),

View File

@@ -80,13 +80,14 @@ public class ToolLocalStorage implements Serializable {
*/
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.name = name;
this.suffix = suffix;
this.path = path;
this.type = type;
this.size = size;
this.create_time = create_time;
}

View File

@@ -115,7 +115,8 @@ public class AutoSaveIvtExcel {
"xls",
path,
type,
"");
"",
DateUtil.now());
iToolLocalStorageService.save(localStorage);
workbook.write(fileOut);

View File

@@ -110,7 +110,8 @@ public class AutoSaveIvtExcelTwo {
"xls",
path,
type,
"");
"",
DateUtil.now());
iToolLocalStorageService.save(localStorage);
workbook.write(fileOut);

View File

@@ -131,7 +131,8 @@ public class AutoSendIvtExcel {
"xls",
path,
type,
"");
"",
DateUtil.now());
iToolLocalStorageService.save(localStorage);
}
workbook.write(fileOut);