forked from github/dataease
refactor: 季度、周格式增加字母标识
This commit is contained in:
parent
483f477fbe
commit
69598d0530
@ -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":
|
||||||
|
@ -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":
|
||||||
|
@ -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":
|
||||||
|
Loading…
Reference in New Issue
Block a user