Commit 0d826820 authored by shiyu's avatar shiyu

专场

parent d3450a91
...@@ -21,7 +21,6 @@ public interface SpecialPerformanceDao { ...@@ -21,7 +21,6 @@ public interface SpecialPerformanceDao {
/** /**
* 查询当天结束的专场 * 查询当天结束的专场
* @param dto
* @return * @return
*/ */
List<SpecialPerformance> findTodayEndList(); List<SpecialPerformance> findTodayEndList();
......
...@@ -233,10 +233,12 @@ public class SpecialPerformanceServiceImpl implements SpecialPerformanceService ...@@ -233,10 +233,12 @@ public class SpecialPerformanceServiceImpl implements SpecialPerformanceService
auctionConfigRequestDto.setItemIdList(allItemId); auctionConfigRequestDto.setItemIdList(allItemId);
auctionConfigRequestDto.setState(AuctionEnum.StateEnum.WAIT_ON_SALE.getCode()); auctionConfigRequestDto.setState(AuctionEnum.StateEnum.WAIT_ON_SALE.getCode());
auctionConfigRequestDto.setIsValid(false); auctionConfigRequestDto.setIsValid(false);
List<AuctionConfig> auctionConfigList = auctionConfigDao.findSpecialPerformanceFilterList(auctionConfigRequestDto); if (specialPerformance.getState() != SpecialPerformanceEnum.StateEnum.END.getCode()) {
List<Long> filterItemIdList = auctionConfigList.stream().map(AuctionConfig::getItemId).collect(Collectors.toList()); List<AuctionConfig> auctionConfigList = auctionConfigDao.findSpecialPerformanceFilterList(auctionConfigRequestDto);
if (!CollectionUtils.isEmpty(filterItemIdList)) { List<Long> filterItemIdList = auctionConfigList.stream().map(AuctionConfig::getItemId).collect(Collectors.toList());
specialPerformanceConfigRequestDto.setFilterItemIdList(filterItemIdList); if (!CollectionUtils.isEmpty(filterItemIdList)) {
specialPerformanceConfigRequestDto.setFilterItemIdList(filterItemIdList);
}
} }
List<SpecialPerformanceConfig> list = specialPerformanceConfigDao.findList(specialPerformanceConfigRequestDto); List<SpecialPerformanceConfig> list = specialPerformanceConfigDao.findList(specialPerformanceConfigRequestDto);
PageInfo pageInfo = new PageInfo<>(list); PageInfo pageInfo = new PageInfo<>(list);
......
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