You've already forked FrameTour-BE
划线价显示在订单详情内、设备关闭时,不输出对应设备的视频内容(已关联的不管)
This commit is contained in:
@ -58,7 +58,9 @@ public class OrderBiz {
|
||||
PriceObj priceObj = new PriceObj();
|
||||
priceObj.setGoodsType(goodsType);
|
||||
priceObj.setGoodsId(goodsId);
|
||||
ScenicEntity scenic = scenicRepository.getScenic(scenicId);
|
||||
ScenicConfigEntity scenicConfig = scenicRepository.getScenicConfig(scenicId);
|
||||
priceObj.setScenicAllPrice(scenic.getPrice());
|
||||
if (scenicConfig != null) {
|
||||
if (Integer.valueOf(1).equals(scenicConfig.getAllFree())) {
|
||||
// 景区全免
|
||||
@ -88,30 +90,12 @@ public class OrderBiz {
|
||||
priceObj.setScenicId(video.getScenicId());
|
||||
break;
|
||||
case 1: // source
|
||||
// goodsId 实际上是人脸ID
|
||||
FaceEntity _face = faceRepository.getFace(goodsId);
|
||||
if (_face == null || _face.getScenicId() == null) {
|
||||
return null;
|
||||
}
|
||||
ScenicEntity _scenic = scenicRepository.getScenic(_face.getScenicId());
|
||||
if (_scenic == null) {
|
||||
return null;
|
||||
}
|
||||
priceObj.setPrice(_scenic.getPrice());
|
||||
priceObj.setSlashPrice(_scenic.getPrice());
|
||||
priceObj.setPrice(scenic.getSourceVideoPrice());
|
||||
priceObj.setSlashPrice(scenic.getSourceVideoPrice());
|
||||
break;
|
||||
case 2: // source
|
||||
// goodsId 实际上是人脸ID
|
||||
FaceEntity __face = faceRepository.getFace(goodsId);
|
||||
if (__face == null || __face.getScenicId() == null) {
|
||||
return null;
|
||||
}
|
||||
ScenicEntity __scenic = scenicRepository.getScenic(__face.getScenicId());
|
||||
if (__scenic == null) {
|
||||
return null;
|
||||
}
|
||||
priceObj.setPrice(__scenic.getPrice());
|
||||
priceObj.setSlashPrice(__scenic.getPrice());
|
||||
priceObj.setPrice(scenic.getSourceImagePrice());
|
||||
priceObj.setSlashPrice(scenic.getSourceImagePrice());
|
||||
break;
|
||||
}
|
||||
return priceObj;
|
||||
|
Reference in New Issue
Block a user