package com.jwipc.supplier.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.jwipc.supplier.entity.CustomerInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zhangjie
 * @since 2024-03-15
 */
public interface CustomerInfoMapper extends BaseMapper<CustomerInfo> {

    Integer findCount(@Param("ew") LambdaQueryWrapper<CustomerInfo> queryWrapper);

    List<CustomerInfo> findListForPage(@Param("offset")Integer offset, @Param("rows")Integer rows, @Param("ew")LambdaQueryWrapper<CustomerInfo> queryWrapper);

    CustomerInfo getCustomerInfoByCode(@Param("code") String code);
}
