|
|
@@ -570,4 +570,13 @@ public class ComponentServiceImpl implements ComponentService {
|
|
|
public List<Component> getMostSearchComponent() {
|
|
|
return componentDao.findMostSearchComponent();
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public Component getComponentBySome(Long brandId, String cmpCode) {
|
|
|
+ List<Component> componentList = componentDao.findByCodeAndBrandid(cmpCode, brandId);
|
|
|
+ if (CollectionUtils.isNotEmpty(componentList)) {
|
|
|
+ return componentList.get(0);
|
|
|
+ }
|
|
|
+ return null;
|
|
|
+ }
|
|
|
}
|