|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
package com.logpm.patch.jobhandle; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
|
import com.logpm.distribution.entity.DistributionParcelListEntity; |
|
|
|
|
import com.logpm.distribution.feign.IDistributionDeliveryListClient; |
|
|
|
|
import com.logpm.distribution.feign.IDistributionReservationClient; |
|
|
|
@ -8,6 +9,7 @@ import com.logpm.patch.service.ISyncDistributionParcelListService;
|
|
|
|
|
import com.logpm.warehouse.feign.IWarehouseUpdownTypeClient; |
|
|
|
|
import com.xxl.job.core.biz.model.ReturnT; |
|
|
|
|
import com.xxl.job.core.handler.annotation.XxlJob; |
|
|
|
|
import io.jsonwebtoken.lang.Objects; |
|
|
|
|
import lombok.AllArgsConstructor; |
|
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
|
import org.springblade.core.tool.utils.Func; |
|
|
|
@ -167,11 +169,19 @@ public class DistributionDatarepair {
|
|
|
|
|
*/ |
|
|
|
|
@XxlJob("pushNotification") |
|
|
|
|
public ReturnT<String> pushNotification(String params) { |
|
|
|
|
JSONObject jsonObject = JSONObject.parseObject(params); |
|
|
|
|
String warehouseIds =""; |
|
|
|
|
String reservationCode =""; |
|
|
|
|
if (!jsonObject.isEmpty()){ |
|
|
|
|
warehouseIds = jsonObject.getString("warehouseIds"); |
|
|
|
|
reservationCode = jsonObject.getString("reservationCode"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//维护配送的状态
|
|
|
|
|
String method = "######################DistributionDatarepair.maintenanceDeliveryStatus"; |
|
|
|
|
log.info(method+"维护配送订单id:{}",params); |
|
|
|
|
deliveryListClient.pushNotification(params); |
|
|
|
|
log.info(method+"维护配送订单结束"); |
|
|
|
|
String method = "######################DistributionDatarepair.pushNotification"; |
|
|
|
|
log.info(method+"推送老系统:{}",params); |
|
|
|
|
deliveryListClient.pushNotification(warehouseIds,reservationCode); |
|
|
|
|
log.info(method+"推送老系统"); |
|
|
|
|
return ReturnT.SUCCESS; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|