Commit 811d2e28 authored by shiyu's avatar shiyu

拍卖品当前价

parent 1b49aabc
...@@ -562,6 +562,7 @@ public class SupplierItemServiceImpl implements SupplierItemService { ...@@ -562,6 +562,7 @@ public class SupplierItemServiceImpl implements SupplierItemService {
if (!CollectionUtils.isEmpty(specialPerformanceConfigList)) { if (!CollectionUtils.isEmpty(specialPerformanceConfigList)) {
SpecialPerformanceConfig specialPerformanceConfig = specialPerformanceConfigList.get(0); SpecialPerformanceConfig specialPerformanceConfig = specialPerformanceConfigList.get(0);
auctionDetailVo.setSpecialPerformanceId(specialPerformanceConfig.getSpecialPerformanceId()); auctionDetailVo.setSpecialPerformanceId(specialPerformanceConfig.getSpecialPerformanceId());
auctionDetailVo.setCurrentPrice(PriceUtil.convertPriceFenToYuan(specialPerformanceConfig.getCurrentPrice()));
} }
//查询商品竞拍信息 //查询商品竞拍信息
...@@ -582,13 +583,19 @@ public class SupplierItemServiceImpl implements SupplierItemService { ...@@ -582,13 +583,19 @@ public class SupplierItemServiceImpl implements SupplierItemService {
}); });
auctionDetailVo.setPageSearchResult(PageSearchResult.of(pageInfo, auctionRecordRowVos)); auctionDetailVo.setPageSearchResult(PageSearchResult.of(pageInfo, auctionRecordRowVos));
AuctionRecord lastedRecord = auctionRecordDao.findLastedRecord(itemId); AuctionRecord lastedRecord = auctionRecordDao.findLastedRecord(itemId);
//当前价 //当前价
if (CollectionUtils.isEmpty(auctionRecordList)) { if (CollectionUtils.isEmpty(auctionRecordList)) {
auctionDetailVo.setUserState(DistributionEnum.AuctionUserStateEnum.PROCESS.getCode()); auctionDetailVo.setUserState(DistributionEnum.AuctionUserStateEnum.PROCESS.getCode());
auctionDetailVo.setUserStateName(DistributionEnum.AuctionUserStateEnum.PROCESS.getDes()); auctionDetailVo.setUserStateName(DistributionEnum.AuctionUserStateEnum.PROCESS.getDes());
if (StringUtils.isEmpty(auctionDetailVo.getCurrentPrice())) {
auctionDetailVo.setCurrentPrice("0"); auctionDetailVo.setCurrentPrice("0");
}
} else { } else {
if (StringUtils.isEmpty(auctionDetailVo.getCurrentPrice())) {
auctionDetailVo.setCurrentPrice(PriceUtil.convertPriceFenToYuan(lastedRecord.getPrice())); auctionDetailVo.setCurrentPrice(PriceUtil.convertPriceFenToYuan(lastedRecord.getPrice()));
}
//如果最高价是自己出的,用户状态显示已领先 //如果最高价是自己出的,用户状态显示已领先
if (lastedRecord.getUserId().longValue() == dto.getUserId().longValue()) { if (lastedRecord.getUserId().longValue() == dto.getUserId().longValue()) {
auctionDetailVo.setUserState(DistributionEnum.AuctionUserStateEnum.LEAD.getCode()); auctionDetailVo.setUserState(DistributionEnum.AuctionUserStateEnum.LEAD.getCode());
......
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