|
|
|
@@ -99,8 +99,11 @@ open class InventoryLotLineService( |
|
|
|
} |
|
|
|
val inputStream = resource.inputStream |
|
|
|
val poLabel = JasperCompileManager.compileReport(inputStream) |
|
|
|
val qrContent = stockInLineRepository.findStockInLineInfoByInventoryLotLineId(request.inventoryLotLineId).orElseThrow() |
|
|
|
val qrCodeInfo = listOf(qrContent) |
|
|
|
// val stockInLineInfo = stockInLineRepository.findStockInLineInfoByInventoryLotLineId(request.inventoryLotLineId).orElseThrow() |
|
|
|
val inventoryLotLine = inventoryLotLineRepository.findById(request.inventoryLotLineId).orElseThrow() |
|
|
|
val stockInLineInfo = inventoryLotLine.inventoryLot?.stockInLine?.id?.let { stockInLineRepository.findStockInLineInfoById(it).orElseThrow() } ?: throw NoSuchElementException() |
|
|
|
|
|
|
|
val qrCodeInfo = listOf(stockInLineInfo) |
|
|
|
// val qrCodeInfo = stockInLineRepository.findStockInLineInfoByIdInAndDeletedFalse(request.stockInLineIds).toMutableList() |
|
|
|
val fields = mutableListOf<MutableMap<String ,Any>>() |
|
|
|
|
|
|
|
|