|
|
@ -380,7 +380,7 @@ public class AsyncDataServiceImpl implements IAsyncDataService { |
|
|
|
Long allocationId = taryAllocationService.getAllocationIdByTrayId(basicdataTrayEntity.getId()); |
|
|
|
Long allocationId = taryAllocationService.getAllocationIdByTrayId(basicdataTrayEntity.getId()); |
|
|
|
if(Objects.isNull(allocationId)){ |
|
|
|
if(Objects.isNull(allocationId)){ |
|
|
|
//没有上架就直接打托
|
|
|
|
//没有上架就直接打托
|
|
|
|
R response = trayTypeService.orderScanOrderPackageCode(newTrayType,"T"+trayId,orderPackageCode,newWarehouseId); |
|
|
|
R response = trayTypeService.orderScanOrderPackageCodeSync(newTrayType,"T"+trayId,orderPackageCode,newWarehouseId); |
|
|
|
int code = response.getCode(); |
|
|
|
int code = response.getCode(); |
|
|
|
String msg = response.getMsg(); |
|
|
|
String msg = response.getMsg(); |
|
|
|
if(code == 4001){ |
|
|
|
if(code == 4001){ |
|
|
@ -416,7 +416,7 @@ public class AsyncDataServiceImpl implements IAsyncDataService { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
R r = trayTypeService.orderScanOrderPackageCode(newTrayType,"T"+trayId,orderPackageCode,newWarehouseId); |
|
|
|
R r = trayTypeService.orderScanOrderPackageCodeSync(newTrayType,"T"+trayId,orderPackageCode,newWarehouseId); |
|
|
|
int code1 = r.getCode(); |
|
|
|
int code1 = r.getCode(); |
|
|
|
if(code1 != 200){ |
|
|
|
if(code1 != 200){ |
|
|
|
log.warn("####################orderStatusHandler: 二次打托失败 orderPackageCode={} trayCode={}",orderPackageCode,"T"+trayId); |
|
|
|
log.warn("####################orderStatusHandler: 二次打托失败 orderPackageCode={} trayCode={}",orderPackageCode,"T"+trayId); |
|
|
@ -439,7 +439,7 @@ public class AsyncDataServiceImpl implements IAsyncDataService { |
|
|
|
|
|
|
|
|
|
|
|
updownTypeService.downPackage(upShelfPackageList,wid); |
|
|
|
updownTypeService.downPackage(upShelfPackageList,wid); |
|
|
|
} |
|
|
|
} |
|
|
|
R r = trayTypeService.orderScanOrderPackageCode(newTrayType, "T" + trayId, orderPackageCode, newWarehouseId); |
|
|
|
R r = trayTypeService.orderScanOrderPackageCodeSync(newTrayType, "T" + trayId, orderPackageCode, newWarehouseId); |
|
|
|
int code1 = r.getCode(); |
|
|
|
int code1 = r.getCode(); |
|
|
|
if(code1 != 200){ |
|
|
|
if(code1 != 200){ |
|
|
|
log.warn("####################orderStatusHandler: 二次打托失败 orderPackageCode={} trayCode={}",orderPackageCode,"T"+trayId); |
|
|
|
log.warn("####################orderStatusHandler: 二次打托失败 orderPackageCode={} trayCode={}",orderPackageCode,"T"+trayId); |
|
|
@ -451,7 +451,7 @@ public class AsyncDataServiceImpl implements IAsyncDataService { |
|
|
|
//先去空置托盘再打托
|
|
|
|
//先去空置托盘再打托
|
|
|
|
trayTypeService.trayToNull("T"+trayId); |
|
|
|
trayTypeService.trayToNull("T"+trayId); |
|
|
|
|
|
|
|
|
|
|
|
R r = trayTypeService.orderScanOrderPackageCode(newTrayType, "T" + trayId, orderPackageCode, newWarehouseId); |
|
|
|
R r = trayTypeService.orderScanOrderPackageCodeSync(newTrayType, "T" + trayId, orderPackageCode, newWarehouseId); |
|
|
|
int code1 = r.getCode(); |
|
|
|
int code1 = r.getCode(); |
|
|
|
if(code1 != 200){ |
|
|
|
if(code1 != 200){ |
|
|
|
log.warn("####################orderStatusHandler: 二次打托失败 orderPackageCode={} trayCode={}",orderPackageCode,"T"+trayId); |
|
|
|
log.warn("####################orderStatusHandler: 二次打托失败 orderPackageCode={} trayCode={}",orderPackageCode,"T"+trayId); |
|
|
|