devhuozheluoji
周文涛 2 years ago
parent 258b40332a
commit 0f7c5b20e4

@ -256,7 +256,7 @@ public class ApiController {
//ocrIdentifyService.getSemanticInfo(semanticResponseJson); //ocrIdentifyService.getSemanticInfo(semanticResponseJson);
/*OcrRuleCheckVo ocrRuleCheckVo = byId.getOcrRuleCheckVo(); /*OcrRuleCheckVo ocrRuleCheckVo = byId.getOcrRuleCheckVo();
Map<String, String> configRuleMap = ocrRuleCheckVo.getConfigRuleMap();*/ Map<String, String> configRuleMap = ocrRuleCheckVo.getConfigRuleMap();*/
OcrIdentifyDTO identifyDTO = ocrIdentifyService.findById("1703642249574752258"); OcrIdentifyDTO identifyDTO = ocrIdentifyService.findById("1702560400245035009");
List<OcrIdentifyDetail> identifyDetailList = ocrIdentifyDetailService.listByIdentifyId(identifyDTO.getId()); List<OcrIdentifyDetail> identifyDetailList = ocrIdentifyDetailService.listByIdentifyId(identifyDTO.getId());
CallBackWlyUtils.callbackWly(identifyDTO,identifyDetailList); CallBackWlyUtils.callbackWly(identifyDTO,identifyDetailList);
return Result.OK(""); return Result.OK("");

@ -699,11 +699,6 @@ public class OcrIdentifyServiceImpl extends ServiceImpl<OcrIdentifyMapper, OcrId
String hospitalName = simulateChecksVO.getHospitalName(); String hospitalName = simulateChecksVO.getHospitalName();
String departmentName = simulateChecksVO.getDepartmentName(); String departmentName = simulateChecksVO.getDepartmentName();
String time = simulateChecksVO.getTime(); String time = simulateChecksVO.getTime();
String patientName = simulateChecksVO.getPatientName();
String medicalRecordNumber = simulateChecksVO.getMedicalRecordNumber();
String admissionDate = simulateChecksVO.getAdmissionDate();
String bornDate = simulateChecksVO.getBornDate();
String age = simulateChecksVO.getAge();
List<JSONObject> sourceJson = new ArrayList<>(); List<JSONObject> sourceJson = new ArrayList<>();
if (StringUtils.isNotBlank(doctorName)) { if (StringUtils.isNotBlank(doctorName)) {
sourceJson.add(JSONObject.parseObject(String.format("{\"tag\":\"doctorName\", \"inputText\":\"%s\"}", doctorName))); sourceJson.add(JSONObject.parseObject(String.format("{\"tag\":\"doctorName\", \"inputText\":\"%s\"}", doctorName)));
@ -717,21 +712,6 @@ public class OcrIdentifyServiceImpl extends ServiceImpl<OcrIdentifyMapper, OcrId
if (StringUtils.isNotBlank(time)) { if (StringUtils.isNotBlank(time)) {
sourceJson.add(JSONObject.parseObject(String.format("{\"tag\":\"time\", \"inputText\":\"%s\"}", time))); sourceJson.add(JSONObject.parseObject(String.format("{\"tag\":\"time\", \"inputText\":\"%s\"}", time)));
} }
if (StringUtils.isNotBlank(patientName)) {
sourceJson.add(JSONObject.parseObject(String.format("{\"tag\":\"patientName\", \"inputText\":\"%s\"}", patientName)));
}
if (StringUtils.isNotBlank(medicalRecordNumber)) {
sourceJson.add(JSONObject.parseObject(String.format("{\"tag\":\"medicalRecordNumber\", \"inputText\":\"%s\"}", medicalRecordNumber)));
}
if (StringUtils.isNotBlank(admissionDate)) {
sourceJson.add(JSONObject.parseObject(String.format("{\"tag\":\"admissionDate\", \"inputText\":\"%s\"}", admissionDate)));
}
if (StringUtils.isNotBlank(bornDate)) {
sourceJson.add(JSONObject.parseObject(String.format("{\"tag\":\"bornDate\", \"inputText\":\"%s\"}", bornDate)));
}
if (StringUtils.isNotBlank(age)) {
sourceJson.add(JSONObject.parseObject(String.format("{\"tag\":\"age\", \"inputText\":\"%s\"}", age)));
}
JSONObject semanticResult = JSONObject.parseObject(ocrIdentifyDetail.getSemanticResult()); JSONObject semanticResult = JSONObject.parseObject(ocrIdentifyDetail.getSemanticResult());
//判断是不是网络图片 //判断是不是网络图片

Loading…
Cancel
Save