|
@@ -9,6 +9,7 @@ import com.zhongshu.payment.client.service.v2.OrderService2;
|
|
import com.zhongshu.payment.client.type.JobFlowMap;
|
|
import com.zhongshu.payment.client.type.JobFlowMap;
|
|
import com.zhongshu.payment.client.type.JobFlowType;
|
|
import com.zhongshu.payment.client.type.JobFlowType;
|
|
import com.zhongshu.payment.client.type.OrderType;
|
|
import com.zhongshu.payment.client.type.OrderType;
|
|
|
|
+import com.zswl.cloud.shop.client.dto.life.OperateStockDto;
|
|
import com.zswl.cloud.springBtach.server.core.job.standard.StandarDeliveryJob;
|
|
import com.zswl.cloud.springBtach.server.core.job.standard.StandarDeliveryJob;
|
|
import lombok.SneakyThrows;
|
|
import lombok.SneakyThrows;
|
|
import lombok.extern.log4j.Log4j2;
|
|
import lombok.extern.log4j.Log4j2;
|
|
@@ -62,10 +63,9 @@ public class OrderStream extends StreamConsumer<OrderStremModel> {
|
|
jobLauncher.run(job, parameters).getExitStatus();
|
|
jobLauncher.run(job, parameters).getExitStatus();
|
|
ThreadLocal<ResultContent> resultContent = standarDeliveryJob.getResultContent();
|
|
ThreadLocal<ResultContent> resultContent = standarDeliveryJob.getResultContent();
|
|
Assert.isTrue(resultContent.get().getState().equals(ResultState.Success), "发货失败");
|
|
Assert.isTrue(resultContent.get().getState().equals(ResultState.Success), "发货失败");
|
|
-
|
|
|
|
orderService2.delivery(goodsResultModel.getId());
|
|
orderService2.delivery(goodsResultModel.getId());
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+ }else if (OrderType.WAIT_PAYMENT.equals(orderStremModel.getOrderType())) {
|
|
|
|
+ //todo 暂存
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|