@@ -108,7 +108,9 @@ public class CameraServiceImpl extends BaseServiceImpl<CameraMapper, Camera> imp | |||
.orderByDesc(Camera::getCreateTime)); | |||
for (Camera record : pageData.getRecords()) { | |||
User user = userMapper.selectById(record.getUpdateUser()); | |||
record.setUpdateUserName(user.getRealname()); | |||
if(ObjectUtil.isNotNull(user)){ | |||
record.setUpdateUserName(user.getRealname()); | |||
} | |||
} | |||