fix: 时间过滤
This commit is contained in:
parent
5cd1f1fd85
commit
c3b093201e
@ -1071,7 +1071,7 @@ public class MysqlQueryProvider extends QueryProvider {
|
|||||||
} else {
|
} else {
|
||||||
date = String.format(MySQLConstants.DATE_FORMAT, originName, StringUtils.isNotEmpty(field.getDateFormat()) ? field.getDateFormat() : MysqlConstants.DEFAULT_DATE_FORMAT);
|
date = String.format(MySQLConstants.DATE_FORMAT, originName, StringUtils.isNotEmpty(field.getDateFormat()) ? field.getDateFormat() : MysqlConstants.DEFAULT_DATE_FORMAT);
|
||||||
}
|
}
|
||||||
if (request.getOperator().equals("between")) {
|
if (request.getOperator().equals("between") && request.getDatasetTableField().getDeExtractType() != 1) {
|
||||||
whereName = String.format(MySQLConstants.UNIX_TIMESTAMP, date) + "*1000";
|
whereName = String.format(MySQLConstants.UNIX_TIMESTAMP, date) + "*1000";
|
||||||
} else {
|
} else {
|
||||||
if (StringUtils.equalsIgnoreCase(request.getDateStyle(), "y_Q")) {
|
if (StringUtils.equalsIgnoreCase(request.getDateStyle(), "y_Q")) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user