Browse Source

feat(all): 修改梦天回推逻辑

dist.1.3.0
zhaoqiaobo 6 months ago
parent
commit
51ed160a87
  1. 10
      blade-service/logpm-factory-data/logpm-factory-data-mengtian/src/main/java/com/logpm/factorydata/mengtian/service/impl/FactoryNodePushServiceImpl.java

10
blade-service/logpm-factory-data/logpm-factory-data-mengtian/src/main/java/com/logpm/factorydata/mengtian/service/impl/FactoryNodePushServiceImpl.java

@ -23,6 +23,7 @@ import org.springblade.core.mp.base.BaseServiceImpl;
import org.springblade.core.mp.support.Condition;
import org.springframework.stereotype.Service;
import java.util.Date;
import java.util.List;
/**
@ -90,9 +91,12 @@ public class FactoryNodePushServiceImpl extends BaseServiceImpl<FactoryNodePushM
JSONObject entries = JSONUtil.parseObj(resBody);
int resultCode = entries.getInt("Result");
// 存入日志表
factoryNodePushEntity.setSendStatus(Convert.toStr(resultCode));
factoryNodePushEntity.setResultContent(resBody);
baseMapper.updateById(factoryNodePushEntity);
FactoryNodePushEntity updater = new FactoryNodePushEntity();
updater.setSendStatus(Convert.toStr(resultCode));
updater.setUpdateTime(new Date());
updater.setResultContent(resBody);
updater.setId(factoryNodePushEntity.getId());
baseMapper.updateById(updater);
return Boolean.TRUE;
}
}

Loading…
Cancel
Save