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
73
74
75
76
77
78
79
80
81
82
package com.shlanbao.tzsc.pms.sys.msgqueue.controller;
 
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.controller.BaseController;
import com.shlanbao.tzsc.base.model.DataGrid;
import com.shlanbao.tzsc.base.model.Json;
import com.shlanbao.tzsc.base.model.PageParams;
import com.shlanbao.tzsc.pms.sys.msgqueue.beans.MessageQueueBean;
import com.shlanbao.tzsc.pms.sys.msgqueue.service.MessageQueueServiceI;
/**
 * 接口日志
 * @author Leejean
 * @create 2015年1月22日下午3:45:16
 */
@Controller
@RequestMapping("/pms/msgqueue")
public class MessageQueueController extends BaseController {
    @Autowired
    private MessageQueueServiceI messageQueueService;
    /**
     * 查询接口日志
     * @author Leejean
     * @create 2014年9月4日上午11:42:38
     * @param messageQueueBean 查询条件
     * @param pageParams 分页参数
     * @return
     */
    @RequestMapping("/getAllMessageQueues")
    @ResponseBody
    public DataGrid getAllMessageQueues(MessageQueueBean messageQueueBean,PageParams pageParams){
        try {
            return messageQueueService.getAllMessageQueues(messageQueueBean,pageParams);
        } catch (Exception e) {
            log.error(message, e);
        }
        return null;
    }
    /**
     * 删除
     * @author Leejean
     * @create 2014年9月5日上午10:02:21
     * @return
     */
    @RequestMapping("/deleteMessageQueue")
    @ResponseBody
    public Json deleteMessageQueue(String id){
        Json json=new Json();
        try {
            messageQueueService.deleteMessageQueue(id);
            json.setMsg("删除成功");
            json.setSuccess(true);
        } catch (Exception e) {
            json.setMsg("删除成功");
            log.error(message, e);
        }
        return json;
    }
    /**
     * 批量删除
     * @author Leejean
     * @create 2014年9月5日上午10:02:26
     * @return
     */
    @RequestMapping("/batchDeleteMessageQueues")
    @ResponseBody
    public Json batchDeleteMessageQueues(String ids){
        Json json=new Json();
        try {
            messageQueueService.batchDeleteMessageQueues(ids);
            json.setMsg("删除成功");
            json.setSuccess(true);
        } catch (Exception e) {
            json.setMsg("删除成功");
            log.error(message, e);
        }
        return json;
    }
}