高级搜索

This commit is contained in:
zhn
2022-05-31 11:11:45 +08:00
parent f53278df09
commit 761ad0a0a2
@@ -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 + " ");
}
}
}
}