| | |
| | | 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); |