package com.xhpc.evcs.jpa;

import com.xhpc.order.domain.XhpcPlaceholderTimeOrder;
import com.xhpc.order.domain.XhpcPlacreholder;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.repository.query.QueryByExampleExecutor;
import org.springframework.stereotype.Repository;

/**
 * @author yuyang
 * @Date 2025-08-04 16:11
 */
@Repository
public interface PlaceholderIRepository extends JpaRepository<XhpcPlacreholder, Long>, QueryByExampleExecutor<XhpcPlacreholder>, JpaSpecificationExecutor<XhpcPlacreholder>, PagingAndSortingRepository<XhpcPlacreholder, Long> {

    XhpcPlacreholder findByStatusAndChargingStationIdAndDelFlag(Integer status,Long chargingStationId,Integer delFlag);

    XhpcPlacreholder findByChargingStationIdAndDelFlag(Long chargingStationId,Integer delFlag);

    XhpcPlacreholder findByTypeAndChargingStationIdAndDelFlag(Integer type,Long chargingStationId,Integer delFlag);

    XhpcPlacreholder findByYkcStatusAndChargingStationIdAndDelFlag(Integer ykcStatus,Long chargingStationId,Integer delFlag);
}
