package cn.et.food.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import cn.et.food.Tools.EPageTools;
import cn.et.food.entity.Emp;
import cn.et.food.entity.Result;
import cn.et.food.entity.TreeNode;
import cn.et.food.service.DeptService;
@Controller
public class DeptController {
@Autowired
DeptService service;
@ResponseBody
@RequestMapping("/queryDate")
public List<TreeNode> queryDept(Integer id){
if(id==null){
id=0;
}
return service.queryTreeNode(id);
}
@ResponseBody
@RequestMapping("/queryEmp")
public EPageTools queryEmp(Integer
DeptController(controller)
最新推荐文章于 2021-08-11 22:27:22 发布