新增调试模式ocr,分段,归档上传事件和处理器
parent
a65a9576a9
commit
108e0882d3
@ -0,0 +1,23 @@
|
|||||||
|
package com.docus.server.service.handler;
|
||||||
|
|
||||||
|
import com.docus.log.annotation.TrackRetryListener;
|
||||||
|
import com.docus.server.api.ocr.OcrApi;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 开始OCR处理器
|
||||||
|
*/
|
||||||
|
@Component
|
||||||
|
public class StartOcrTestHandler {
|
||||||
|
@Resource
|
||||||
|
private OcrApi ocrApi;
|
||||||
|
|
||||||
|
@TrackRetryListener("START_OCR_TEST")
|
||||||
|
public void startOcr(String patientId) {
|
||||||
|
System.out.println(patientId);
|
||||||
|
List<String> text = ocrApi.getText("D:\\docus\\cut\\segmentation\\20230822\\c6b03e5767814895a2c155c32f174051\\麻醉.jpg");
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
package com.docus.server.service.handler;
|
||||||
|
|
||||||
|
import com.docus.log.annotation.TrackRetryListener;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 开始分段处理器
|
||||||
|
*/
|
||||||
|
@Component
|
||||||
|
public class StartSegmenTesttHandler {
|
||||||
|
|
||||||
|
@TrackRetryListener("START_SEGMENT_TEST")
|
||||||
|
public void startSegment(String patientId) {
|
||||||
|
System.out.println(patientId);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
package com.docus.server.service.handler;
|
||||||
|
|
||||||
|
import com.docus.log.annotation.TrackRetryListener;
|
||||||
|
import com.docus.server.service.impl.PlatformServiceImpl;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 开始上传归档系统处理器
|
||||||
|
*/
|
||||||
|
@Component
|
||||||
|
public class StartUploadTestHandler {
|
||||||
|
@Resource
|
||||||
|
private PlatformServiceImpl downloadService;
|
||||||
|
|
||||||
|
@TrackRetryListener("START_UPLOAD_TEST")
|
||||||
|
public void startUpload(String patientId) {
|
||||||
|
downloadService.uploadPlatform(null, null);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue