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 getPrivateCustomer(CustomerIn cin,Integer pageSize, Integer pageNumber); /** * 获取公共客户 * @return */ Pagination getPublicCustomer(CustomerIn cin,Integer pageSize, Integer pageNumber); /** * 获取团队客户 * @return */ Pagination getTeamCustomer(CustomerIn cin, Integer pageSize, Integer pageNumber); /** * 获取公司客户 * @return */ Pagination 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 listCustomerLog(String customerId); /** * 客户详情-历史记录 * @param customerId * @return */ public CustomerOut findCustomerHistory(String customerId); /** * 保存上传的客户资料 * @param excelPath */ public void saveUploadData(List cinList); /** * 查看客户是否已经存在 */ int findCustomerByName(String companyName); }