|
|
|
@ -1,7 +1,6 @@
|
|
|
|
|
package com.logpm.factorydata.mengtian.mq; |
|
|
|
|
|
|
|
|
|
import cn.hutool.core.collection.CollUtil; |
|
|
|
|
import cn.hutool.core.convert.Convert; |
|
|
|
|
import cn.hutool.core.util.EnumUtil; |
|
|
|
|
import cn.hutool.core.util.ObjectUtil; |
|
|
|
|
import cn.hutool.core.util.StrUtil; |
|
|
|
@ -321,13 +320,13 @@ public class NodeDataPushListener {
|
|
|
|
|
String resBody = execute.body(); |
|
|
|
|
log.info("推送工厂结果:{}", resBody); |
|
|
|
|
JSONObject entries = JSONUtil.parseObj(resBody); |
|
|
|
|
int resultCode = entries.getInt("Result"); |
|
|
|
|
String resultCode = entries.getStr("Result"); |
|
|
|
|
// 存入日志表
|
|
|
|
|
entity.setContent(body); |
|
|
|
|
entity.setOperationCode(operationCode); |
|
|
|
|
entity.setSendUrl(mengTianProperties.getHost() + url); |
|
|
|
|
entity.setResultContent(resBody); |
|
|
|
|
entity.setSendStatus(Convert.toStr(resultCode)); |
|
|
|
|
entity.setSendStatus(StrUtil.isEmpty(resultCode) ? "0" : resultCode); |
|
|
|
|
factoryNodePushService.save(entity); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|