|
|
@@ -1,5 +1,7 @@
|
|
|
package com.uas.platform.b2c.trade.vendor.service.impl;
|
|
|
|
|
|
+import com.uas.platform.b2c.common.account.dao.EnterpriseDao;
|
|
|
+import com.uas.platform.b2c.common.account.model.Enterprise;
|
|
|
import com.uas.platform.b2c.common.base.dao.CommonDao;
|
|
|
import com.uas.platform.b2c.common.search.rpc.service.SearchService;
|
|
|
import com.uas.platform.b2c.common.search.util.SPage;
|
|
|
@@ -12,6 +14,7 @@ import com.uas.platform.b2c.trade.vendor.service.VendorIntroductionService;
|
|
|
import com.uas.ps.core.util.CollectionUtils;
|
|
|
import com.uas.sso.support.Page;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.data.domain.Pageable;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.util.StringUtils;
|
|
|
|
|
|
@@ -33,6 +36,9 @@ public class VendorIntroductionServiceImpl implements VendorIntroductionService
|
|
|
@Autowired
|
|
|
private SearchService searchService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private EnterpriseDao enterpriseDao;
|
|
|
+
|
|
|
/**
|
|
|
* 类目
|
|
|
*/
|
|
|
@@ -142,6 +148,20 @@ public class VendorIntroductionServiceImpl implements VendorIntroductionService
|
|
|
return v_productPrivateDao.getCountByEnuuAndEnabled(vendUU, IntegerConstant.YES_SHORT);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 获取推荐供应商
|
|
|
+ *
|
|
|
+ * @param pageable 默认参数
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public org.springframework.data.domain.Page<Enterprise> getRecommendVendor(Pageable pageable) {
|
|
|
+ if (pageable == null) {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+ return enterpriseDao.findAll(pageable);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 获取供应商资源信息
|
|
|
* @param enUU 本企业UU
|