修改名字一致性

This commit is contained in:
zhouxiunai
2018-12-06 17:17:07 +08:00
parent 2202bd40b7
commit fa8e612f2b
6 changed files with 7 additions and 7 deletions
@@ -37,7 +37,7 @@ public class KafkaController {
kafkaservice.msgSend(topicName, msg);
} catch (Exception e) {
try {
String jsonStr = exchangeService.xmlToJson(msg);
String jsonStr = exchangeService.xmlstrToJson(msg);
kafkaservice.msgSend(topicName, jsonStr);
} catch (Exception e2) {
throw new RuntimeException(e2);
@@ -53,7 +53,7 @@ public class FlopBaseHandler implements IBaseHandler {
kafkaservice.msgSend("schd", schdMsg);
//send msg
String msg = exchangeService.xmlToJson(
String msg = exchangeService.xmlstrToJson(
cminmsg.getCminmsgsClobMsg()
);
kafkaservice.msgSend("msg", msg);
@@ -16,7 +16,7 @@ import com.gzzn.omms.msgexchangeapi.exception.ExchangeServiceException;
public class ExchangeServiceImpl implements IExchangeService {
@Override
public String xmlToJson(String xml) throws ExchangeServiceException {
public String xmlstrToJson(String xml) throws ExchangeServiceException {
try {
Map map;
ObjectMapper xmlMapper = new XmlMapper();
@@ -8,7 +8,7 @@ import com.gzzn.omms.msgexchangeapi.exception.ExchangeServiceException;
*
*/
public interface IExchangeService {
public String xmlToJson(String xml) throws ExchangeServiceException;
public String xmlstrToJson(String xml) throws ExchangeServiceException;
public <T> T xmlstrToObject(String xml,Class<T> valueType) throws ExchangeServiceException;
public String objectToXmlstr(Object object) throws ExchangeServiceException;
}