|
|
@@ -89,12 +89,12 @@ public interface ComponentDao extends JpaSpecificationExecutor<Component>, JpaRe
|
|
|
public List<Component> findByCodes(@Param("codes") String[] codes);
|
|
|
|
|
|
/**
|
|
|
- * 根据器件的品牌id获取器件的类目列表,按器件数量倒序排序
|
|
|
+ * 根据器件的品牌id获取器件的类目列表
|
|
|
*
|
|
|
* @param brandId 品牌id
|
|
|
* @return 器件信息
|
|
|
*/
|
|
|
- @Query("select c.kindid from Component c where c.brandid = :brandId group by c.kindid order by count(c.kindid) desc")
|
|
|
+ @Query("select distinct c.kindid from Component c where c.brandid = :brandId")
|
|
|
public List<Long> findKindIdsByBrandId(@Param("brandId") Long brandId);
|
|
|
|
|
|
/**
|