Browse Source

Merge remote-tracking branch 'origin/pre-production' into pre-production

master
汤建军 8 months ago
parent
commit
e08c5bb070
  1. 8
      blade-service/logpm-factory-data/logpm-factory-data-olo/src/main/java/com/logpm/factorydata/olo/service/impl/DeliveryNoteServiceImpl.java

8
blade-service/logpm-factory-data/logpm-factory-data-olo/src/main/java/com/logpm/factorydata/olo/service/impl/DeliveryNoteServiceImpl.java

@ -235,7 +235,7 @@ public class DeliveryNoteServiceImpl extends BaseServiceImpl<DeliveryNoteMapper,
@Override @Override
public void customPushNodeData() { public void customPushNodeData() {
JSONObject js = this.baseMapper.customPushNodeData(); JSONObject js = this.baseMapper.customPushNodeData();
if(ObjectUtil.isEmpty(js)){ if (ObjectUtil.isEmpty(js)) {
return; return;
} }
String sns = js.getStr("sns"); String sns = js.getStr("sns");
@ -253,10 +253,12 @@ public class DeliveryNoteServiceImpl extends BaseServiceImpl<DeliveryNoteMapper,
} }
js.set("snList", snArray); js.set("snList", snArray);
js.remove("sns"); js.remove("sns");
JSONArray jsonArray = new JSONArray();
jsonArray.add(js);
if (StrUtil.isNotEmpty(oldProperties.getPushNodeUrl())) { if (StrUtil.isNotEmpty(oldProperties.getPushNodeUrl())) {
try { try {
log.info("自定义推送节点数据:{}", js.toString()); log.info("自定义推送节点数据:{}", JSONUtil.toJsonStr(jsonArray));
String post = HttpUtil.post(oldProperties.getPushNodeUrl(), JSONUtil.toJsonStr(CollUtil.newArrayList(js))); String post = HttpUtil.post(oldProperties.getPushNodeUrl(), JSONUtil.toJsonStr(jsonArray));
log.info("推送结果:{}", post); log.info("推送结果:{}", post);
// 修改推送状态 // 修改推送状态
this.baseMapper.updateSustomPushNodeDataStatus(js.getStr("status"), js.getStr("orderNo"), js.getStr("deliveryNo")); this.baseMapper.updateSustomPushNodeDataStatus(js.getStr("status"), js.getStr("orderNo"), js.getStr("deliveryNo"));

Loading…
Cancel
Save