|
@@ -14,6 +14,7 @@ import com.fjhx.customer.service.customer.CustomerService;
|
|
import com.fjhx.item.service.product.ProductInfoService;
|
|
import com.fjhx.item.service.product.ProductInfoService;
|
|
import com.fjhx.kd100.entity.company.po.CompanyInfo;
|
|
import com.fjhx.kd100.entity.company.po.CompanyInfo;
|
|
import com.fjhx.kd100.service.company.CompanyInfoService;
|
|
import com.fjhx.kd100.service.company.CompanyInfoService;
|
|
|
|
+import com.fjhx.kd100.util.KD100Util;
|
|
import com.fjhx.victoriatourist.entity.logistics.po.LogisticsDetails;
|
|
import com.fjhx.victoriatourist.entity.logistics.po.LogisticsDetails;
|
|
import com.fjhx.victoriatourist.entity.logistics.po.LogisticsInfos;
|
|
import com.fjhx.victoriatourist.entity.logistics.po.LogisticsInfos;
|
|
import com.fjhx.victoriatourist.entity.logistics.vo.LogisticsInfosVo;
|
|
import com.fjhx.victoriatourist.entity.logistics.vo.LogisticsInfosVo;
|
|
@@ -260,6 +261,14 @@ public class OrderInfoServiceImpl extends ServiceImpl<OrderInfoMapper, OrderInfo
|
|
logisticsInfos.setCode(stockWaitDetailsDto.getLogisticsCode());
|
|
logisticsInfos.setCode(stockWaitDetailsDto.getLogisticsCode());
|
|
logisticsInfos.setWarehouseId(stockWaitDetailsDto.getWarehouseId());
|
|
logisticsInfos.setWarehouseId(stockWaitDetailsDto.getWarehouseId());
|
|
logisticsInfos.setIsKd100(0);
|
|
logisticsInfos.setIsKd100(0);
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ //发起快递100订阅
|
|
|
|
+ DynamicDataSourceContextHolder.push(SourceConstant.KD100);
|
|
|
|
+ Integer state = KD100Util.monitor(logisticsInfos.getLogisticsCompanyCode(), logisticsInfos.getCode(), logisticsInfos.getId(), 3, LogisticsInfos.class).getState();
|
|
|
|
+ DynamicDataSourceContextHolder.poll();
|
|
|
|
+ logisticsInfos.setLogisticsStatus(state);
|
|
|
|
+
|
|
logisticsInfosService.save(logisticsInfos);
|
|
logisticsInfosService.save(logisticsInfos);
|
|
|
|
|
|
LogisticsDetails logisticsDetails = new LogisticsDetails();
|
|
LogisticsDetails logisticsDetails = new LogisticsDetails();
|
|
@@ -286,6 +295,13 @@ public class OrderInfoServiceImpl extends ServiceImpl<OrderInfoMapper, OrderInfo
|
|
logisticsInfos.setWarehouseId(stockWaitDto.getWarehouseId());
|
|
logisticsInfos.setWarehouseId(stockWaitDto.getWarehouseId());
|
|
logisticsInfos.setIsKd100(0);
|
|
logisticsInfos.setIsKd100(0);
|
|
logisticsInfos.setStockWaitId(stockWait.getId());
|
|
logisticsInfos.setStockWaitId(stockWait.getId());
|
|
|
|
+
|
|
|
|
+ //发起快递100订阅
|
|
|
|
+ DynamicDataSourceContextHolder.push(SourceConstant.KD100);
|
|
|
|
+ Integer state = KD100Util.monitor(logisticsInfos.getLogisticsCompanyCode(), logisticsInfos.getCode(), logisticsInfos.getId(), 3, LogisticsInfos.class).getState();
|
|
|
|
+ DynamicDataSourceContextHolder.poll();
|
|
|
|
+ logisticsInfos.setLogisticsStatus(state);
|
|
|
|
+
|
|
logisticsInfosService.save(logisticsInfos);
|
|
logisticsInfosService.save(logisticsInfos);
|
|
|
|
|
|
List<StockWaitDetails> stockWaitDetailsList = stockWaitDto.getStockWaitDetailsList();
|
|
List<StockWaitDetails> stockWaitDetailsList = stockWaitDto.getStockWaitDetailsList();
|