Browse Source

1.增加欧派数据推送日志

training
pref_mail@163.com 1 year ago
parent
commit
9b343f637b
  1. 3
      blade-service-api/logpm-factory-api/src/main/java/com/logpm/factory/oupai/entity/OpPackagePushLogEntity.java
  2. 2
      blade-service/logpm-factory/src/main/java/com/logpm/factory/oupai/service/impl/OuPaiFactoryServiceImpl.java

3
blade-service-api/logpm-factory-api/src/main/java/com/logpm/factory/oupai/entity/OpPackagePushLogEntity.java

@ -37,4 +37,7 @@ public class OpPackagePushLogEntity extends BaseEntity {
@ApiModelProperty(name = "关联ID 根据push_type来决定关联的表",notes = "")
private Long refId ;
@ApiModelProperty(name="欧派节点 入库 出库 收货")
private String pushOupaiNode;
}

2
blade-service/logpm-factory/src/main/java/com/logpm/factory/oupai/service/impl/OuPaiFactoryServiceImpl.java

@ -516,6 +516,8 @@ public class OuPaiFactoryServiceImpl implements IOuPaiFactoryService {
opPackagePushLogEntity.setPushType(pushType);
opPackagePushLogEntity.setUrl(url);
opPackagePushLogEntity.setRefId(refId);
opPackagePushLogEntity.setPushOupaiNode(data.getString("Operate"));
String token = buildToken();
HttpResponse httpResponse = HttpRequest.post(url).header("Authorization", token).body(data.toJSONString()).execute();

Loading…
Cancel
Save