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
@@ -12,7 +12,7 @@ import org.springframework.web.bind.annotation.RequestMethod;
* @date 2021/12/8 14:53
* @auth zhn
*/
@FeignClient(value = "local-tool")
@FeignClient(name = "local-tool", url = "http://139.9.235.66:9022")
public interface LocalToolFeignClient {
@RequestMapping(value = "/local-tool/ocr/handleFile",method = RequestMethod.POST,headers = {"content-type=application/json"})
@@ -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());