全免费逻辑

This commit is contained in:
2025-01-07 17:49:13 +08:00
parent 92b8283443
commit 7b0930afc4
7 changed files with 55 additions and 8 deletions

View File

@ -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());