|
|
@@ -78,8 +78,8 @@ public interface BrandDao extends JpaSpecificationExecutor<Brand>, JpaRepository
|
|
|
* @param initals
|
|
|
* @return
|
|
|
*/
|
|
|
- @Query(value = "select b from Brand b where b.inital in :initals and (b.nameEn like %:keyword% or b.nameCn like %:keyword%)")
|
|
|
- public Page<Brand> findInInitalsPage(@Param("initals") String[] initals ,@Param("keyword") String keyword, Pageable pageable);
|
|
|
+ @Query(value = "select b from Brand b where b.inital in :initals")
|
|
|
+ public Page<Brand> findInInitalsPage(@Param("initals") String[] initals , Pageable pageable);
|
|
|
|
|
|
/**
|
|
|
* 获取搜索量最高的2个品牌
|