|
|
|
@ -50,7 +50,7 @@ public class OcrService implements IOcrService { |
|
|
|
long time1 = System.currentTimeMillis(); |
|
|
|
List<QuestionOcrVo.GeneralBasic> vos = new ArrayList<>(); |
|
|
|
// 类型测评规则
|
|
|
|
List<QuestionOcrVo.OcrRule> rules = questionOcrDao.queryRules(generalBasic.getHospitalId(), generalBasic.getCode()); |
|
|
|
List<QuestionOcrVo.OcrRule> rules = questionOcrDao.queryRules(generalBasic.getPatientId(), generalBasic.getCode()); |
|
|
|
log.info("规则:{}", rules); |
|
|
|
if (CollectionUtil.isEmpty(rules)) { |
|
|
|
return vos; |
|
|
|
@ -89,7 +89,7 @@ public class OcrService implements IOcrService { |
|
|
|
int curCode = 200; |
|
|
|
if (code != curCode) { |
|
|
|
CodeEnum thirdError = CodeEnum.THIRD_ERROR; |
|
|
|
thirdError.setMsg(response.getEx().getMessage()); |
|
|
|
thirdError.setMsg(response.getMessage()); |
|
|
|
throw new BaseException(thirdError); |
|
|
|
} |
|
|
|
String result = new String(response.getBody()); |
|
|
|
|