Commit 1e76921fd2d2ec136dafc1999f3e872991cdc146
1 parent
f14f6fca
增加配置参数,支持只有整盘出库
Showing
3 changed files
with
5 additions
and
2 deletions
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/shipment/shipmentCombination/service/impl/ShipmentCombinationServiceImpl.java
... | ... | @@ -1373,6 +1373,8 @@ public class ShipmentCombinationServiceImpl implements IShipmentCombinationServi |
1373 | 1373 | int shipmentTaskRule = Integer.parseInt(value); |
1374 | 1374 | if (shipmentTaskRule == QuantityConstant.RULE_TASK_PICK_SHIPMENT) { |
1375 | 1375 | taskType = QuantityConstant.TASK_TYPE_SORTINGSHIPMENT; |
1376 | + } else if (shipmentTaskRule == QuantityConstant.RULE_TASK_WHOLE_SHIPMENT) { | |
1377 | + taskType = QuantityConstant.TASK_TYPE_WHOLESHIPMENT; | |
1376 | 1378 | } |
1377 | 1379 | if (forceTaskType != 0) { |
1378 | 1380 | taskType = forceTaskType; |
... | ... |
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/task/taskHeader/service/impl/TaskHeaderServiceImpl.java
... | ... | @@ -1844,6 +1844,7 @@ public class TaskHeaderServiceImpl extends ServiceImpl<TaskHeaderMapper, TaskHea |
1844 | 1844 | } |
1845 | 1845 | |
1846 | 1846 | @Override |
1847 | + @Transactional(rollbackFor = Exception.class) | |
1847 | 1848 | public Result completeWholeShipmentTaskClearInventory(InventoryHeader inventoryHeader, List<InventoryDetail> inventoryDetailList) { |
1848 | 1849 | List<InventoryTransaction> inventoryTransactionList = new ArrayList<>(); |
1849 | 1850 | for (InventoryDetail inventoryDetail : inventoryDetailList) { |
... | ... | @@ -1854,7 +1855,6 @@ public class TaskHeaderServiceImpl extends ServiceImpl<TaskHeaderMapper, TaskHea |
1854 | 1855 | inventoryTransaction.setContainerCode(inventoryDetail.getContainerCode()); |
1855 | 1856 | inventoryTransaction.setZoneCode(inventoryDetail.getZoneCode()); |
1856 | 1857 | inventoryTransaction.setFromLocationCode(inventoryDetail.getLocationCode()); |
1857 | - inventoryTransaction.setToLocationCode(inventoryDetail.getLocationCode()); | |
1858 | 1858 | inventoryTransaction.setMaterialCode(inventoryDetail.getMaterialCode()); |
1859 | 1859 | inventoryTransaction.setMaterialName(inventoryDetail.getMaterialName()); |
1860 | 1860 | inventoryTransaction.setMaterialSpec(inventoryDetail.getMaterialSpec()); |
... | ... |
huaheng-wms-core/src/main/java/org/jeecg/utils/constant/QuantityConstant.java
... | ... | @@ -595,8 +595,9 @@ public class QuantityConstant { |
595 | 595 | public static final int RULE_TASK_SET_LOCATION = 1; |
596 | 596 | public static final int RULE_TASK_NOT_LOCATION = 0; |
597 | 597 | |
598 | + public static final int RULE_TASK_WHOLE_OR_PICK_SHIPMENT = 0; | |
598 | 599 | public static final int RULE_TASK_PICK_SHIPMENT = 1; |
599 | - public static final int RULE_TASK_WHOLE_SHIPMENT = 0; | |
600 | + public static final int RULE_TASK_WHOLE_SHIPMENT = 2; | |
600 | 601 | |
601 | 602 | public static final int RULE_ALLOW_EMPTY = 1; |
602 | 603 | public static final int RULE_NOT_ALLOW_EMPTY = 0; |
... | ... |