package com.ycxm.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.github.pagehelper.PageInfo;
import com.ycxm.pojo.SysDept;
import com.ycxm.pojo.TableInfo;
import com.ycxm.pojo.Tree;
import com.ycxm.service.SysDeptService;
@Controller
@RequestMapping("sysdept")
public class SysDeptController extends BaseController {
@Autowired
private SysDeptService sysDeptService;
@RequestMapping("page")
public String page() {
return "sysdept";
}
@RequestMapping("list")
@ResponseBody
public TableInfo list() {
startPage();
List<SysDept> grid = sysDeptService.showAllDeptTreeGrid();
PageInfo<?> info = new PageInfo<>(grid);
TableInfo tableInfo = new TableInfo(info.getTotal(), grid);
return tableInfo;
}
@RequestMapping("/deptTree")
@ResponseBody
public List<Tree> getSelectDeptTree() {
List<Tree> list = sysDeptService.getDeptTree();
return list;
}
}
最近下载更多
zxc131313 LV12
2022年10月22日
45618955 LV8
2022年6月16日
我是helloworld LV23
2022年5月25日
wuying8208 LV15
2022年5月12日
893213895 LV18
2021年12月19日
噜噜啦啦露露 LV8
2021年12月14日
wanglinddad LV55
2021年12月10日
志犟CR7 LV8
2021年11月10日
苏屿999 LV9
2021年10月18日
最代码-宋家辉 LV61
2021年8月22日

最近浏览