ocr识别-调用外部服务修改

This commit is contained in:
liyawei
2022-03-07 15:35:53 +08:00
parent f2857c1a1d
commit a270522e7d
2 changed files with 4 additions and 1 deletions
@@ -5,6 +5,7 @@ import com.jero.common.api.vo.Result;
import com.jero.modules.FeignClient.LocalToolFeignClient;
import com.jero.modules.ocr.entity.OcrRecordEO;
import com.jero.modules.ocr.entity.OcrResultEO;
import com.jero.modules.ocr.enums.FileSyncStateEnum;
import com.jero.modules.ocr.service.IOcrRecordEOService;
import com.jero.modules.ocr.service.IOcrRestfulService;
import com.jero.modules.ocr.util.Base64Util;
@@ -140,6 +141,7 @@ public class OcrRestfulServiceImpl implements IOcrRestfulService {
ocrRecordEO.setId(taskId);
ocrRecordEO.setFileName(fileName);
ocrRecordEO.setResultContent("转换中");
ocrRecordEO.setSyncState(FileSyncStateEnum.SYNC_NO.getValue());
ocrRecordEO.setStandNumber(getOcrEO.getStandNumber());
ocrRecordEO.setStandName(getOcrEO.getStandName());
ocrRecordEO.setFileType(getOcrEO.getFileType());
@@ -153,6 +155,7 @@ public class OcrRestfulServiceImpl implements IOcrRestfulService {
ocrRecordEO.setId(taskId);
ocrRecordEO.setFileName(fileName);
ocrRecordEO.setResultContent("转换中");
ocrRecordEO.setSyncState(FileSyncStateEnum.SYNC_NO.getValue());
ocrRecordEO.setStandNumber(getOcrEO.getStandNumber());
ocrRecordEO.setStandName(getOcrEO.getStandName());
ocrRecordEO.setFileType(getOcrEO.getFileType());