You've already forked FrameTour-BE
feat(pricing): 新增景区一口价配置查询功能
- 在 IOnePricePurchaseService 接口中添加 getActiveConfigByScenic 方法- 在 OnePricePurchaseServiceImpl 类中实现该方法 - 方法用于查询指定景区的启用的一口价配置,通常每个景区只有一个生效配置
This commit is contained in:
@@ -46,6 +46,15 @@ public interface IOnePricePurchaseService {
|
|||||||
*/
|
*/
|
||||||
List<PriceOnePriceConfig> getActiveConfigsByScenic(Long scenicId);
|
List<PriceOnePriceConfig> getActiveConfigsByScenic(Long scenicId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据景区查询启用的一口价配置(单个)
|
||||||
|
* 通常每个景区只有一个生效的一口价配置
|
||||||
|
*
|
||||||
|
* @param scenicId 景区ID
|
||||||
|
* @return 一口价配置,如果不存在则返回null
|
||||||
|
*/
|
||||||
|
PriceOnePriceConfig getActiveConfigByScenic(Long scenicId);
|
||||||
|
|
||||||
// ==================== 管理端接口 ====================
|
// ==================== 管理端接口 ====================
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -71,6 +71,11 @@ public class OnePricePurchaseServiceImpl implements IOnePricePurchaseService {
|
|||||||
return onePriceConfigMapper.selectConfigsByScenic(scenicId);
|
return onePriceConfigMapper.selectConfigsByScenic(scenicId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PriceOnePriceConfig getActiveConfigByScenic(Long scenicId) {
|
||||||
|
return onePriceConfigMapper.selectConfigByScenic(scenicId);
|
||||||
|
}
|
||||||
|
|
||||||
// ==================== 管理端接口实现 ====================
|
// ==================== 管理端接口实现 ====================
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Reference in New Issue
Block a user