| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- package com.goafanti.customer.service;
- import java.util.List;
- import com.goafanti.common.model.Customer;
- import com.goafanti.common.model.CustomerLog;
- import com.goafanti.common.model.CustomerUserInfo;
- import com.goafanti.common.model.FollowUpRecord;
- import com.goafanti.core.mybatis.page.Pagination;
- import com.goafanti.customer.bo.CustomerIn;
- import com.goafanti.customer.bo.CustomerOut;
- public interface CustomerService {
-
- /**
- * 添加客户信息
- * @param cus
- * @return
- */
- int addCustomer(Customer cus,CustomerUserInfo cui,FollowUpRecord fur);
-
- /**
- * 删除客户信息
- * @param id
- */
- void deleteCustomer(String id);
- /**
- * 查询上级ID集合
- * @param userId
- * @return
- */
- String findLadderIds(String userId);
-
- /**
- * 修改用户的管理层ID
- * @param ladderId
- */
- void updateLadderIds(String ladderId);
-
- /**
- * 获取私有客户
- * @return
- */
- Pagination<CustomerOut> getPrivateCustomer(CustomerIn cin,Integer pageSize, Integer pageNumber);
-
- /**
- * 获取公共客户
- * @return
- */
- Pagination<CustomerOut> getPublicCustomer(CustomerIn cin,Integer pageSize, Integer pageNumber);
-
- /**
- * 获取团队客户
- * @return
- */
- Pagination<CustomerOut> getTeamCustomer(CustomerIn cin, Integer pageSize, Integer pageNumber);
-
- /**
- * 获取公司客户
- * @return
- */
- Pagination<CustomerOut> getCompanyCustomer(CustomerIn cin, Integer pageSize, Integer pageNumber);
-
- /**
- *
- * @param cus 添加日志
- */
- public void saveCustomerLog(CustomerIn cus,String operatorType);
-
- /**
- *
- * @param 查询客户详情
- * @param id
- */
- public CustomerOut findCustomerDetails(String id);
-
- /**
- *
- * @param 修改客户信息
- * @param id
- */
- public int updateCustomer(Customer c);
-
- /**
- *
- * @param id
- * @return 查询公司基本信息
- */
- public CustomerOut findCustomerBaseInfo(String id);
- /**
- * 查看日志信息
- * @param customerId
- * @return
- */
- public List<CustomerLog> listCustomerLog(String customerId);
-
- /**
- * 客户详情-历史记录
- * @param customerId
- * @return
- */
- public CustomerOut findCustomerHistory(String customerId);
-
- /**
- * 保存上传的客户资料
- * @param excelPath
- */
- public void saveUploadData(List<CustomerIn> cinList);
-
- /**
- * 查看客户是否已经存在
- */
- int findCustomerByName(String companyName);
- }
|