1526 发货系统-成套设备业务功能开发-【成套设备标签打印】页面
This commit is contained in:
parent
a5bf59d508
commit
2bff2543f3
|
|
@ -78,6 +78,7 @@ public class WmsShipmentCompleteSetOfEquipmentLabelPrintingDeliveryItemServiceIm
|
||||||
@Override
|
@Override
|
||||||
public void updateDeliveryItemStatus(List<Long> ids, List<WmsShipmentCompleteSetOfEquipmentLabelPrintingDeliveryItem> preFetchedItems) {
|
public void updateDeliveryItemStatus(List<Long> ids, List<WmsShipmentCompleteSetOfEquipmentLabelPrintingDeliveryItem> preFetchedItems) {
|
||||||
Map<Long, Long> id2PrePackagingCodeIdMap = preFetchedItems.stream()
|
Map<Long, Long> id2PrePackagingCodeIdMap = preFetchedItems.stream()
|
||||||
|
.filter(item -> item.getPackagingCodeId() != null)
|
||||||
.collect(Collectors.toMap(WmsShipmentCompleteSetOfEquipmentLabelPrintingDeliveryItem::getId, WmsShipmentCompleteSetOfEquipmentLabelPrintingDeliveryItem::getPackagingCodeId, (oldVal, newVal) -> newVal));
|
.collect(Collectors.toMap(WmsShipmentCompleteSetOfEquipmentLabelPrintingDeliveryItem::getId, WmsShipmentCompleteSetOfEquipmentLabelPrintingDeliveryItem::getPackagingCodeId, (oldVal, newVal) -> newVal));
|
||||||
|
|
||||||
List<WmsShipmentCompleteSetOfEquipmentLabelPrintingDeliveryItem> items = this.lambdaQuery()
|
List<WmsShipmentCompleteSetOfEquipmentLabelPrintingDeliveryItem> items = this.lambdaQuery()
|
||||||
|
|
|
||||||
|
|
@ -1122,8 +1122,13 @@ public class CompleteSetOfEquipmentLabelPrintingController extends BaseControlle
|
||||||
// 在更新为null前先获取packagingCodeId
|
// 在更新为null前先获取packagingCodeId
|
||||||
List<WmsShipmentCompleteSetOfEquipmentLabelPrintingDeliveryItem> itemsBeforeUpdate = deliveryItemService.lambdaQuery()
|
List<WmsShipmentCompleteSetOfEquipmentLabelPrintingDeliveryItem> itemsBeforeUpdate = deliveryItemService.lambdaQuery()
|
||||||
.in(WmsShipmentCompleteSetOfEquipmentLabelPrintingDeliveryItem::getId, ids)
|
.in(WmsShipmentCompleteSetOfEquipmentLabelPrintingDeliveryItem::getId, ids)
|
||||||
|
.eq(WmsShipmentCompleteSetOfEquipmentLabelPrintingDeliveryItem::getDeliveryStatus, CompleteSetDeliveryStatus.Packed.getState())
|
||||||
.list();
|
.list();
|
||||||
|
|
||||||
|
if (CollectionUtil.isEmpty(itemsBeforeUpdate) || itemsBeforeUpdate.size() != ids.size()) {
|
||||||
|
throw new NflgException(STATE.BusinessError, "请选择已装箱的数据");
|
||||||
|
}
|
||||||
|
|
||||||
deliveryItemService.lambdaUpdate()
|
deliveryItemService.lambdaUpdate()
|
||||||
.set(WmsShipmentCompleteSetOfEquipmentLabelPrintingDeliveryItem::getBoxNo, null)
|
.set(WmsShipmentCompleteSetOfEquipmentLabelPrintingDeliveryItem::getBoxNo, null)
|
||||||
.set(WmsShipmentCompleteSetOfEquipmentLabelPrintingDeliveryItem::getPackagingCodeId, null)
|
.set(WmsShipmentCompleteSetOfEquipmentLabelPrintingDeliveryItem::getPackagingCodeId, null)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue