Merge pull request 'fix: 修复图片查询,阈值区间比对不正确问题' (#2) from fix/queryPictureByIzsimilarityNull into test

Reviewed-on: #2
pull/3/head
yaoshuli 1 year ago
commit b51d6bbc04

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