Skip to content
Snippets Groups Projects
Commit 188037f3 authored by Hemming,J. (Jacob)'s avatar Hemming,J. (Jacob)
Browse files

Back end matchType contrains fixed

parent 26498529
No related branches found
No related tags found
No related merge requests found
......@@ -48,20 +48,21 @@ func createConstraintBoolExpression(constraint *entity.QueryConstraintStruct, na
case "text":
value = fmt.Sprintf("\"%s\"", constraint.Value)
switch constraint.MatchType {
case "NEQ":
match = "!="
case "contains":
match = "IN"
case "startswith":
match = "LIKE"
case "excludes":
match = "NOT LIKE"
value = fmt.Sprintf("\"%s%%\"", constraint.Value)
case "endswith":
match = "LIKE"
value = fmt.Sprintf("\"_%s\"", constraint.Value)
default: //exact
default: //EQ
match = "=="
}
case "number":
value = constraint.Value
switch constraint.MatchType {
case "NEQ":
match = "!="
case "GT":
match = ">"
case "LT":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment