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":
|
||||
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":
|
||||
|
@ -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":
|
||||
|
@ -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":
|
||||
|
Loading…
Reference in New Issue
Block a user