CustomerService.java 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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.core.mybatis.page.Pagination;
  6. import com.goafanti.customer.bo.CustomerIn;
  7. import com.goafanti.customer.bo.CustomerOut;
  8. public interface CustomerService {
  9. /**
  10. * 添加客户信息
  11. * @param cus
  12. * @return
  13. */
  14. int addCustomer(Customer cus);
  15. /**
  16. * 删除客户信息
  17. * @param id
  18. */
  19. void deleteCustomer(String id);
  20. /**
  21. * 查询上级ID集合
  22. * @param userId
  23. * @return
  24. */
  25. String findLadderIds(String userId);
  26. /**
  27. * 修改用户的管理层ID
  28. * @param ladderId
  29. */
  30. void updateLadderIds(String ladderId);
  31. /**
  32. * 获取私有客户
  33. * @return
  34. */
  35. Pagination<CustomerOut> getPrivateCustomer(CustomerIn cin,Integer pageSize, Integer pageNumber);
  36. /**
  37. * 获取公共客户
  38. * @return
  39. */
  40. Pagination<CustomerOut> getPublicCustomer(CustomerIn cin,Integer pageSize, Integer pageNumber);
  41. /**
  42. * 获取团队客户
  43. * @return
  44. */
  45. Pagination<CustomerOut> getTeamCustomer(CustomerIn cin, Integer pageSize, Integer pageNumber);
  46. /**
  47. * 获取公司客户
  48. * @return
  49. */
  50. Pagination<CustomerOut> getCompanyCustomer(CustomerIn cin, Integer pageSize, Integer pageNumber);
  51. /**
  52. *
  53. * @param cus 添加日志
  54. */
  55. public void saveCustomerLog(CustomerIn cus,String operatorType,String cid);
  56. /**
  57. *
  58. * @param 查询客户详情
  59. * @param id
  60. */
  61. public CustomerOut findCustomerDetails(String id);
  62. /**
  63. *
  64. * @param 修改客户信息
  65. * @param id
  66. */
  67. public int updateCustomer(Customer c);
  68. /**
  69. *
  70. * @param id
  71. * @return 查询公司基本信息
  72. */
  73. public CustomerOut findCustomerBaseInfo(String id);
  74. /**
  75. * 查看日志信息
  76. * @param customerId
  77. * @return
  78. */
  79. public List<CustomerLog> listCustomerLog(String customerId);
  80. }