update: ItemCategoryController treeselect返回泛型优化

This commit is contained in:
zccbbg 2024-07-19 14:20:57 +08:00
parent 6472d91b74
commit 8e84f7ef7e

View file

@ -45,7 +45,7 @@ public class ItemCategoryController extends BaseController {
* 获取物料类型下拉树列表
*/
@GetMapping("/treeselect")
public R treeselect(ItemCategoryBo query) {
public R<List<ItemTypeTreeSelectVo>> treeselect(ItemCategoryBo query) {
List<ItemCategoryVo> itemTypes = itemCategoryService.queryList(query);
return R.ok(itemCategoryService.buildItemTypeTreeSelect(itemTypes));
}