You've already forked FrameTour-BE
全免费逻辑
This commit is contained in:
@ -37,7 +37,7 @@ public class OrderBiz {
|
||||
priceObj.setGoodsId(goodsId);
|
||||
ScenicConfigEntity scenicConfig = scenicRepository.getScenicConfig(scenicId);
|
||||
if (scenicConfig != null) {
|
||||
if (0 != scenicConfig.getAllFree()) {
|
||||
if (Integer.valueOf(1).equals(scenicConfig.getAllFree())) {
|
||||
// 景区全免
|
||||
priceObj.setFree(true);
|
||||
priceObj.setPrice(BigDecimal.ZERO);
|
||||
@ -98,6 +98,7 @@ public class OrderBiz {
|
||||
if (priceObj == null) {
|
||||
return respVO;
|
||||
}
|
||||
respVO.setFree(priceObj.isFree());
|
||||
respVO.setGoodsType(goodsType);
|
||||
respVO.setGoodsId(goodsId);
|
||||
respVO.setPrice(priceObj.getPrice());
|
||||
|
Reference in New Issue
Block a user