|
@@ -36,6 +36,15 @@ public interface EnterpriseDao extends JpaSpecificationExecutor<Enterprise>,JpaR
|
|
|
*/
|
|
*/
|
|
|
@Query("from Enterprise e where e.enName LIKE :name%")
|
|
@Query("from Enterprise e where e.enName LIKE :name%")
|
|
|
public List<Enterprise> findByEnName(@Param("name") String name);
|
|
public List<Enterprise> findByEnName(@Param("name") String name);
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 按名称查找企业
|
|
|
|
|
+ *
|
|
|
|
|
+ * @param names
|
|
|
|
|
+ * @return
|
|
|
|
|
+ */
|
|
|
|
|
+ @Query("select e.uu,e.enName from Enterprise e where e.enName IN (:names)")
|
|
|
|
|
+ public List<Object[]> findByEnNames(@Param("names") List<String> names);
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 按简称查找企业
|
|
* 按简称查找企业
|