Pre Merge pull request !17 from 光速蜗牛/N/A

This commit is contained in:
光速蜗牛 2020-08-28 10:59:23 +08:00 committed by Gitee
commit 8398751678
1 changed files with 2 additions and 2 deletions

View File

@ -268,12 +268,12 @@ public class QueryGenerator {
if (val.length() == 0) {
return null;
}
QueryRuleEnum rule =null;
QueryRuleEnum rule = null;
//update-begin--Author:scott Date:20190724 forinitQueryWrapper组装sql查询条件错误 #284-------------------
//TODO 此处规则只适用于 le lt ge gt
// step 2 .>= =<
if (rule == null && val.length() >= 3) {
if (val.length() >= 3) {
if(QUERY_SEPARATE_KEYWORD.equals(val.substring(2, 3))){
rule = QueryRuleEnum.getByValue(val.substring(0, 2));
}