package com.xhpc.evcs.cdjgpc.jpa;

import com.xhpc.evcs.cdjgpc.domain.XhpcChargeOrder;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.query.QueryByExampleExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 充电站实时负荷
 *
 * @author yuyang
 * @Date 2024-08-16 14:04
 */
@Repository
public interface XhpcChargeOrderRepository extends JpaRepository<XhpcChargeOrder, String>,
        QueryByExampleExecutor<XhpcChargeOrder>, JpaSpecificationExecutor<XhpcChargeOrder> {


    //查询充电中的数据
    List<XhpcChargeOrder> findByStatusAndDelFlagAndChargingStationIdOrderByChargingStationId(Integer status,Integer delflag,Long chargingStationId);

}
