package com.ffii.fpsms.m18.entity

import com.ffii.core.support.AbstractRepository

interface M18BomShopSyncLogRepository : AbstractRepository<M18BomShopSyncLog, Long> {
    fun findFirstByBomIdOrderByIdDesc(bomId: Long): M18BomShopSyncLog?

    fun findTop100ByBomIdOrderByIdDesc(bomId: Long): List<M18BomShopSyncLog>

    /** Successful M18 udfBomForShop saves only — used for `BOM{item}Vnnn` version allocation. */
    fun findTop100ByBomIdAndSyncedIsTrueOrderByIdDesc(bomId: Long): List<M18BomShopSyncLog>
}
