|
|
@ -44,17 +44,6 @@ public class TaskQueue {
|
|
|
|
public static boolean pictureDisposePushData(PictureSourceResult pictureSourceResult, OcrPictureService ocrPictureService, OcrPrevailCloudLogService ocrPrevailCloudLogService) {
|
|
|
|
public static boolean pictureDisposePushData(PictureSourceResult pictureSourceResult, OcrPictureService ocrPictureService, OcrPrevailCloudLogService ocrPrevailCloudLogService) {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
Long taskId = pictureSourceResult.getTaskId();
|
|
|
|
Long taskId = pictureSourceResult.getTaskId();
|
|
|
|
OcrPrevailCloudLog ocrPrevailCloudLog = OcrPrevailCloudLog.builder()
|
|
|
|
|
|
|
|
.formId(pictureSourceResult.getTaskId())
|
|
|
|
|
|
|
|
.requestParam(pictureSourceResult.getRequestParam().toString())
|
|
|
|
|
|
|
|
.responseParam(pictureSourceResult.toString())
|
|
|
|
|
|
|
|
.type(PrevailCloudConstant.PULL_PICTURE_SOURCE)
|
|
|
|
|
|
|
|
.status(100)
|
|
|
|
|
|
|
|
.build();
|
|
|
|
|
|
|
|
ocrPrevailCloudLogService.save(ocrPrevailCloudLog);
|
|
|
|
|
|
|
|
resultSet.add(String.valueOf(taskId));
|
|
|
|
|
|
|
|
pictureDisposeQueue.put(pictureSourceResult);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
OcrPicture ocrPicture = ocrPictureService.selectByRemark(String.valueOf(taskId));
|
|
|
|
OcrPicture ocrPicture = ocrPictureService.selectByRemark(String.valueOf(taskId));
|
|
|
|
if (ocrPicture != null) {
|
|
|
|
if (ocrPicture != null) {
|
|
|
|
OcrTaskchildPicture taskchildPicture = ocrPictureService.getOcrTaskChildPictureByPictureId(ocrPicture.getId().toString());
|
|
|
|
OcrTaskchildPicture taskchildPicture = ocrPictureService.getOcrTaskChildPictureByPictureId(ocrPicture.getId().toString());
|
|
|
@ -68,6 +57,17 @@ public class TaskQueue {
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//添加日志
|
|
|
|
|
|
|
|
OcrPrevailCloudLog ocrPrevailCloudLog = OcrPrevailCloudLog.builder()
|
|
|
|
|
|
|
|
.formId(pictureSourceResult.getTaskId())
|
|
|
|
|
|
|
|
.requestParam(pictureSourceResult.getRequestParam().toString())
|
|
|
|
|
|
|
|
.responseParam(pictureSourceResult.toString())
|
|
|
|
|
|
|
|
.type(PrevailCloudConstant.PULL_PICTURE_SOURCE)
|
|
|
|
|
|
|
|
.status(100)
|
|
|
|
|
|
|
|
.build();
|
|
|
|
|
|
|
|
ocrPrevailCloudLogService.save(ocrPrevailCloudLog);
|
|
|
|
|
|
|
|
resultSet.add(String.valueOf(taskId));
|
|
|
|
|
|
|
|
pictureDisposeQueue.put(pictureSourceResult);
|
|
|
|
} catch (InterruptedException e) {
|
|
|
|
} catch (InterruptedException e) {
|
|
|
|
OcrPrevailCloudLog ocrPrevailCloudLog = OcrPrevailCloudLog.builder()
|
|
|
|
OcrPrevailCloudLog ocrPrevailCloudLog = OcrPrevailCloudLog.builder()
|
|
|
|
.formId(pictureSourceResult.getTaskId())
|
|
|
|
.formId(pictureSourceResult.getTaskId())
|
|
|
|