|
|
@ -274,10 +274,10 @@ public class OcrPictureController extends BaseController {
|
|
|
|
if (StringUtils.isNotBlank(ordertype)) {
|
|
|
|
if (StringUtils.isNotBlank(ordertype)) {
|
|
|
|
if (ordertype.equals("asc")) {
|
|
|
|
if (ordertype.equals("asc")) {
|
|
|
|
queryWrapper.orderByAsc("similarity_score");
|
|
|
|
queryWrapper.orderByAsc("similarity_score");
|
|
|
|
queryWrapper.orderByDesc("classificationid");
|
|
|
|
queryWrapper.orderByDesc("complete_similar_group_id");
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
queryWrapper.orderByDesc("similarity_score");
|
|
|
|
queryWrapper.orderByDesc("similarity_score");
|
|
|
|
queryWrapper.orderByDesc("classificationid");
|
|
|
|
queryWrapper.orderByDesc("complete_similar_group_id");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -322,7 +322,6 @@ public class OcrPictureController extends BaseController {
|
|
|
|
queryWrapper.eq("tenant_id", tenantId);
|
|
|
|
queryWrapper.eq("tenant_id", tenantId);
|
|
|
|
queryWrapper.isNotNull("local_pictrue_url");
|
|
|
|
queryWrapper.isNotNull("local_pictrue_url");
|
|
|
|
Page<OcrPicture> page = new Page<OcrPicture>(pageNo, pageSize);
|
|
|
|
Page<OcrPicture> page = new Page<OcrPicture>(pageNo, pageSize);
|
|
|
|
queryWrapper.orderByAsc("complete_similar_group_id");
|
|
|
|
|
|
|
|
IPage<OcrPicture> pageList = ocrPictureService.page(page, queryWrapper);
|
|
|
|
IPage<OcrPicture> pageList = ocrPictureService.page(page, queryWrapper);
|
|
|
|
List<OcrPicture> ocrPictures = pageList.getRecords();
|
|
|
|
List<OcrPicture> ocrPictures = pageList.getRecords();
|
|
|
|
List<OcrPicture> ocrPicturesNew = new ArrayList<>();
|
|
|
|
List<OcrPicture> ocrPicturesNew = new ArrayList<>();
|
|
|
|