|
|
|
@ -4517,6 +4517,7 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
List<TrunklineCarsOrderEntity> carsOrderEntityList = trunklineCarsOrderService.listByIds(carsOrderIdList); |
|
|
|
|
//移除carsOrderEntityList中signNum不为0的元素
|
|
|
|
|
carsOrderEntityList.removeIf(e -> e.getSignNum() != 0); |
|
|
|
|
if(CollUtil.isNotEmpty(carsOrderEntityList)){ |
|
|
|
|
//把carsOrderEntityList通过signOrderId进行分组
|
|
|
|
|
Map<Long, List<TrunklineCarsOrderEntity>> collect = carsOrderEntityList.stream().collect(Collectors.groupingBy(TrunklineCarsOrderEntity::getSignOrderId)); |
|
|
|
|
Set<Long> signOrderIds = collect.keySet(); |
|
|
|
@ -4588,6 +4589,10 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
trunklineCarsLoadScanService.clearSignOrderIdByLoadIdAndWarehouseIdAndOrderCodeAndWaybillNo(finalLoadId1,nodeId,orderCode,waybillNo); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}else{ |
|
|
|
|
log.warn("###############updateWaybillOrderIsCustemer: 订单已有签收数据不能移除"); |
|
|
|
|
return R.fail(405,"订单已有签收数据,不能移除"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
List<TrunklineLoadSignOrderEntity> signOrderList =trunklineLoadSignOrderService.findSignOrderListByLoadId(loadId); |
|
|
|
|