package com.czg.service.system.service.impl;

import com.czg.BaseQueryParam;
import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.spring.service.impl.ServiceImpl;
import com.czg.system.entity.SysBankInfo;
import com.czg.system.service.SysBankInfoService;
import com.czg.service.system.mapper.SysBankInfoMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 银行账户信息表 服务层实现。
 *
 * @author ww
 * @since 2026-01-06
 */
@Service
public class SysBankInfoServiceImpl extends ServiceImpl<SysBankInfoMapper, SysBankInfo> implements SysBankInfoService {

    @Override
    public Page<SysBankInfo> bankInfoList(BaseQueryParam param, String bankName) {
        return page(Page.of(param.getPage(), param.getSize()), query().like(SysBankInfo::getBankAlias, bankName));
    }
}
