You've already forked FrameTour-BE
refactor(basic): 将 ScenicConfigEntity 中的 allFree 字段类型从 Integer 改为 Boolean
- 修改了 OrderBiz、PriceBiz 中的相关代码,使用 Boolean.TRUE 进行比较 - 更新了 ScenicConfigEntity 和 ScenicConfigResp 中 allFree 字段的类型 - 在 ScenicRepository 中使用 ConfigValueUtil.getBooleanValue 方法获取 allFree 的值
This commit is contained in:
@@ -88,7 +88,7 @@ public class OrderBiz {
|
||||
ScenicConfigEntity scenicConfig = scenicRepository.getScenicConfig(scenicId);
|
||||
priceObj.setScenicAllPrice(scenic.getPrice());
|
||||
if (scenicConfig != null) {
|
||||
if (Integer.valueOf(1).equals(scenicConfig.getAllFree())) {
|
||||
if (Boolean.TRUE.equals(scenicConfig.getAllFree())) {
|
||||
// 景区全免
|
||||
priceObj.setFree(true);
|
||||
priceObj.setPrice(BigDecimal.ZERO);
|
||||
|
@@ -92,7 +92,7 @@ public class PriceBiz {
|
||||
}
|
||||
ScenicConfigEntity scenicConfig = scenicRepository.getScenicConfig(scenicId);
|
||||
if (scenicConfig != null) {
|
||||
if (Integer.valueOf(1).equals(scenicConfig.getAllFree())) {
|
||||
if (Boolean.TRUE.equals(scenicConfig.getAllFree())) {
|
||||
// 景区全免
|
||||
respVO.setFree(true);
|
||||
respVO.setSlashPrice(BigDecimal.ZERO);
|
||||
|
Reference in New Issue
Block a user