|
|
|
@ -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; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|