diff --git a/backend/src/main/java/io/dataease/provider/engine/doris/DorisQueryProvider.java b/backend/src/main/java/io/dataease/provider/engine/doris/DorisQueryProvider.java index 5c6cc33712..cd1af62e89 100644 --- a/backend/src/main/java/io/dataease/provider/engine/doris/DorisQueryProvider.java +++ b/backend/src/main/java/io/dataease/provider/engine/doris/DorisQueryProvider.java @@ -1158,11 +1158,11 @@ public class DorisQueryProvider extends QueryProvider { case "y": return "%Y"; case "y_Q": - return "CONCAT(%s,'" + split + "',%s)"; + return "CONCAT(%s,'" + split + "','Q',%s)"; case "y_M": return "%Y" + split + "%m"; case "y_W": - return "%Y" + split + "%u"; + return "%Y" + split + "W%u"; case "y_M_d": return "%Y" + split + "%m" + split + "%d"; case "H_m_s": diff --git a/backend/src/main/java/io/dataease/provider/engine/mysql/MysqlQueryProvider.java b/backend/src/main/java/io/dataease/provider/engine/mysql/MysqlQueryProvider.java index 070dc44f76..3caac20d8f 100644 --- a/backend/src/main/java/io/dataease/provider/engine/mysql/MysqlQueryProvider.java +++ b/backend/src/main/java/io/dataease/provider/engine/mysql/MysqlQueryProvider.java @@ -1145,11 +1145,11 @@ public class MysqlQueryProvider extends QueryProvider { case "y": return "%Y"; case "y_Q": - return "CONCAT(%s,'" + split + "',%s)"; + return "CONCAT(%s,'" + split + "','Q',%s)"; case "y_M": return "%Y" + split + "%m"; case "y_W": - return "%Y" + split + "%u"; + return "%Y" + split + "W%u"; case "y_M_d": return "%Y" + split + "%m" + split + "%d"; case "H_m_s": 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 1d6d357b7e..bad34ddb82 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 @@ -1178,11 +1178,11 @@ public class MysqlQueryProvider extends QueryProvider { case "y": return "%Y"; case "y_Q": - return "CONCAT(%s,'" + split + "',%s)"; + return "CONCAT(%s,'" + split + "','Q',%s)"; case "y_M": return "%Y" + split + "%m"; case "y_W": - return "%Y" + split + "%u"; + return "%Y" + split + "W%u"; case "y_M_d": return "%Y" + split + "%m" + split + "%d"; case "H_m_s":