You've already forked FrameTour-BE
订单改改改
This commit is contained in:
@ -30,14 +30,14 @@ public class OrderBiz {
|
||||
|
||||
public PriceObj queryPrice(int goodsType, Long goodsId) {
|
||||
PriceObj priceObj = new PriceObj();
|
||||
priceObj.setGoodsType(goodsType);
|
||||
priceObj.setGoodsId(goodsId);
|
||||
switch (goodsType) {
|
||||
case 0: // video
|
||||
VideoRespVO video = videoMapper.getById(goodsId);
|
||||
if (video == null) {
|
||||
return null;
|
||||
}
|
||||
priceObj.setGoodsId(goodsId);
|
||||
priceObj.setGoodsType(goodsType);
|
||||
TemplateRespVO template = templateRepository.getTemplate(video.getTemplateId());
|
||||
if (template == null) {
|
||||
return priceObj;
|
||||
@ -85,6 +85,8 @@ public class OrderBiz {
|
||||
if (priceObj == null) {
|
||||
return respVO;
|
||||
}
|
||||
respVO.setGoodsType(goodsType);
|
||||
respVO.setGoodsId(goodsId);
|
||||
respVO.setPrice(priceObj.getPrice());
|
||||
respVO.setSlashPrice(priceObj.getSlashPrice());
|
||||
}
|
||||
|
Reference in New Issue
Block a user