From 0f1a7567c10b5b4aee410eab04df2842c858f20c Mon Sep 17 00:00:00 2001 From: yss <17921@qq.com> Date: Wed, 25 Oct 2023 14:26:14 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E5=8F=AF=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E6=8A=BD=E5=8F=96=E6=96=B9=E6=A1=88=E7=9C=81=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BizFuncSwitchConfigController.java | 12 ++++++++++ .../service/IBizFuncSwitchConfigService.java | 4 ++++ .../impl/BizFuncSwitchConfigServiceImpl.java | 23 +++++++++++++++++++ 3 files changed, 39 insertions(+) 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; + } } From d6024bf09a6955363ebd51f4477674990d486034 Mon Sep 17 00:00:00 2001 From: yss <17921@qq.com> Date: Wed, 25 Oct 2023 14:45:37 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E5=8F=AF=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E6=8A=BD=E5=8F=96=E6=96=B9=E6=A1=88=E7=9C=81=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../funcswitch/controller/BizFuncSwitchConfigController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 35ae25e..91dc74d 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 @@ -62,7 +62,7 @@ public class BizFuncSwitchConfigController{ * @return */ @ApiOperation("查询可使用抽取方案省分") - @GetMapping("/getAuthByProvince") + @GetMapping("/getAuthByProvince/{province}") public BaseResponse getAuthByProvince(@PathVariable String province){ return BaseResponse.success(ibizFuncSwitchConfigService.getAuthByProvince(province)); }