收取日航班计划后推送消息到kafka约定的dschd 队列
This commit is contained in:
@@ -25,7 +25,9 @@ public class DNLDHandler extends SchdBaseHandler{
|
|||||||
return HandlerResult.failure();
|
return HandlerResult.failure();
|
||||||
}
|
}
|
||||||
|
|
||||||
//日航班计划第二天的,不需要通知前端
|
//发送日计划到kafka队列
|
||||||
|
this.sendDschd(cminmsg);
|
||||||
|
|
||||||
this.updateCminmsgToProcessed(cminmsg);
|
this.updateCminmsgToProcessed(cminmsg);
|
||||||
return HandlerResult.success();
|
return HandlerResult.success();
|
||||||
} //end function
|
} //end function
|
||||||
|
|||||||
@@ -35,6 +35,19 @@ public class SchdBaseHandler implements IBaseHandler{
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 发送日计划到kafka队列
|
||||||
|
* @param cminmsg
|
||||||
|
*/
|
||||||
|
protected void sendDschd(Cminmsg cminmsg)
|
||||||
|
{
|
||||||
|
//send msg
|
||||||
|
String msg = exchangeService.xmlstrToJson(
|
||||||
|
cminmsg.getCminmsgsClobMsg()
|
||||||
|
);
|
||||||
|
kafkaservice.msgSend("dschd", msg);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 仅发送动态消息
|
* 仅发送动态消息
|
||||||
|
|||||||
Reference in New Issue
Block a user