|
|
@@ -1470,14 +1470,10 @@ public class PublicInquiryServiceImpl implements PublicInquiryService {
|
|
|
*/
|
|
|
private IPage<PurcInquiryItemInfo> covert(Page<PurcInquiryItemInfo> orders, Long enuu) {
|
|
|
long start = System.currentTimeMillis();
|
|
|
- StringBuilder sourceIds = new StringBuilder();
|
|
|
+ List<Long> sourceIds = new ArrayList<>();
|
|
|
if (!CollectionUtils.isEmpty(orders.getContent()) && null != enuu) {
|
|
|
for (PurcInquiryItemInfo itemInfo : orders.getContent()) {
|
|
|
- if (!StringUtils.isEmpty(sourceIds)) {
|
|
|
- sourceIds.append(",");
|
|
|
- }
|
|
|
- sourceIds.append(itemInfo.getId());
|
|
|
-
|
|
|
+ sourceIds.add(itemInfo.getId());
|
|
|
Product product = new Product();
|
|
|
product.setTitle(itemInfo.getProdTitle());
|
|
|
product.setCmpCode(itemInfo.getCmpCode());
|
|
|
@@ -1491,7 +1487,7 @@ public class PublicInquiryServiceImpl implements PublicInquiryService {
|
|
|
}
|
|
|
|
|
|
// 查询当前企业的报价单
|
|
|
- List<PublicInquiryItem> items = publicInquiryItemDao.findByVendUUAndSourceIds(enuu, sourceIds.toString());
|
|
|
+ List<PublicInquiryItem> items = publicInquiryItemDao.findByVendUUAndSourceIdIn(enuu, sourceIds);
|
|
|
|
|
|
//map 报价单信息
|
|
|
HashMap<Long, PublicInquiryItem> map = new HashMap<>(50);
|