Commit 5e358363 zshaohui

1.311转库,取目的库别

1 个父辈 9cae9885
...@@ -1534,7 +1534,8 @@ public class LiteOrderCache { ...@@ -1534,7 +1534,8 @@ public class LiteOrderCache {
} }
} }
if (pos == null) { if (pos == null) {
pos = storagePosManager.findPartNumberInStorages(storageIdList, pn, excludePosIds, checkoutType, orderItem.getBrand(), orderItem.getWarehouseCode()); log.info(orderNo+"需要的库别为:"+orderItem.getSrcWarehouse());
pos = storagePosManager.findPartNumberInStorages(storageIdList, pn, excludePosIds, checkoutType, orderItem.getBrand(), orderItem.getSrcWarehouse());
} }
if (pos == null) { if (pos == null) {
break; break;
......
...@@ -149,11 +149,13 @@ public class AgvDeviceController { ...@@ -149,11 +149,13 @@ public class AgvDeviceController {
String checkType = LiteorderCheckType.TICKET_TRANSFER_CHECKOUT + ""; String checkType = LiteorderCheckType.TICKET_TRANSFER_CHECKOUT + "";
if (checkType.equals(task.getSourceType())){ if (checkType.equals(task.getSourceType())){
TicketPickPostData data = new TicketPickPostData(task.getTicketCode(),task.getTicketItem(),Arrays.asList(task.getCartonId())); TicketPickPostData data = new TicketPickPostData(task.getTicketCode(),task.getTicketItem(),Arrays.asList(task.getCartonId()));
LuxsanApi.ticketPickPost(new TicketPickPostRequest(CommonUtil.plantCode, task.getTicketCode(), "SWC", Arrays.asList(data))); String result = LuxsanApi.ticketPickPost(new TicketPickPostRequest(CommonUtil.plantCode, task.getTicketCode(), "SWC", Arrays.asList(data)));
Barcode barcode = barcodeManager.findByBarcode(task.getBarcode()); if (StringUtils.isEmpty(result)) {
if (barcode != null){ Barcode barcode = barcodeManager.findByBarcode(task.getBarcode());
barcode.setWarehouseCode(task.getWarehouseCode()); if (barcode != null) {
barcodeManager.save(barcode); barcode.setWarehouseCode(task.getWarehouseCode());
barcodeManager.save(barcode);
}
} }
} }
} }
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!