CustomerService.java 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. package com.goafanti.customer.service;
  2. import java.util.List;
  3. import com.goafanti.common.model.Customer;
  4. import com.goafanti.common.model.CustomerLog;
  5. import com.goafanti.common.model.CustomerUserInfo;
  6. import com.goafanti.common.model.FollowUpRecord;
  7. import com.goafanti.core.mybatis.page.Pagination;
  8. import com.goafanti.customer.bo.CustomerIn;
  9. import com.goafanti.customer.bo.CustomerOut;
  10. public interface CustomerService {
  11. /**
  12. * 添加客户信息
  13. * @param cus
  14. * @return
  15. */
  16. int addCustomer(Customer cus,CustomerUserInfo cui,FollowUpRecord fur);
  17. /**
  18. * 删除客户信息
  19. * @param id
  20. */
  21. void deleteCustomer(String id);
  22. /**
  23. * 查询上级ID集合
  24. * @param userId
  25. * @return
  26. */
  27. String findLadderIds(String userId);
  28. /**
  29. * 修改用户的管理层ID
  30. * @param ladderId
  31. */
  32. void updateLadderIds(String ladderId);
  33. /**
  34. * 获取私有客户
  35. * @return
  36. */
  37. Pagination<CustomerOut> getPrivateCustomer(CustomerIn cin,Integer pageSize, Integer pageNumber);
  38. /**
  39. * 获取公共客户
  40. * @return
  41. */
  42. Pagination<CustomerOut> getPublicCustomer(CustomerIn cin,Integer pageSize, Integer pageNumber);
  43. /**
  44. * 获取团队客户
  45. * @return
  46. */
  47. Pagination<CustomerOut> getTeamCustomer(CustomerIn cin, Integer pageSize, Integer pageNumber);
  48. /**
  49. * 获取公司客户
  50. * @return
  51. */
  52. Pagination<CustomerOut> getCompanyCustomer(CustomerIn cin, Integer pageSize, Integer pageNumber);
  53. /**
  54. *
  55. * @param cus 添加日志
  56. */
  57. public void saveCustomerLog(CustomerIn cus,String operatorType);
  58. /**
  59. *
  60. * @param 查询客户详情
  61. * @param id
  62. */
  63. public CustomerOut findCustomerDetails(String id);
  64. /**
  65. *
  66. * @param 修改客户信息
  67. * @param id
  68. */
  69. public int updateCustomer(Customer c);
  70. /**
  71. *
  72. * @param id
  73. * @return 查询公司基本信息
  74. */
  75. public CustomerOut findCustomerBaseInfo(String id);
  76. /**
  77. * 查看日志信息
  78. * @param customerId
  79. * @return
  80. */
  81. public List<CustomerLog> listCustomerLog(String customerId);
  82. /**
  83. * 客户详情-历史记录
  84. * @param customerId
  85. * @return
  86. */
  87. public CustomerOut findCustomerHistory(String customerId);
  88. /**
  89. * 保存上传的客户资料
  90. * @param excelPath
  91. */
  92. public void saveUploadData(List<CustomerIn> cinList);
  93. /**
  94. * 查看客户是否已经存在
  95. */
  96. int findCustomerByName(String companyName);
  97. }