瀏覽代碼

fix bag lot line function slow query

production
CANCERYS\kw093 1 月之前
父節點
當前提交
1d971256c4
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      src/main/java/com/ffii/fpsms/modules/bag/service/bagService.kt

+ 1
- 1
src/main/java/com/ffii/fpsms/modules/bag/service/bagService.kt 查看文件

@@ -29,7 +29,7 @@ open class BagService(
) {
open fun createBagLotLinesByBagId(request: CreateBagLotLineRequest): MessageResponse {
val bag = bagRepository.findById(request.bagId).orElse(null)
val lot = inventoryLotRepository.findByLotNoAndItemId(request.lotNo, request.itemId)
val lot = inventoryLotRepository.findByIdAndDeletedFalse(request.lotId)
val BaseUnitOfMeasure= itemUomRepository.findByItemIdAndStockUnitIsTrueAndDeletedIsFalse(request.itemId)
val baseRatioN = BaseUnitOfMeasure?.ratioN ?: BigDecimal.ONE
println("baseRatioN: $baseRatioN")


Loading…
取消
儲存