fix: 修复图片查询,阈值区间比对不正确问题

pull/2/head
shuliYao 1 year ago
parent 646ace6e5d
commit e86ff9f8fc

@ -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));

Loading…
Cancel
Save