|
|
|
@ -43,6 +43,7 @@ import org.springframework.stereotype.Service;
|
|
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
|
|
|
|
|
|
import java.util.*; |
|
|
|
|
import java.util.concurrent.atomic.AtomicReference; |
|
|
|
|
import java.util.function.Function; |
|
|
|
|
import java.util.stream.Collectors; |
|
|
|
|
|
|
|
|
@ -198,6 +199,7 @@ public class InComingServiceImpl implements IInComingService {
|
|
|
|
|
|
|
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
|
public R incomingPackage(InComingDTO inComingDTO) { |
|
|
|
|
AtomicReference<String> audio = new AtomicReference<>(); |
|
|
|
|
try{ |
|
|
|
|
String orderPackageCode = inComingDTO.getOrderPackageCode();//包件码
|
|
|
|
|
Long warehouseId = inComingDTO.getWarehouseId();//仓库id
|
|
|
|
@ -235,6 +237,8 @@ public class InComingServiceImpl implements IInComingService {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//把advanceDetailEntityList通过packageStatus分组
|
|
|
|
|
Map<String, List<TrunklineAdvanceDetailEntity>> advanceDetailEntityMap = advanceDetailEntityList.stream().collect(Collectors.groupingBy(TrunklineAdvanceDetailEntity::getPackageStatus)); |
|
|
|
|
|
|
|
|
@ -327,7 +331,11 @@ public class InComingServiceImpl implements IInComingService {
|
|
|
|
|
map.put("trayCode", trayCode); |
|
|
|
|
map.put("warehouseId", warehouseId); |
|
|
|
|
map.put("orderPackageCode", packageCode); |
|
|
|
|
warehouseTrayTypeClient.orderScanOrderPackageCodeReturnR(map); |
|
|
|
|
R r = warehouseTrayTypeClient.orderScanOrderPackageCodeReturnR(map); |
|
|
|
|
Object data = r.getData(); |
|
|
|
|
if(!Objects.isNull(data)){ |
|
|
|
|
audio.set((String) data); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
@ -421,7 +429,11 @@ public class InComingServiceImpl implements IInComingService {
|
|
|
|
|
map.put("trayCode", trayCode); |
|
|
|
|
map.put("warehouseId", warehouseId); |
|
|
|
|
map.put("orderPackageCode", packageCode); |
|
|
|
|
warehouseTrayTypeClient.orderScanOrderPackageCode(map); |
|
|
|
|
R r = warehouseTrayTypeClient.orderScanOrderPackageCodeReturnR(map); |
|
|
|
|
Object data = r.getData(); |
|
|
|
|
if(!Objects.isNull(data)){ |
|
|
|
|
audio.set((String) data); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
@ -469,6 +481,11 @@ public class InComingServiceImpl implements IInComingService {
|
|
|
|
|
throw e; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
String a = audio.get(); |
|
|
|
|
if(StringUtil.isNotBlank(a)){ |
|
|
|
|
return Resp.scanSuccess("入库成功",a); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return R.success("入库成功"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|