101captain
2022-07-20 c40f8e3d2e08e108780091776437242528bf61d6
springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/api/SysAppConfigApi.java
@@ -98,4 +98,15 @@
        return R.fail();
    }
    @GetMapping("/selectByAreaCode")
    public R<SysAppConfigVO> selectByAreaCode(@RequestParam("areaCode") String areaCode) {
        SysAppConfig sysAppConfig = this.sysAppConfigService.getOne(new QueryWrapper<SysAppConfig>().lambda().eq(SysAppConfig::getAreaCode, areaCode));
        if(sysAppConfig != null){
            SysAppConfigVO sysAppConfigVO = new SysAppConfigVO();
            BeanUtils.copyProperties(sysAppConfig, sysAppConfigVO);
            return R.ok(sysAppConfigVO);
        }
        return R.fail();
    }
}