|
@@ -76,7 +76,9 @@ public class ExamAuditServiceImpl implements ExamAuditService {
|
|
|
//新活体检测方案从新表中取相关数据
|
|
|
if (faceBiopsyScheme == FaceBiopsyScheme.NEW) {
|
|
|
List<FaceBiopsyItemEntity> faceBiopsyItems = faceBiopsyItemRepo.findByExamRecordDataIdOrderByIdAsc(examRecordDataId);
|
|
|
- if (faceBiopsyItems == null) {
|
|
|
+ //从未调过人脸检测接口,或者只调过接口但是未保存过结果(即未完成活检),则提示未进行人脸活体检测
|
|
|
+ if (faceBiopsyItems == null ||
|
|
|
+ (faceBiopsyItems.size() == 1 && !faceBiopsyItems.get(0).getCompleted())) {
|
|
|
return "未进行人脸活体检测";
|
|
|
}
|
|
|
|