| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- package com.goafanti.customer.service;
- import java.util.List;
- import com.goafanti.common.model.Customer;
- import com.goafanti.common.model.CustomerLog;
- 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);
-
- /**
- * 删除客户信息
- * @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,String cid);
-
- /**
- *
- * @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);
-
- }
|