|
|
|
@ -84,7 +84,7 @@ public class SyncOrderInfoServiceImpl implements ISyncOrderInfoService {
|
|
|
|
|
|
|
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
|
@Override |
|
|
|
|
public void handleData(List<String> orderCodeList,Integer oldWarehouseId,Long newWarehouseId) { |
|
|
|
|
public void handleData(List<String> orderCodeList,Integer oldWarehouseId,Long newWarehouseId,String tableName) { |
|
|
|
|
log.info("#############handleData: 处理订单开始"); |
|
|
|
|
for (String orderCode:orderCodeList){ |
|
|
|
|
log.info("#############handleData: 当前处理orderCode={}的订单 ",orderCode); |
|
|
|
@ -105,10 +105,14 @@ public class SyncOrderInfoServiceImpl implements ISyncOrderInfoService {
|
|
|
|
|
|
|
|
|
|
saveTrayTypeInfoPackage(orderCode,oldWarehouseId,newWarehouseId); |
|
|
|
|
|
|
|
|
|
orderClient.updateStatusWithTableName(1,orderCode,tableName); |
|
|
|
|
|
|
|
|
|
}catch (CustomerException e){ |
|
|
|
|
log.error("同步订单"+orderCode+"失败: "+e.message,e); |
|
|
|
|
orderClient.updateStatusWithTableName(2,orderCode,tableName); |
|
|
|
|
}catch (Exception e){ |
|
|
|
|
log.error("同步订单"+orderCode+"失败",e); |
|
|
|
|
orderClient.updateStatusWithTableName(2,orderCode,tableName); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// }
|
|
|
|
|