Commit 97016b48 zshaohui

解决清空库位,更新任务状态

1 个父辈 f8066a69
...@@ -800,6 +800,7 @@ public class TaskService { ...@@ -800,6 +800,7 @@ public class TaskService {
Collection<DataLog> allTasks = taskMap.values(); Collection<DataLog> allTasks = taskMap.values();
if (pos.getBarcode() != null) { if (pos.getBarcode() != null) {
//barcode = pos.getBarcode(); //barcode = pos.getBarcode();
barcode = barcodeManager.findByBarcode(pos.getBarcode().getBarcode());
for (DataLog task : allTasks) { for (DataLog task : allTasks) {
if (task.isCheckOutTask()) { if (task.isCheckOutTask()) {
String executeBarcode = task.getBarcode(); String executeBarcode = task.getBarcode();
...@@ -856,6 +857,7 @@ public class TaskService { ...@@ -856,6 +857,7 @@ public class TaskService {
} else { } else {
//barcode = pos.getBarcode(); //barcode = pos.getBarcode();
barcode = barcodeManager.findByBarcode(pos.getBarcode().getBarcode());
log.info(opUser + "将【" + barcode.getBarcode() + "】从【" + pos.getPosName() + "】出库"); log.info(opUser + "将【" + barcode.getBarcode() + "】从【" + pos.getPosName() + "】出库");
task.setType(OP.CHECKOUT); task.setType(OP.CHECKOUT);
barcode.setUsed(true); barcode.setUsed(true);
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!