Commit 5b840d34 authored by shiyu's avatar shiyu

可交换商品检查时排除已经被交换的商品

parent e1fab7ec
...@@ -63,6 +63,9 @@ public class ExchangeServiceImpl implements ExchangeService { ...@@ -63,6 +63,9 @@ public class ExchangeServiceImpl implements ExchangeService {
try { try {
SupplierItemRequestDto supplierItemRequestDto = new SupplierItemRequestDto(); SupplierItemRequestDto supplierItemRequestDto = new SupplierItemRequestDto();
supplierItemRequestDto.setCreatorId(dto.getUserId()); supplierItemRequestDto.setCreatorId(dto.getUserId());
List<ExchangeOrderSnapshot> exchangeOrderSnapshotList = exchangeOrderSnapshotDao.findByUserId(dto.getUserId());
List<Long> filterItemList = exchangeOrderSnapshotList.stream().map(ExchangeOrderSnapshot::getItemId).distinct().collect(Collectors.toList());
supplierItemRequestDto.setFilterIds(filterItemList);
//必须要有官方预估价 //必须要有官方预估价
supplierItemRequestDto.setOfficialEstimatedPriceNotNull(true); supplierItemRequestDto.setOfficialEstimatedPriceNotNull(true);
supplierItemRequestDto.setIsDeleted(false); supplierItemRequestDto.setIsDeleted(false);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment