diff --git a/backend/src/main/java/io/dataease/provider/query/mysql/MysqlQueryProvider.java b/backend/src/main/java/io/dataease/provider/query/mysql/MysqlQueryProvider.java index 06a4821dc3..1d6d357b7e 100644 --- a/backend/src/main/java/io/dataease/provider/query/mysql/MysqlQueryProvider.java +++ b/backend/src/main/java/io/dataease/provider/query/mysql/MysqlQueryProvider.java @@ -1089,7 +1089,7 @@ public class MysqlQueryProvider extends QueryProvider { String.format(MysqlConstants.DATE_FORMAT, cast, "%Y"), String.format(MysqlConstants.QUARTER, String.format(MysqlConstants.DATE_FORMAT, field, MysqlConstants.DEFAULT_DATE_FORMAT))); } else { - whereName = String.format(MySQLConstants.DATE_FORMAT, cast, format); + whereName = String.format(MySQLConstants.FROM_UNIXTIME, cast, format); } } }