|
|
@@ -8,7 +8,6 @@ import com.uas.platform.b2b.erp.model.B2BVendor;
|
|
|
import com.uas.platform.b2b.erp.model.SaleTenderErp;
|
|
|
import com.uas.platform.b2b.erp.model.SaleTenderItemErp;
|
|
|
import com.uas.platform.b2b.model.*;
|
|
|
-import com.uas.platform.b2b.ps.ProductUtils;
|
|
|
import com.uas.platform.b2b.service.BrandService;
|
|
|
import com.uas.platform.b2b.service.ComponentService;
|
|
|
import com.uas.platform.b2b.service.KindService;
|
|
|
@@ -183,9 +182,6 @@ public class SearchServiceImpl implements com.uas.platform.b2b.search.SearchServ
|
|
|
@Autowired
|
|
|
private VendorPerformanceAssessDao vpaDao;
|
|
|
|
|
|
- @Autowired
|
|
|
- private ProductUsersDao productUsersDao;
|
|
|
-
|
|
|
@Autowired
|
|
|
private SaleTenderQuestionDao saleTenderQuestionDao;
|
|
|
|
|
|
@@ -766,48 +762,6 @@ public class SearchServiceImpl implements com.uas.platform.b2b.search.SearchServ
|
|
|
return toSPage(idsPage, content);
|
|
|
}
|
|
|
|
|
|
- @Override
|
|
|
- public SPage<Product> searchProductsCheckIds(String keyword, PageParams pageParams) {
|
|
|
- SPage<Long> idsPage = searchService.searchIds(keyword, Table_name.V$PRODUCTS, pageParams);
|
|
|
- List<Product> content = new ArrayList<>();
|
|
|
- // 超过1000就切割
|
|
|
- if (idsPage.getContent().size() > SplitArray.QUERY_MAX_NUMBER) {
|
|
|
- List<List<Long>> idLists = SplitArray.splitAry(idsPage.getContent(), SplitArray.QUERY_MAX_NUMBER);
|
|
|
- for (List<Long> idList : idLists) {
|
|
|
- List<Product> products = ProductUtils.findByIds(idList);
|
|
|
- content.addAll(products);
|
|
|
- }
|
|
|
- } else {
|
|
|
- content = ProductUtils.findByIds(idsPage.getContent());
|
|
|
- }
|
|
|
- sortByProperty(content, Product.class, "id", idsPage.getContent());
|
|
|
- return toSPage(idsPage, content);
|
|
|
- }
|
|
|
-
|
|
|
- @Override
|
|
|
- public SPage<Product> searchProductsStandardCheckIds(String keyword, PageParams pageParams) {
|
|
|
- SPage<Long> idsPage = searchService.searchIds(keyword, Table_name.PRODUCTS_STANDARD, pageParams);
|
|
|
- List<Product> content = ProductUtils.findByIds(idsPage.getContent());
|
|
|
- sortByProperty(content, Product.class, "id", idsPage.getContent());
|
|
|
- return toSPage(idsPage, content);
|
|
|
- }
|
|
|
-
|
|
|
- @Override
|
|
|
- public SPage<Product> searchProductsNonStandardCheckIds(String keyword, PageParams pageParams) {
|
|
|
- SPage<Long> idsPage = searchService.searchIds(keyword, Table_name.PRODUCTS_NONSTANDARD, pageParams);
|
|
|
- List<Product> content = ProductUtils.findByIds(idsPage.getContent());
|
|
|
- sortByProperty(content, Product.class, "id", idsPage.getContent());
|
|
|
- return toSPage(idsPage, content);
|
|
|
- }
|
|
|
-
|
|
|
- @Override
|
|
|
- public SPage<Component> searchProductComponentCheckIds(String keyword, PageParams pageParams) {
|
|
|
- SPage<Long> idsPage = searchService.searchIds(keyword, Table_name.PRODUCT$COMPONENT, pageParams);
|
|
|
- List<Component> content = componentService.findAll(idsPage.getContent());
|
|
|
- sortByProperty(content, Component.class, "id", idsPage.getContent());
|
|
|
- return toSPage(idsPage, content);
|
|
|
- }
|
|
|
-
|
|
|
@Override
|
|
|
public SPage<Enterprise> searchEnterpriseCheckIds(String keyword, PageParams pageParams) {
|
|
|
SPage<Long> idsPage = searchService.searchIds(keyword, Table_name.SEC$ENTERPRISES, pageParams);
|
|
|
@@ -1388,14 +1342,6 @@ public class SearchServiceImpl implements com.uas.platform.b2b.search.SearchServ
|
|
|
return toSPage(idsPage, content);
|
|
|
}
|
|
|
|
|
|
- @Override
|
|
|
- public SPage<ProductUsers> searchProductUsersCheckIds(String keyword, PageParams pageParams) {
|
|
|
- SPage<Long> idsPage = searchService.searchIds(keyword, Table_name.PRODUCT$USERS, pageParams);
|
|
|
- List<ProductUsers> content = productUsersDao.findAll(idsPage.getContent());
|
|
|
- sortByProperty(content, ProductUsers.class, "id", idsPage.getContent());
|
|
|
- return toSPage(idsPage, content);
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* app查找客户采购询价单
|
|
|
*
|