CustomerMapper.java 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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 Mon Nov 06 08:45:21 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 Mon Nov 06 08:45:21 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 Mon Nov 06 08:45:21 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 Mon Nov 06 08:45:21 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 Mon Nov 06 08:45:21 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 Mon Nov 06 08:45:21 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 Mon Nov 06 08:45:21 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 Mon Nov 06 08:45:21 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 Mon Nov 06 08:45:21 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 Mon Nov 06 08:45:21 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 Mon Nov 06 08:45:21 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. /**
  82. * 查询机构是否存在
  83. * @param companyName
  84. * @return
  85. */
  86. int findCustomerByName(String companyName);
  87. }