|
|
@ -18,6 +18,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
import javax.annotation.Resource;
|
|
|
@ -43,6 +44,9 @@ public class OcrTaskchildDubiousFileServiceImpl extends ServiceImpl<OcrTaskchild
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
|
private OcrTaskchildPictureService ocrTaskchildPictureService;
|
|
|
|
private OcrTaskchildPictureService ocrTaskchildPictureService;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
|
|
|
private OcrPictureInfoService ocrPictureInfoService;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 分页查询可疑文件夹下的图片信息,并返回对应的状态,相似度,时间值等
|
|
|
|
* 分页查询可疑文件夹下的图片信息,并返回对应的状态,相似度,时间值等
|
|
|
|
*
|
|
|
|
*
|
|
|
@ -112,6 +116,22 @@ public class OcrTaskchildDubiousFileServiceImpl extends ServiceImpl<OcrTaskchild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<OcrTaskChildPictureVo> records = taskChildPictures.stream().skip((pageNo - 1) * pageSize).limit(pageSize).collect(Collectors.toList());
|
|
|
|
List<OcrTaskChildPictureVo> records = taskChildPictures.stream().skip((pageNo - 1) * pageSize).limit(pageSize).collect(Collectors.toList());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//补齐数据
|
|
|
|
|
|
|
|
for (OcrTaskChildPictureVo taskChildPictureVo : records) {
|
|
|
|
|
|
|
|
//赋值宽高
|
|
|
|
|
|
|
|
LambdaQueryWrapper<OcrPictureInfo> ocrPictureInfoLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
|
|
|
|
|
|
|
ocrPictureInfoLambdaQueryWrapper.eq(OcrPictureInfo::getPictureId,taskChildPictureVo.getPictureId());
|
|
|
|
|
|
|
|
OcrPictureInfo ocrPictureInfo = ocrPictureInfoService.getOne(ocrPictureInfoLambdaQueryWrapper);
|
|
|
|
|
|
|
|
if (ocrPictureInfo != null && ocrPictureInfo.getImgMeasure() != null) {
|
|
|
|
|
|
|
|
String[] dimensions = ocrPictureInfo.getImgMeasure().split("x");
|
|
|
|
|
|
|
|
if (dimensions.length == 2) {
|
|
|
|
|
|
|
|
taskChildPictureVo.setWide(dimensions[0]);
|
|
|
|
|
|
|
|
taskChildPictureVo.setHigh(dimensions[1]);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
objectPage.setRecords(records);
|
|
|
|
objectPage.setRecords(records);
|
|
|
|
objectPage.setTotal(taskChildPictures.size());
|
|
|
|
objectPage.setTotal(taskChildPictures.size());
|
|
|
|
}
|
|
|
|
}
|
|
|
|