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 getMsgInfo() throws Exception; /** * 根据ID获取审批意见列表 * * @param id * @return * @throws Exception */ public List getMsgInfoApprove(String id) throws Exception; public List queryMdequipment(); /** * 更新消息推送状态 * * @param msgInfo * */ void saveMsgSend(MsgInfo msgInfo); /** * 获取设备列表 * @return */ List getEquInfo(UserBean userBean); /** * 组装msg下设备选择状态 * @param msgInfoById 告警信息 * @param mdEquipments 设备列表 */ void getMsgEqu(MsgInfoBean msgInfoById ,List mdEquipments); /** * 通过websocket获取wct在线的设备 * @return */ List getWctOnlineEqu(); /** * @return 推送消息到wct或pms */ boolean pushToWctOrPms(Map param); /** * 批量删除 * @param ids */ void batchDeleteMsgInfo(String ids); }