This commit is contained in:
Vinjor 2025-04-25 11:35:35 +08:00
parent baab33c805
commit 92b7993ea7
2 changed files with 14 additions and 3 deletions

View File

@ -95,6 +95,17 @@ public class BaseCategoryController extends BaseController {
return success(baseCategoryService.getById(id));
}
/**
* 获取分类树-根据code查询
*/
@GetMapping(value = "/getByCodeInfo")
public AjaxResult getByCodeInfo(@RequestParam("code") String code) {
LambdaQueryWrapper<BaseCategory> queryWrapper = new LambdaQueryWrapper<BaseCategory>()
.eq(BaseCategory::getCode,code);
List<BaseCategory> list = baseCategoryService.list(queryWrapper);
return success(list.isEmpty()?null:list.get(0));
}
/**
* 新增分类树-各种分类属性结构
*/

View File

@ -143,10 +143,10 @@ xss:
excludes: /system/notice
# 匹配链接
urlPatterns: /system/*,/monitor/*,/tool/*
# 微信小程序配置----dl
# 微信小程序配置----多点通告
wx-app:
appId: wxd8ef44a8268672e4
appSecret: 30c18855ceb0ab0f9801407c998199c2
appId: wxd96fda6510adb6d3
appSecret: 2d3bf7172d09966bd98e1611117c2cb0
wxpay:
#微信公众号appid
appId: wx7d10b0fa4886a583