diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/funcswitch/controller/BizFuncSwitchConfigController.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/funcswitch/controller/BizFuncSwitchConfigController.java index 4a78c7a..35ae25e 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/funcswitch/controller/BizFuncSwitchConfigController.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/funcswitch/controller/BizFuncSwitchConfigController.java @@ -54,5 +54,17 @@ public class BizFuncSwitchConfigController{ return BaseResponse.success(bizFuncSwitchConfig); } + /** + * 查询数据 + * + * @param + * + * @return + */ + @ApiOperation("查询可使用抽取方案省分") + @GetMapping("/getAuthByProvince") + public BaseResponse getAuthByProvince(@PathVariable String province){ + return BaseResponse.success(ibizFuncSwitchConfigService.getAuthByProvince(province)); + } } diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/funcswitch/service/IBizFuncSwitchConfigService.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/funcswitch/service/IBizFuncSwitchConfigService.java index c8e579f..3e21d35 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/funcswitch/service/IBizFuncSwitchConfigService.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/funcswitch/service/IBizFuncSwitchConfigService.java @@ -13,4 +13,8 @@ public interface IBizFuncSwitchConfigService extends IService provinceAuthList= Arrays.asList(active.split(",")); + if(provinceAuthList.contains(province)){ + return true; + } + return false; + } }