From 2d06b291cad16dfa9c5b41b39732451a6a8c0d43 Mon Sep 17 00:00:00 2001 From: "cyril.tsui" Date: Tue, 12 Aug 2025 15:36:49 +0800 Subject: [PATCH] update inventory lot line query --- .../fpsms/modules/stock/entity/InventoryLotLineRepository.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/ffii/fpsms/modules/stock/entity/InventoryLotLineRepository.kt b/src/main/java/com/ffii/fpsms/modules/stock/entity/InventoryLotLineRepository.kt index c49f4cc..e5486bb 100644 --- a/src/main/java/com/ffii/fpsms/modules/stock/entity/InventoryLotLineRepository.kt +++ b/src/main/java/com/ffii/fpsms/modules/stock/entity/InventoryLotLineRepository.kt @@ -13,7 +13,7 @@ import java.io.Serializable interface InventoryLotLineRepository : AbstractRepository { fun findInventoryLotLineInfoByInventoryLotItemIdIn(ids: List): List - @Query("select ill from InventoryLotLine ill where :id is null or ill.inventoryLot.item.id = :id") + @Query("select ill from InventoryLotLine ill where :id is null or ill.inventoryLot.item.id = :id order by ill.id desc") fun findInventoryLotLineInfoByItemId(id: Long?, pageable: Pageable): Page @Query("""