高级搜索
This commit is contained in:
+3
-3
@@ -5467,6 +5467,9 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
|
||||
//如果查询字段对应的搜索条件值为空,则不作处理
|
||||
if(StringUtils.isNotBlank(val)){
|
||||
count ++;//从第二个查询条件开始拼接type(and或or)
|
||||
if(count > 1){
|
||||
sb.append(" "+type + " ");
|
||||
}
|
||||
sb.append(" " + field + " ");
|
||||
//查询类型
|
||||
String ruleTemp = queryType(rule);
|
||||
@@ -5499,9 +5502,6 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
|
||||
sb.append("'" + val + "'");
|
||||
}
|
||||
}
|
||||
if(count > 1){
|
||||
sb.append(type + " ");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user