Skip to content

Replace '==' with null-safe 'equals()'、Replace '==' with 'equals()'

data.getAtUsers().stream().noneMatch(m -> m.getAtId() == data.getRobotId()))
//空安全
data.getAtUsers().stream().noneMatch(m -> Objects.equals(m.getAtId(), data.getRobotId())))
data.getAtUsers().stream().noneMatch(m -> m.getAtId().equals(data.getRobotId())))
org.springframework.dao.InvalidDataAccessApiUsageException: Error attempting to get column 'create_time' from result set.  Cause: java.sql.SQLFeatureNotSupportedException