Commit 811d2e28 authored by shiyu's avatar shiyu

拍卖品当前价

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