kongzy
2024-07-12 28aaf2ffa1dbb860a292ba330a7e9362e60e7832
assess-system/src/main/java/com/gkhy/assess/system/service/impl/AssFaceRecordServiceImpl.java
@@ -40,11 +40,11 @@
        faceRecord.setFacePath(uploadObjectVO.getPath());
        AssFaceRecord existRecord=checkFaceUnique(faceRecord.getPersonId(),faceRecord.getProjectId());
        if(existRecord!=null){
            throw new ApiException("已存在人脸识别记录");
//            existRecord.setFacePath(uploadObjectVO.getPath());
//            existRecord.setLocation(faceRecord.getLocation());
//            existRecord.setScene(faceRecord.getScene());
//            row =baseMapper.updateById(existRecord);
       //     throw new ApiException("已存在人脸识别记录");
            existRecord.setFacePath(uploadObjectVO.getPath());
            existRecord.setLocation(faceRecord.getLocation());
            existRecord.setScene(faceRecord.getScene());
            row =baseMapper.updateById(existRecord);
        }else{
            faceRecord.setCreateBy(ShiroUtils.getSysUser().getUsername());
            row=baseMapper.insert(faceRecord);