Commit 611ece9d authored by shiyu's avatar shiyu

出价记录3

parent 0a1bcab2
...@@ -189,11 +189,16 @@ public class AuctionRecordServiceImpl implements AuctionRecordService { ...@@ -189,11 +189,16 @@ public class AuctionRecordServiceImpl implements AuctionRecordService {
if (CollectionUtils.isEmpty(auctionRecordList)) { if (CollectionUtils.isEmpty(auctionRecordList)) {
//没有出价记录最新价格为0 //没有出价记录最新价格为0
auctionRecordVo.setCurrentPrice("0"); auctionRecordVo.setCurrentPrice("0");
auctionRecordVo.setNextPrice(PriceUtil.convertPriceFenToYuan(auctionConfig.getStartPrice())); if (auctionConfig.getStartPrice() == 0) {
auctionRecordVo.setNextPrice(PriceUtil.convertPriceFenToYuan(auctionConfig.getStartPrice() + auctionConfig.getAddExtent()));
} else {
auctionRecordVo.setNextPrice(PriceUtil.convertPriceFenToYuan(auctionConfig.getStartPrice()));
}
auctionRecordVo.setUserState(DistributionEnum.AuctionUserStateEnum.PROCESS.getCode()); auctionRecordVo.setUserState(DistributionEnum.AuctionUserStateEnum.PROCESS.getCode());
auctionRecordVo.setUserStateName(DistributionEnum.AuctionUserStateEnum.PROCESS.getDes()); auctionRecordVo.setUserStateName(DistributionEnum.AuctionUserStateEnum.PROCESS.getDes());
} else { } else {
auctionRecordVo.setCurrentPrice(PriceUtil.convertPriceFenToYuan(lastedRecord.getPrice())); auctionRecordVo.setCurrentPrice(PriceUtil.convertPriceFenToYuan(lastedRecord.getPrice()));
auctionRecordVo.setNextPrice(PriceUtil.convertPriceFenToYuan(lastedRecord.getPrice() + auctionConfig.getAddExtent()));
//如果最高价是自己出的,用户状态显示已领先 //如果最高价是自己出的,用户状态显示已领先
if (lastedRecord.getUserId().longValue() == dto.getUserId().longValue()) { if (lastedRecord.getUserId().longValue() == dto.getUserId().longValue()) {
auctionRecordVo.setUserState(DistributionEnum.AuctionUserStateEnum.LEAD.getCode()); auctionRecordVo.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