CustomerMapper.java 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. package com.jkcredit.invoice.mapper.customer;
  2. import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  3. import com.baomidou.mybatisplus.core.metadata.IPage;
  4. import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
  5. import com.jkcredit.invoice.model.entity.customer.Customer;
  6. import org.apache.ibatis.annotations.Param;
  7. import org.springframework.stereotype.Repository;
  8. import java.util.List;
  9. @Repository
  10. public interface CustomerMapper extends BaseMapper<Customer> {
  11. int deleteByPrimaryKey(Integer id);
  12. int insert(Customer record);
  13. int insertSelective(Customer record);
  14. Customer selectByPrimaryKey(Integer id);
  15. Customer selectByCustomerName(String customerName);
  16. Customer selectByCustomerNameForLock(String customerName);
  17. int updateByPrimaryKeySelective(Customer record);
  18. int updateByPrimaryKey(Customer record);
  19. IPage<List<Customer>> selectAllByPage(Page page, @Param("customer") Customer customer);
  20. IPage<List<Customer>> selectAllByPageForNoMoney(Page page, @Param("customer") Customer customer);
  21. Customer selectByAppKeyAndAppSecret(String customerName, String appSecret);
  22. }