From 51ad03fcc8ffdb52469216558031a1bd31ed1fa6 Mon Sep 17 00:00:00 2001 From: ZQN <364596817@qq.com> Date: 星期二, 23 七月 2024 09:57:47 +0800 Subject: [PATCH] 0723添加异常预警,消息推送,企业确认流程,企业自助建议反馈 --- project-admin/src/main/java/com/project/admin/controller/system/SysDeptController.java | 32 ++++++++++++++++++-------------- 1 files changed, 18 insertions(+), 14 deletions(-) diff --git a/project-admin/src/main/java/com/project/admin/controller/system/SysDeptController.java b/project-admin/src/main/java/com/project/admin/controller/system/SysDeptController.java index a2ee3fa..bc670cd 100644 --- a/project-admin/src/main/java/com/project/admin/controller/system/SysDeptController.java +++ b/project-admin/src/main/java/com/project/admin/controller/system/SysDeptController.java @@ -1,18 +1,5 @@ package com.project.admin.controller.system; -import java.util.List; -import org.apache.commons.lang3.ArrayUtils; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.security.access.prepost.PreAuthorize; -import org.springframework.validation.annotation.Validated; -import org.springframework.web.bind.annotation.DeleteMapping; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.PutMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; import com.project.common.annotation.Log; import com.project.common.constant.UserConstants; import com.project.common.core.controller.BaseController; @@ -21,10 +8,17 @@ import com.project.common.enums.BusinessType; import com.project.common.utils.StringUtils; import com.project.system.service.ISysDeptService; +import org.apache.commons.lang3.ArrayUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.*; + +import java.util.List; /** * 閮ㄩ棬淇℃伅 - * + * * @author project */ @RestController @@ -37,6 +31,16 @@ /** * 鑾峰彇閮ㄩ棬鍒楄〃 */ + @GetMapping("/allList") + public AjaxResult allList(@RequestParam("parentId") Long parentId) + { + List<SysDept> depts = deptService.list(deptService.lq().eq(SysDept::getParentId, parentId)); + return success(depts); + } + + /** + * 鑾峰彇閮ㄩ棬鍒楄〃 + */ @PreAuthorize("@ss.hasPermi('system:dept:list')") @GetMapping("/list") public AjaxResult list(SysDept dept) -- Gitblit v1.9.1