CustomerMapper.java 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. package com.goafanti.common.dao;
  2. import com.goafanti.common.model.Customer;
  3. import com.goafanti.common.model.CustomerExample;
  4. import com.goafanti.customer.bo.CustomerOut;
  5. import java.util.List;
  6. import org.apache.ibatis.annotations.Param;
  7. public interface CustomerMapper {
  8. /**
  9. * This method was generated by MyBatis Generator. This method corresponds to the database table customer
  10. * @mbg.generated Fri Oct 13 15:28:17 CST 2017
  11. */
  12. long countByExample(CustomerExample example);
  13. /**
  14. * This method was generated by MyBatis Generator. This method corresponds to the database table customer
  15. * @mbg.generated Fri Oct 13 15:28:17 CST 2017
  16. */
  17. int deleteByExample(CustomerExample example);
  18. /**
  19. * This method was generated by MyBatis Generator. This method corresponds to the database table customer
  20. * @mbg.generated Fri Oct 13 15:28:17 CST 2017
  21. */
  22. int deleteByPrimaryKey(String id);
  23. /**
  24. * This method was generated by MyBatis Generator. This method corresponds to the database table customer
  25. * @mbg.generated Fri Oct 13 15:28:17 CST 2017
  26. */
  27. int insert(Customer record);
  28. /**
  29. * This method was generated by MyBatis Generator. This method corresponds to the database table customer
  30. * @mbg.generated Fri Oct 13 15:28:17 CST 2017
  31. */
  32. int insertSelective(Customer record);
  33. /**
  34. * This method was generated by MyBatis Generator. This method corresponds to the database table customer
  35. * @mbg.generated Fri Oct 13 15:28:17 CST 2017
  36. */
  37. List<Customer> selectByExample(CustomerExample example);
  38. /**
  39. * This method was generated by MyBatis Generator. This method corresponds to the database table customer
  40. * @mbg.generated Fri Oct 13 15:28:17 CST 2017
  41. */
  42. Customer selectByPrimaryKey(String id);
  43. /**
  44. * This method was generated by MyBatis Generator. This method corresponds to the database table customer
  45. * @mbg.generated Fri Oct 13 15:28:17 CST 2017
  46. */
  47. int updateByExampleSelective(@Param("record") Customer record, @Param("example") CustomerExample example);
  48. /**
  49. * This method was generated by MyBatis Generator. This method corresponds to the database table customer
  50. * @mbg.generated Fri Oct 13 15:28:17 CST 2017
  51. */
  52. int updateByExample(@Param("record") Customer record, @Param("example") CustomerExample example);
  53. /**
  54. * This method was generated by MyBatis Generator. This method corresponds to the database table customer
  55. * @mbg.generated Fri Oct 13 15:28:17 CST 2017
  56. */
  57. int updateByPrimaryKeySelective(Customer record);
  58. /**
  59. * This method was generated by MyBatis Generator. This method corresponds to the database table customer
  60. * @mbg.generated Fri Oct 13 15:28:17 CST 2017
  61. */
  62. int updateByPrimaryKey(Customer record);
  63. /**
  64. * 查询
  65. * @param id
  66. * @return
  67. */
  68. CustomerOut selectCustomerById(String id);
  69. /**
  70. * 查询团队 客户记录
  71. * @param ladderId 上层领导ID
  72. * @return
  73. */
  74. List<Customer> selectByLadderId(@Param("ladderId")String ladderId);
  75. /**
  76. * 客户详情-历史记录
  77. * @param customerId
  78. * @return
  79. */
  80. CustomerOut findCustomerHistory(@Param("id")String customerId);
  81. }