CustomerMapper.java 757 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. package com.goafanti.common.dao;
  2. import java.util.List;
  3. import org.apache.ibatis.annotations.Param;
  4. import com.goafanti.common.model.Customer;
  5. public interface CustomerMapper {
  6. /**
  7. * 删除客户信息
  8. */
  9. int deleteCustomerByPrimaryKey(String id);
  10. /**
  11. * 查询客户详情
  12. */
  13. Customer selectCustomerByPrimaryKey(String id);
  14. /**
  15. * 修改客户信息
  16. */
  17. int updateCustomerByPrimaryKey(String id);
  18. /**
  19. * 新增
  20. */
  21. int insertCustomer(Customer cus);
  22. /**
  23. *
  24. * @param ladderId 上层领导ID
  25. * @return 所有包含上层领导ID的 客户记录
  26. */
  27. List<Customer> selectByLadderId(@Param("ladderId")String ladderId);
  28. void updateByPrimaryKeySelective(Customer customer);
  29. }