|
@@ -5,6 +5,7 @@ import java.util.List;
|
|
|
|
|
|
import com.leromro.common.core.domain.R;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
+import com.leromro.common.utils.SecurityUtils;
|
|
|
import com.leromro.core.domain.DeptRegionManagement;
|
|
|
import com.leromro.core.domain.vo.DeptInfoVO;
|
|
|
import com.leromro.core.service.IDeptRegionManagementService;
|
|
@@ -46,6 +47,7 @@ public class SysDeptController extends BaseController
|
|
|
@GetMapping("/list")
|
|
|
public AjaxResult list(SysDept dept)
|
|
|
{
|
|
|
+ dept.setDeptId(SecurityUtils.getDeptId());
|
|
|
List<SysDept> depts = deptService.selectDeptList(dept);
|
|
|
return success(depts);
|
|
|
}
|