JsonUtils rename method name
This commit is contained in:
@@ -98,7 +98,7 @@ public class HistorySystemLogsService extends JpaBaseService<HistorySystemLogs>
|
||||
systemLog.setUsername(operator.getUsername());
|
||||
systemLog.setDisplayName(operator.getDisplayName());
|
||||
systemLog.setInstId(operator.getInstId());
|
||||
systemLog.setJsonCotent(JsonUtils.gson2Json(entity));
|
||||
systemLog.setJsonCotent(JsonUtils.gsonToString(entity));
|
||||
_logger.trace("System Log {}" ,systemLog);
|
||||
getMapper().insert(systemLog);
|
||||
}
|
||||
|
||||
@@ -112,7 +112,7 @@ public class ProvisioningRunner {
|
||||
}
|
||||
|
||||
public void provisionLog(String conName,String topic,String actionType,String sourceId,String sourceName,String resultMessage,int instid) {
|
||||
Message<?> resultMsg = JsonUtils.json2Object(resultMessage, Message.class);
|
||||
Message<?> resultMsg = JsonUtils.stringToObject(resultMessage, Message.class);
|
||||
String result = "success";
|
||||
if(resultMsg == null || resultMsg.getCode() != 0) {
|
||||
result = "fail";
|
||||
|
||||
@@ -50,7 +50,7 @@ public class ProvisioningThread extends Thread{
|
||||
public void run() {
|
||||
_logger.debug("send message \n{}" ,new JsonPretty().jacksonFormat(msg.getSourceObject()));
|
||||
msg.setContent(ObjectTransformer.serialize((Serializable)msg.getSourceObject()));
|
||||
Inst inst = JsonUtils.gson2Object(JsonUtils.gson2Json(msg.getSourceObject()), Inst.class);
|
||||
Inst inst = JsonUtils.gsonStringToObject(JsonUtils.gsonToString(msg.getSourceObject()), Inst.class);
|
||||
jdbcTemplate.update(PROVISION_INSERT_STATEMENT,
|
||||
new Object[] {
|
||||
msg.getId(), msg.getTopic(), msg.getActionType(), msg.getContent(),
|
||||
|
||||
Reference in New Issue
Block a user