重新更加xsd生成所有的消息pojo类 。并完整重构代码

This commit is contained in:
zhouxiunai
2018-12-07 15:29:28 +08:00
parent c02dc7929b
commit 63ffe59fd4
176 changed files with 32695 additions and 1757 deletions
@@ -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
{