重新更加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
@@ -13,7 +13,8 @@ import org.springframework.stereotype.Service;
import com.gzzn.omms.msgexchangeapi.dao.CminmsgDao;
import com.gzzn.omms.msgexchangeapi.entity.Cminmsg;
import com.gzzn.omms.msgexchangeapi.entity.msg.Msg;
import com.gzzn.omms.msgexchangeapi.entity.msg.MSG;
import com.gzzn.omms.msgexchangeapi.service.exchange.IExchangeService;
@Service("cminmsgService")
public class CminmsgServiceImpl implements ICminmsgService {
@@ -73,9 +74,9 @@ public class CminmsgServiceImpl implements ICminmsgService {
.stream()
.filter(x->{
String msgBlob = x.getCminmsgsClobMsg();
Msg msg = exchangeService.xmlstrToObject(msgBlob, Msg.class);
String type = msg.getMeta().getType();
String subType = msg.getMeta().getStyp();
MSG msg = exchangeService.xmlstrToObject(msgBlob, MSG.class);
String type = msg.getMETA().getTYPE().name();
String subType = msg.getMETA().getSTYP().name();
return type.equals("SCHD") && subType.equals("RESP");
})
.findFirst();