📄 contactdao.java
字号:
package com.yuanchung.sales.dao.customer;
import java.util.List;
import org.springframework.dao.DataAccessException;
import com.yuanchung.sales.exception.ApplicationException;
import com.yuanchung.sales.model.customer.Customer;
import com.yuanchung.sales.model.customer.CustomerContact;
import com.yuanchung.sales.model.user.User;
import com.yuanchung.sales.model.userDefined.UserDefined;
import com.yuanchung.sales.model.userDefined.UserField;
import com.yuanchung.sales.model.userDefined.UserFilter;
public interface ContactDAO {
//保存联系人
public void save(CustomerContact contact) throws DataAccessException;
//根据用户查找客户
public List getCustomerByUser(User user, int flag) throws DataAccessException;
//查找所有的客户
public List getAllCusomer() throws DataAccessException;
//根所名称模糊查询客户
public List getCustomerByNamelike(User user, String customerName)throws DataAccessException;
//根据名称查找客户
public Customer getCustomerByName(String name) throws DataAccessException;
//查找所有联系人
public List getContactByUser(User user) throws DataAccessException;
public List getContactByUser(String userIds);
//根据查找联系人
public List getContact() throws DataAccessException;
//保存用户自定义选项
public void saveUserDefined(UserDefined userDefined) throws DataAccessException;
//保存自定义选项过滤条件
public void saveUserFilter(UserFilter userFilter) throws DataAccessException;
//保存用户显示字段
public void saveUserField(UserField userField) throws DataAccessException;
//根据用户和类型查找选项
public List getUserDefinedByUserAndType(User user, int type) throws DataAccessException;
//根据选项查找
public List getContactByUserDefined(String hql) throws DataAccessException;
//根据id搜索选项
public UserDefined getUserDefinedById(int userDefinedId) throws DataAccessException;
//根据选项搜索显示字段
public UserField getUserFieldByOption(UserDefined userDefined) throws DataAccessException;
//根据id查找联系人
public CustomerContact getById(int contactId) throws DataAccessException;
//删除联系人
public void delete(CustomerContact customerContact) throws DataAccessException;
//根据选项查找过滤条件
public List getUserFilterByOption(UserDefined userDefined) throws DataAccessException;
//更新用户选项
public void updateUserDefined(UserDefined userDefined) throws DataAccessException;
//根据id查询过滤条件
public UserFilter getUserFilter(int id) throws DataAccessException;
//更新过滤条件
public void updateUserFilter(UserFilter userFilter) throws DataAccessException;
//修改显示字段
public void updateUserField(UserField userField) throws DataAccessException;
//更新联系人
public void update(CustomerContact contact) throws DataAccessException;
//删除过滤条件
public void deleteFilter(UserFilter userFilter) throws DataAccessException;
//根据名称模糊查找联系人;
public List getContactByName(String nameLike) throws DataAccessException;
//搜索左边页面头几条记录;
public List getTopContact() throws DataAccessException;
//显示被冻结的联系人;
public List getContactByDelete(User user, int flag) throws DataAccessException;
//添加联系人和联系人关联;
public void addContact(CustomerContact contact) throws DataAccessException;
//获取客户;
public Customer getCustomerById(Integer id) throws DataAccessException;
//修改该联系人相关信息;
//public boolean updateContactByFlag(Integer id, Integer flag) throws DataAccessException;
public void delete(String sql)throws DataAccessException;
//根据联系人搜索关联表;
public List getUserContactByCon(CustomerContact contact) throws DataAccessException;
//查找最新联系人
public CustomerContact findContactLastest() throws DataAccessException;
//找出上次修改人
public User findLastModifyMan(int userId) throws DataAccessException;
//根据联系人ID查找业务机会
public List getBusiOpportsByContactId(int contactId) throws DataAccessException;
//根据姓名模糊查找联系人
public List getContactsByName(User user, String name, int flag) throws DataAccessException;
//更新联系人
public void updateContacts(int modifyManId, String modifyTime, int customerId, int flag) throws DataAccessException ;
//根据联系ID查找
public void updateContactById(int modifyManId, String modifyTime, int contactId, int flag) throws DataAccessException;
//根据ID查找用户
public User getUserById(int userId) throws DataAccessException ;
//根据客户ID删除联系人
public void deleteByCustomerId(int customerId, int flag) throws DataAccessException;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -