|
|
|
@ -4,10 +4,8 @@ import com.docus.server.common.event.FlowEvent;
|
|
|
|
|
import com.docus.server.common.service.IFileUploadService;
|
|
|
|
|
import com.docus.server.dto.segmentation.UploadBatchFileRequest;
|
|
|
|
|
import com.docus.server.entity.segmentation.OcrFileInfoTest;
|
|
|
|
|
import com.docus.server.service.IOcrCutConfigService;
|
|
|
|
|
import com.docus.server.service.IOcrCutConfigTestService;
|
|
|
|
|
import com.docus.server.service.IOcrFileInfoTestService;
|
|
|
|
|
import com.docus.server.service.IPublishEventService;
|
|
|
|
|
import com.docus.server.entity.segmentation.OcrVersion;
|
|
|
|
|
import com.docus.server.service.*;
|
|
|
|
|
import com.docus.server.service.impl.CommonService;
|
|
|
|
|
import com.docus.server.service.impl.PlatformServiceImpl;
|
|
|
|
|
import com.docus.server.vo.scheduling.management.schcollectorversionfile.UploadFileVO;
|
|
|
|
@ -54,6 +52,8 @@ public class FileController {
|
|
|
|
|
private IPublishEventService iPublishEventService;
|
|
|
|
|
@Resource
|
|
|
|
|
private IOcrFileInfoTestService iOcrFileInfoTestService;
|
|
|
|
|
@Resource
|
|
|
|
|
private IOcrVersionService iOcrVersionService;
|
|
|
|
|
|
|
|
|
|
@ApiOperation("文件下载")
|
|
|
|
|
@GetMapping("/download")
|
|
|
|
@ -85,7 +85,8 @@ public class FileController {
|
|
|
|
|
widthStart = ocrCutConfigTestVO.getWidthStart();
|
|
|
|
|
widthEnd = ocrCutConfigTestVO.getWidthEnd();
|
|
|
|
|
} else {
|
|
|
|
|
OcrCutConfigVO ocrCutConfigVO = iOcrCutConfigService.findAll().get(0);
|
|
|
|
|
OcrVersion ocrVersion = iOcrVersionService.finEnableVersion();
|
|
|
|
|
OcrCutConfigVO ocrCutConfigVO = iOcrCutConfigService.findByVersion(ocrVersion.getVersion());
|
|
|
|
|
height = ocrCutConfigVO.getHeight();
|
|
|
|
|
widthStart = ocrCutConfigVO.getWidthStart();
|
|
|
|
|
widthEnd = ocrCutConfigVO.getWidthEnd();
|
|
|
|
|