You've already forked FrameTour-BE
isBuy
This commit is contained in:
@@ -269,14 +269,19 @@ public class GoodsServiceImpl implements GoodsService {
|
||||
goodsDetailVO.setFaceId(entity.getFaceId());
|
||||
goodsDetailVO.setIsBuy(entity.getIsBuy());
|
||||
if (Integer.valueOf(0).equals(entity.getIsBuy())) {
|
||||
PriceObj priceObj = orderBiz.queryPrice(videoRespVO.getScenicId(), 0, videoId);
|
||||
if (priceObj.isFree()) {
|
||||
goodsDetailVO.setIsBuy(1);
|
||||
IsBuyRespVO buy = orderBiz.isBuy(userId, videoRespVO.getScenicId(), 0, videoId);
|
||||
if (!buy.isBuy()) {
|
||||
PriceObj priceObj = orderBiz.queryPrice(videoRespVO.getScenicId(), 0, videoId);
|
||||
if (priceObj.isFree()) {
|
||||
goodsDetailVO.setIsBuy(1);
|
||||
} else {
|
||||
goodsDetailVO.setIsBuy(0);
|
||||
goodsDetailVO.setPrice(priceObj.getPrice().toString());
|
||||
goodsDetailVO.setOrigPrice(priceObj.getPrice());
|
||||
goodsDetailVO.setSlashPrice(priceObj.getSlashPrice());
|
||||
}
|
||||
} else {
|
||||
goodsDetailVO.setIsBuy(0);
|
||||
goodsDetailVO.setPrice(priceObj.getPrice().toString());
|
||||
goodsDetailVO.setOrigPrice(priceObj.getPrice());
|
||||
goodsDetailVO.setSlashPrice(priceObj.getSlashPrice());
|
||||
goodsDetailVO.setIsBuy(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -413,6 +413,10 @@ public class FaceServiceImpl implements FaceService {
|
||||
contentPageVO.setLockType(1);
|
||||
}
|
||||
}
|
||||
IsBuyRespVO buy = orderBiz.isBuy(userId, contentPageVO.getScenicId(), contentPageVO.getGoodsType(), contentPageVO.getContentId());
|
||||
if (buy.isBuy()) {
|
||||
contentPageVO.setIsBuy(1);
|
||||
}
|
||||
});
|
||||
|
||||
SourceReqQuery sourceReqQuery = new SourceReqQuery();
|
||||
|
Reference in New Issue
Block a user