From e88c625154fc26ff11a56171091bd9535786f3df Mon Sep 17 00:00:00 2001 From: "liang.chao" <1360241448@qq.com> Date: Thu, 21 Nov 2024 10:07:16 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E5=BA=86=E7=BC=96=E7=A0=81=E8=AE=BE?= =?UTF-8?q?=E5=A4=87bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sgzb/base/controller/MaTypeController.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/base/controller/MaTypeController.java b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/base/controller/MaTypeController.java index 7e69f49..91e41bd 100644 --- a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/base/controller/MaTypeController.java +++ b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/base/controller/MaTypeController.java @@ -214,6 +214,22 @@ public class MaTypeController extends BaseController { return AjaxResult.success(ListPagingUtil.paging(pageIndex, pageSize, listByMaType)); } + + /** + * 根据左列表类型id查询右表格 + * + * @param typeId + * @return + */ + @ApiOperation(value = "根据左列表类型id查询右表格") + @GetMapping("/getListByMaTypePid") + public AjaxResult getListByMaTypePid(Long typeId, @RequestParam(required = false) String typeName) { + List listByParentId = iTypeService.getListByParentId(typeId, typeName); + Integer pageIndex = Convert.toInt(ServletUtils.getParameter(PAGE_NUM), 1); + Integer pageSize = Convert.toInt(ServletUtils.getParameter(PAGE_SIZE), 10); + return AjaxResult.success(ListPagingUtil.paging(pageIndex, pageSize, listByParentId)); + } + /** * 根据左列表类型id查询右表格 * @param typeId