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