|
|
@@ -192,6 +192,9 @@ public class SearchServiceImpl implements com.uas.platform.b2b.search.SearchServ
|
|
|
@Autowired
|
|
|
private ProductUsersDao productUsersDao;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private PublicInquiryItemInfoDao publicInquiryItemInfoDao;
|
|
|
+
|
|
|
/**
|
|
|
* 联想词size
|
|
|
*/
|
|
|
@@ -1380,4 +1383,27 @@ public class SearchServiceImpl implements com.uas.platform.b2b.search.SearchServ
|
|
|
sortByProperty(content, ProductUsers.class, "id", idsPage.getContent());
|
|
|
return toSPage(idsPage, content);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 公共询价单转询价报价单
|
|
|
+ *
|
|
|
+ * @param keyword 搜索词
|
|
|
+ * @param pageParams 分页信息
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public SPage<PublicInquiryItemInfo> searchPublicInquiryItemInfoIds(String keyword, PageParams pageParams) {
|
|
|
+ SPage<Long> idsPage = searchService.searchIds(keyword, Table_name.PUBLIC$INQUIRYITEMS, pageParams);
|
|
|
+ final PredicateFactory<PublicInquiryItemInfo> factory = new PredicateFactory<PublicInquiryItemInfo>();
|
|
|
+ factory.add(PredicateUtils.in("id", idsPage.getContent(), false));
|
|
|
+ List<PublicInquiryItemInfo> content = publicInquiryItemInfoDao.findAll(new Specification<PublicInquiryItemInfo>() {
|
|
|
+ public Predicate toPredicate(Root<PublicInquiryItemInfo> root, CriteriaQuery<?> query,
|
|
|
+ CriteriaBuilder builder) {
|
|
|
+ query.where(factory.toPredicate(root, query, builder));
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ sortByProperty(content, PublicInquiryItemInfo.class, "id", idsPage.getContent());
|
|
|
+ return toSPage(idsPage, content);
|
|
|
+ }
|
|
|
}
|