|
|
@ -51,12 +51,18 @@ public class SyncOrderInfoController { |
|
|
|
log.warn(method+"仓库信息为空 myCurrentWarehouse={}",myCurrentWarehouse); |
|
|
|
log.warn(method+"仓库信息为空 myCurrentWarehouse={}",myCurrentWarehouse); |
|
|
|
return R.fail(403,"仓库信息为空"); |
|
|
|
return R.fail(403,"仓库信息为空"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
Long warehouseId = myCurrentWarehouse.getId(); |
|
|
|
|
|
|
|
log.info(method+" warehouseId={} oldWarehouseId={}",warehouseId,myCurrentWarehouse.getOldId()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BasicdataWarehouseEntity entityWarehouseId = warehouseClient.getEntityWarehouseId(warehouseId); |
|
|
|
|
|
|
|
log.info(method+" warehouseId={} oldWarehouseId={}",warehouseId,entityWarehouseId.getOldId()); |
|
|
|
|
|
|
|
|
|
|
|
String[] split = orderCodes.split(","); |
|
|
|
String[] split = orderCodes.split(","); |
|
|
|
|
|
|
|
|
|
|
|
List<String> orderCodeList = new ArrayList<>(Arrays.asList(split)); |
|
|
|
List<String> orderCodeList = new ArrayList<>(Arrays.asList(split)); |
|
|
|
|
|
|
|
|
|
|
|
syncOrderInfoService.handleData(orderCodeList,myCurrentWarehouse.getOldId(),myCurrentWarehouse.getId(),null,null); |
|
|
|
syncOrderInfoService.handleData(orderCodeList,entityWarehouseId.getOldId(),warehouseId,null,null); |
|
|
|
|
|
|
|
|
|
|
|
return R.success("拉取成功"); |
|
|
|
return R.success("拉取成功"); |
|
|
|
}catch (CustomerException e){ |
|
|
|
}catch (CustomerException e){ |
|
|
|