|
|
|
@ -93,10 +93,7 @@ public class SearchParaFormatting {
|
|
|
|
|
//相等
|
|
|
|
|
// queryWrapper.between(key,sectionInts.get(0),sectionInts.get(1));
|
|
|
|
|
if (sectionInts.get(0) == 0) {
|
|
|
|
|
// 构建查询条件:key 为 null 或者在指定区间内
|
|
|
|
|
queryWrapper.isNull(key);
|
|
|
|
|
queryWrapper.or();
|
|
|
|
|
queryWrapper.between(key, sectionInts.get(0), sectionInts.get(1));
|
|
|
|
|
queryWrapper.apply("( "+key+" IS NULL OR "+key+" BETWEEN "+sectionInts.get(0)+" AND "+sectionInts.get(1)+")");;
|
|
|
|
|
} else {
|
|
|
|
|
// 相等
|
|
|
|
|
queryWrapper.between(key, sectionInts.get(0), sectionInts.get(1));
|
|
|
|
|