重新更加xsd生成所有的消息pojo类 。并完整重构代码
This commit is contained in:
@@ -9,8 +9,8 @@ import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.gzzn.omms.msgexchangeapi.entity.Cminmsg;
|
||||
import com.gzzn.omms.msgexchangeapi.entity.msg.Msg;
|
||||
import com.gzzn.omms.msgexchangeapi.service.IExchangeService;
|
||||
import com.gzzn.omms.msgexchangeapi.entity.msg.MSG;
|
||||
import com.gzzn.omms.msgexchangeapi.service.exchange.IExchangeService;
|
||||
|
||||
@Service("msgHandlerDispatcher")
|
||||
public class MsgHandlerDispatcher {
|
||||
@@ -21,9 +21,9 @@ public class MsgHandlerDispatcher {
|
||||
|
||||
public HandlerResult dispatch(Cminmsg cminmsg)
|
||||
{
|
||||
Msg msg = exchangeService.xmlstrToObject(cminmsg.getCminmsgsClobMsg(), Msg.class);
|
||||
String type = msg.getMeta().getType();
|
||||
String subType = msg.getMeta().getStyp();
|
||||
MSG msg = exchangeService.xmlstrToObject(cminmsg.getCminmsgsClobMsg(), MSG.class);
|
||||
String type = msg.getMETA().getTYPE().name();
|
||||
String subType = msg.getMETA().getSTYP().name();
|
||||
|
||||
try
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user