EO.PNAME like ?1 OR EO.PNAME like ?2"; Query query = entityManager.createNativeQuery(queryString); query.setParameter(1, "%温度"); query.setParameter(2, "%流量");