提交 586b3ef2 authored 作者: junjie's avatar junjie

feat(视图): fix sql

上级 b3a53f9a
...@@ -192,21 +192,21 @@ public class ChartViewService { ...@@ -192,21 +192,21 @@ public class ChartViewService {
public String transMysqlFilterTerm(String term) { public String transMysqlFilterTerm(String term) {
switch (term) { switch (term) {
case "eq": case "eq":
return "="; return " = ";
case "not_eq": case "not_eq":
return "<>"; return " <> ";
case "lt": case "lt":
return "<"; return " < ";
case "le": case "le":
return "<="; return " <= ";
case "gt": case "gt":
return ">"; return " > ";
case "ge": case "ge":
return ">="; return " >= ";
case "null": case "null":
return "IS NULL"; return " IS NULL ";
case "not_null": case "not_null":
return "IS NOT NULL"; return " IS NOT NULL ";
default: default:
return ""; return "";
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论