heheng
2025-03-24 9a8a4a431c61d22a334003b2e8a52571ea809920
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);