refactor: 季度、周格式增加字母标识

This commit is contained in:
junjun 2023-05-25 13:23:36 +08:00
parent 483f477fbe
commit 69598d0530
3 changed files with 6 additions and 6 deletions

View File

@ -1158,11 +1158,11 @@ public class DorisQueryProvider extends QueryProvider {
case "y": case "y":
return "%Y"; return "%Y";
case "y_Q": case "y_Q":
return "CONCAT(%s,'" + split + "',%s)"; return "CONCAT(%s,'" + split + "','Q',%s)";
case "y_M": case "y_M":
return "%Y" + split + "%m"; return "%Y" + split + "%m";
case "y_W": case "y_W":
return "%Y" + split + "%u"; return "%Y" + split + "W%u";
case "y_M_d": case "y_M_d":
return "%Y" + split + "%m" + split + "%d"; return "%Y" + split + "%m" + split + "%d";
case "H_m_s": case "H_m_s":

View File

@ -1145,11 +1145,11 @@ public class MysqlQueryProvider extends QueryProvider {
case "y": case "y":
return "%Y"; return "%Y";
case "y_Q": case "y_Q":
return "CONCAT(%s,'" + split + "',%s)"; return "CONCAT(%s,'" + split + "','Q',%s)";
case "y_M": case "y_M":
return "%Y" + split + "%m"; return "%Y" + split + "%m";
case "y_W": case "y_W":
return "%Y" + split + "%u"; return "%Y" + split + "W%u";
case "y_M_d": case "y_M_d":
return "%Y" + split + "%m" + split + "%d"; return "%Y" + split + "%m" + split + "%d";
case "H_m_s": case "H_m_s":

View File

@ -1178,11 +1178,11 @@ public class MysqlQueryProvider extends QueryProvider {
case "y": case "y":
return "%Y"; return "%Y";
case "y_Q": case "y_Q":
return "CONCAT(%s,'" + split + "',%s)"; return "CONCAT(%s,'" + split + "','Q',%s)";
case "y_M": case "y_M":
return "%Y" + split + "%m"; return "%Y" + split + "%m";
case "y_W": case "y_W":
return "%Y" + split + "%u"; return "%Y" + split + "W%u";
case "y_M_d": case "y_M_d":
return "%Y" + split + "%m" + split + "%d"; return "%Y" + split + "%m" + split + "%d";
case "H_m_s": case "H_m_s":