zhuguifei
2026-03-10 58402bd5e762361363a0f7d7907153c77dbb819f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
package com.shlanbao.tzsc.pms.sys.wctMenu.controller;
 
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
 
import javax.servlet.http.HttpServletRequest;
 
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.shlanbao.tzsc.base.mapping.WCTMenu;
import com.shlanbao.tzsc.base.model.Json;
import com.shlanbao.tzsc.base.model.Tree;
import com.shlanbao.tzsc.pms.sys.wctMenu.service.WctMenuServiceI;
import com.shlanbao.tzsc.utils.tools.RedisUtil;
 
@Controller
@RequestMapping("/pms/editWctMenu")
public class WctMenuController {
    @Autowired
    private WctMenuServiceI wctmenuService;
    /**
     * 加载WCT菜单
    * <p>Description: </p>
    * @author shisihai
    * @date 2016下午1:34:02
     */
    @ResponseBody
    @RequestMapping("/loadWctTree")
    public List<Tree>  loadTroubleTree(String id){
        return wctmenuService.loadTroubleTree(id);
    }
    
    /**
     * 查询WCT菜单,用于修改
    * <p>Description: </p>
    * @author shisihai
    * @date 2016下午1:34:13
     */
    @RequestMapping("/goToeditWctMenujsp")
    public String goToeditWctMenujsp(String id,HttpServletRequest request){
        request.setAttribute("wctMenu", wctmenuService.queryMenuById(id));
        return "/pms/sys/resource/addWctMenu";
    }
    /**
     * 修改菜单
    * <p>Description: </p>
    * @author shisihai
    * @date 2016下午1:40:02
     */
    @ResponseBody
    @RequestMapping("/editWctMenu")
    public Json editWctMenu(WCTMenu menu){
        return wctmenuService.editWctMenu(menu);
    }
    
    /**
     * 新增菜单
    * <p>Description: </p>
    * @author shisihai
    * @date 2016下午1:40:11
     */
    @ResponseBody
    @RequestMapping("/addWctMenu")
    public Json addWctMenu(WCTMenu menu){
        return wctmenuService.addWctMenu(menu);
    }
    
}