package com.dtok.repository;
import com.dtok.entity.CommonItem;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import java.util.Date;
import java.util.List;

/**
 * @Description  
 * @Author  C.J
 * @Date 2024-03-09 
 */

public interface CommonItemRepository  extends JpaRepository<CommonItem, String>, JpaSpecificationExecutor<CommonItem> {


    List<CommonItem> findAllByApp(String app);
    List<CommonItem> findAllByAppAndCreatedAt(String app,Long id);
    List<CommonItem> findAllByAppAndIsDefaultOrCreatedAt(String app,Boolean isDefault,Long id);
}
