package com.hr.repository.jpa;

import com.hr.param.IpAccountParam;
import com.hr.repository.domain.IpAccountPO;
import com.hr.vo.IpAccountVO;
import com.yy.basedevelop.common.data.BasePageResult;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * 账户表;(ip_account)表数据库访问层
 * @author : Longhoo
 * @date : 2025-10-10
 */

public interface IpAccountRepository extends JpaRepository<IpAccountPO, Long> , JpaSpecificationExecutor<IpAccountPO> {

    IpAccountPO queryById(Long aid);

    IpAccountPO findByAccNo(String accNo);

    BasePageResult<IpAccountVO> queryList(@Param("accNo") String accNo, @Param("statusList") List<String> statusList);
}