package com.jkcredit.invoice.mapper.customer; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.jkcredit.invoice.model.entity.customer.Customer; import org.apache.ibatis.annotations.Param; import org.springframework.stereotype.Repository; import java.util.List; @Repository public interface CustomerMapper extends BaseMapper { int deleteByPrimaryKey(Integer id); @Override int insert(Customer record); int insertSelective(Customer record); Customer selectByPrimaryKey(Integer id); Customer selectByCustomerName(String customerName); Customer selectByCustomerNameForLock(String customerName); int updateByPrimaryKeySelective(Customer record); int updateByPrimaryKey(Customer record); IPage> selectAllByPage(Page page, @Param("customer") Customer customer); IPage> selectAllByPageForNoMoney(Page page, @Param("customer") Customer customer); IPage> selectAllByPageForNoMoneyByZero(Page page, @Param("customer") Customer customer); Customer selectByAppKeyAndAppSecret(String customerName, String appSecret); }