2018-11-28 20:32:19 +08:00
|
|
|
package com.gzzn.omms.msgexchangeapi.service;
|
|
|
|
|
|
2018-11-29 13:33:46 +08:00
|
|
|
import java.util.Date;
|
|
|
|
|
import java.util.List;
|
2018-12-03 10:44:14 +08:00
|
|
|
import java.util.Optional;
|
2018-11-29 13:33:46 +08:00
|
|
|
|
2018-12-03 15:27:53 +08:00
|
|
|
import com.gzzn.omms.msgexchangeapi.entity.Cminmsg;
|
2018-11-28 20:32:19 +08:00
|
|
|
|
2018-11-29 13:33:46 +08:00
|
|
|
|
2018-11-28 20:32:19 +08:00
|
|
|
public interface ICminmsgService {
|
|
|
|
|
|
2018-12-05 09:52:51 +08:00
|
|
|
/**
|
|
|
|
|
* 批量更新处理时间
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
public List<Cminmsg> updateBatchProcessed(List<Cminmsg> lsCminmsgs);
|
|
|
|
|
|
|
|
|
|
|
2018-11-28 20:32:19 +08:00
|
|
|
/**
|
|
|
|
|
* 发送xml格式的消息到cminmsgs表
|
|
|
|
|
* @param xmlMsg
|
|
|
|
|
*/
|
|
|
|
|
public Cminmsg sendXmlMsg(String xmlMsg);
|
2018-11-29 13:33:46 +08:00
|
|
|
|
2018-12-03 10:44:14 +08:00
|
|
|
/**
|
|
|
|
|
* 获取回复的航班计划信息
|
2018-12-06 14:35:12 +08:00
|
|
|
* @param date 大于当前日期
|
|
|
|
|
* @param 失败后尝试次数
|
|
|
|
|
* @param 每次尝试间隔毫秒数
|
2018-12-03 10:44:14 +08:00
|
|
|
* @return
|
|
|
|
|
*/
|
2018-12-06 14:35:12 +08:00
|
|
|
public Optional<Cminmsg> getRespSchdCminmsg(Date date,Integer tryTimes,Long intervalMs);
|
2018-12-03 10:44:14 +08:00
|
|
|
|
|
|
|
|
|
2018-11-29 13:33:46 +08:00
|
|
|
/**
|
|
|
|
|
* 获取指定时间后的新消息
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
public List<Cminmsg> getNewMsgsAfterDate(Date afterdate);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取指定id后的消息,消息id有序
|
|
|
|
|
* @param id
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
public List<Cminmsg> getNewMsgsAfterId(Long id);
|
2018-11-28 20:32:19 +08:00
|
|
|
}
|