|
@@ -116,7 +116,7 @@ public class FaceBiopsyServiceImpl implements FaceBiopsyService {
|
|
|
|
|
|
//同步更新考试记录表中的活体检测结果
|
|
|
IsSuccess faceVerifyResult = resp.getVerifyResult() ? IsSuccess.SUCCESS : IsSuccess.FAILED;
|
|
|
- examRecordDataRepo.updateFaceVerifyResult(faceVerifyResult,req.getExamRecordDataId());
|
|
|
+ examRecordDataRepo.updateFaceVerifyResult(faceVerifyResult, req.getExamRecordDataId());
|
|
|
|
|
|
return resp;
|
|
|
}
|
|
@@ -181,17 +181,17 @@ public class FaceBiopsyServiceImpl implements FaceBiopsyService {
|
|
|
//是否在冻结时间内
|
|
|
boolean isInFreezeTime = calculateIsInFreezeTime(examRecordDataId);
|
|
|
|
|
|
+ // 检测结果至少有一条检测结果不允许为空
|
|
|
+ if (!verifySteps.stream().anyMatch(p -> p.getResult())) {
|
|
|
+ throw new StatusException("201005", "检测结果不允许为空");
|
|
|
+ }
|
|
|
for (FaceBiopsyStepInfo stepInfo : verifySteps) {
|
|
|
- if (stepInfo.getResult() == null) {
|
|
|
- throw new StatusException("201005", "检测结果不允许为空");
|
|
|
- }
|
|
|
-
|
|
|
if (!stepInfo.getResult()) {
|
|
|
errorMsg = stepInfo.getErrorMsg();
|
|
|
}
|
|
|
|
|
|
//整个检测步骤中只要有一次失败,则认为整个活检失败
|
|
|
- if (!stepInfo.getResult()) {
|
|
|
+ if (null != stepInfo.getResult() && !stepInfo.getResult()) {
|
|
|
finalIsSuccess = false;
|
|
|
}
|
|
|
|