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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
package com.shlanbao.tzsc.pms.msg.info.service;
 
import java.util.List;
import java.util.Map;
 
import com.shlanbao.tzsc.base.mapping.MdEquipment;
import com.shlanbao.tzsc.base.mapping.MsgInfo;
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.md.eqp.beans.EquipmentsBean;
import com.shlanbao.tzsc.pms.msg.info.beans.MsgInfoBean;
import com.shlanbao.tzsc.pms.msg.info.beans.MsgOperatorBean;
import com.shlanbao.tzsc.pms.sys.user.beans.UserBean;
 
/**
 * 机台通知信息维护服务接口
 *
 * @author yangbo
 */
public interface MsgInfoServiceI {
    /**
     * 保存机台通知信息
     *
     * @param msgInfo
     * @throws Exception
     */
    public Json addMsgInfo(MsgInfo msgInfo) throws Exception;
 
    /**
     * 审批保存
     *
     * @param msgInfo
     * @throws Exception
     */
    public void saveMsgInfo(MsgInfo msgInfo) throws Exception;
 
    /**
     * 通过ID查询机台通知信息
     *
     * @param id
     * @return 机台通知信息实体
     * @throws Exception
     */
    public MsgInfoBean getMsgInfoById(String id) throws Exception;
 
    /**
     * 通过ID查询bean
     *
     * @param id
     * @return
     * @throws Exception
     */
    public MsgInfoBean getMsgInfoBeanById(String id) throws Exception;
 
    /**
     * 分页带参数查询通知信息
     *
     * @param msgInfo
     * @param pageParams
     * @return
     * @throws Exception
     */
    public DataGrid queryMsgInfo(MsgInfoBean msgInfoBean, PageParams pageParams) throws Exception;
 
    /**
     * 根据ID删除通知信息
     *
     * @param id
     * @throws Exception
     */
    public void deleteMsgInfoById(String id) throws Exception;
 
    /**
     * 获取当前用户对消息的操作
     *
     * @return
     * @throws Exception
     */
    public MsgOperatorBean getCurrUserOperator() throws Exception;
 
    /**
     * 获取已发送的信息
     *
     * @return
     * @throws Exception
     */
    public List<MsgInfoBean> getMsgInfo() throws Exception;
 
    /**
     * 根据ID获取审批意见列表
     *
     * @param id
     * @return
     * @throws Exception
     */
    public List<MsgInfoBean> getMsgInfoApprove(String id) throws Exception;
 
    public List<MdEquipment> queryMdequipment();
 
    /**
     * 更新消息推送状态
     *
     * @param msgInfo
     *
     */
    void saveMsgSend(MsgInfo msgInfo);
 
    /**
     * 获取设备列表
     * @return
     */
    List<MdEquipment> getEquInfo(UserBean userBean);
 
 
    /**
     * 组装msg下设备选择状态
     * @param msgInfoById   告警信息
     * @param mdEquipments  设备列表
     */
    void getMsgEqu(MsgInfoBean msgInfoById ,List<MdEquipment> mdEquipments);
 
    /**
     * 通过websocket获取wct在线的设备
     * @return
     */
    List<MdEquipment> getWctOnlineEqu();
 
 
    /**
     * @return 推送消息到wct或pms
     */
    boolean pushToWctOrPms(Map<String,Object> param);
 
    /**
     * 批量删除
     * @param ids
     */
    void batchDeleteMsgInfo(String ids);
}