f53d5ea7914f7358a9ec19ffd41e7f4232adb4a0.svn-base 8.3 KB
package com.espeed.service;
   
import java.util.List;
import java.util.Map;

import com.espeed.centre.pojo.CentreYxyedmNewcustomer;
import com.espeed.centre.pojo.CentreYxyedmOldcustomer;
import com.espeed.pojo.YxySendMailMaster;
import com.espeed.pojo.YxySendSmtpInfo;
import com.espeed.pojo.YxyUserAddress;
import com.espeed.pojo.YxyUserSet;
/**
 * 程序名称:    	EspeedMail_时速邮箱
 * 程序版本:    	V1.0
 * 作    者:    	深圳市科飞时速网络技术有限公司(0755-88843776)
 * 版权所有:    	深圳市科飞时速网络技术有限公司
 * 技术支持:    	Tech@21gmail.com
 * 单元名称:     邮件营销发送业务层 
 * 开始时间:    	2013.12.24
 * 程 序 员:    	谢勇
 * 最后修改:    
 * 备    注:		如需修改请通知程序员    
 */
public interface YxySendMailService {
	/**查询用户设置信息*/  
	public List<YxyUserSet> findUserSet(String loginid,String domain)throws Exception;
	/**判断用户控制参数(发送量的限制)*/
	public int findSendNum(String loginid,String domain,int commitnum,Map usergraph)throws Exception;
	/**判断用户控制参数(发送量的限制,不是当天的)*/
	public int findSendNumTime(String loginid,String domain,int commitnum,Map usergraph,String timer)throws Exception;
	/**添加待发邮件与地址*/
	public void addMasterDetail(int user_type,int company_id,int user_id,YxySendMailMaster master,List<YxyUserAddress> detail,String uploadattrName,String usersetpath,String setEmlPath,int mailid,int sendci,int uploadtype,String customerid,int jinchengid)throws Exception;
	/**查询邮件txt文件*/
	public String findMailTxtPath(int mailid)throws Exception;
	/**查询最后一封邮件的时间是否在90天之内*/
	public String findLastMail(int mailid)throws Exception;
	/**判断当前用户是否有新客户营销权限:0没有,1有*/
	public int getNewCusPower(String domain,int company_id,int user_id)throws Exception;
	/**获取EDM配置-开发客户配置信息*/
	public CentreYxyedmNewcustomer getNewCusSet(int company_id)throws Exception;
	/**获取EDM配置-盘活客户配置信息*/
	public CentreYxyedmOldcustomer getOldCusSet(int company_id)throws Exception;
	/**获取SMTP信息*/
	public List<YxySendSmtpInfo> findSmtpByHql(String hql)throws Exception;
	/**判断CRM库发信本月是否超标,0超标,1不超标*/
	public int getThisMonthSendLimit(int user_id,String customer_ids,String send_time)throws Exception;
	/**判断新客户营销发信本月是否超标,-1单次超标,-2月发超标,1不超标*/
	public int getThisMonthSendLimit2(int company_id,int user_id,int send_nums,String send_time)throws Exception;
	/**若发送的是客户则处理发送发送后的业务*/
	public void updateCustomerService(String domain,String login_id,int company_id,int user_id,String send_time,int uploadtype,String customerid,int jinchengid,String subject)throws Exception;
	
	
	
	
	
	
	/**http添加待发邮件与地址*/
	//public void addhttpMaster(YxySendMailMaster master,List<String> address)throws Exception;
	
	//	/**查询屏蔽的域名*/
//	public List<YxyShieldDomain> findShieldDomain()throws Exception;
	
	
	
	
	//------------------------待发邮件操作模块-----------------------------
	/**查询所有待发邮件
	public List<YxySendMailMaster> findByMailNum(int mailNum)throws Exception;
	/**添加修改邮件状态
	public void updateMaster(YxySendMailMaster o)throws Exception;
	
	
	
	//------------------------待发地址操作模块-----------------------------
	/**根据待发邮件ID查询待发地址
	public List<YxySendMailDetail> findAddressByMailID(int mailID)throws Exception;
	/**修改此地址为已发送
	public void updateMailDetailstatus(int addressID)throws Exception;
	
	//------------------------SMTP操作模块-----------------------------
	/**查询可用的smtp
	public List<YxySendSmtpInfo> findAllSmtp()throws Exception;
	
	//------------------------SMTP后缀设置参数模块-----------------------------
	/**查询后缀信息
	public List<YxySmtpSuffixSet> findAllSmtpSuffixSet()throws Exception;
	
	//------------------------SMTP后缀发送量模块-----------------------------
	/**查询该smtp对应后缀在时间段的发送量
	public List<YxySmtpSendSet> findAllSmtpSendSet(String smtpservice)throws Exception;
	/**添加后缀发送量信息
	public void addSmtpSendSet(YxySmtpSendSet o)throws Exception;
	
	//------------------------自配SMTP发送量模块-----------------------------
	/**通过smtpID查询此smtp的发送参数
	public List<YxySmtpSendSelfSet> findSendSelfSetByService(String smtpservice)throws Exception;
	/**查询自配账号的已发送量信息
	public List<YxySmtpSendSelfOverset> findBySmtpAccount(String account)throws Exception;*/
	/**添加该账号的已发量信息
	public void addSendSelfSet(YxySmtpSendSelfOverset o)throws Exception;*/
	
	//------------------------用户文件类别模块-----------------------------
	/**根据用户查询文件类别*/
//	public List<YxyMailFolder> findUserFolderByID(String loginid,String domain)throws Exception;
//	
//	
//	//------------------------客户类别模块-----------------------------
//	/**根据用户查询客户类别*/
//	public List<YxyCustomerType> findCustomerTypeByDomain(String loginid,String domain) throws Exception;
//	/**批量添加客户类别*/
//	public void addCustomerType(List<YxyCustomerType> list) throws Exception;
//	/**获取本地所有分类信息*/
//	public List<YxyCustomerType> getAllTypeFromLocal() throws Exception;
//	
//	//------------------------公海客户模块-----------------------------
//	/**根据用户查询公海客户*/
//	public List<YxyCustomerEmail> findPublicCustomerByID(String domain) throws Exception;
//	
//	//------------------------分类客户模块-----------------------------
//	/**根据分类id查询分类下的所有客户*/
//	public List<YxyCustomerEmail> findCustomersByCfyId(String loginid,String domain,int classfiyId) throws Exception;
//	/**批量添加客户信息*/
//	public void addCustomerEmail(List<YxyCustomerEmail> list) throws Exception;
//	/**获取本地所有客户信息*/
//	public List<YxyCustomerEmail> getAllCustomersFromLocal() throws Exception;
//	
//	//------------------------地址库模块-----------------------------
//	/**批量添加地址库*/
//	public void addAddress(List<YxyUserAddress> o)throws Exception;
//	/**查询用户地址库*/
//	public List<YxyUserAddress> findAddress(String loginid,String domain)throws Exception;
//	
//	//------------------------用户设置模块-----------------------------
//	
//	
//	//------------------------统计模块-----------------------------
//	/**插入点读统计数据
//	public void insertCount(YxyReadingCount o)throws Exception;*/
//	
//	//------------------------控制参数模块-----------------------------
//	/**查询用户控制参数
//	public Map findCompanyParamByCode(int level,String loginid,String domain)throws Exception;*/
//	
//	
//	/**查询企业授权限制参数
//	public List<SysLicenceFunction> findLicence() throws Exception;*/
//	
//	/**根据指定日期查询日已发量*/
//	public int findDaySendNum(String loginid,String domain,String day) throws Exception;
//	/**根据指定日期查询月已发量*/
//	public int findMonthSendNum(String loginid,String domain,String month) throws Exception;
//	/**查询用户已发总量*/
//	public int findAllSendNum(String loginid,String domain) throws Exception;
//	
//	//------------------------退订地址模块-----------------------------
//	/**查询退订地址(用户不分页)*/
//	public List<YxyUnsubscribeInfo> findUnAddress(String loginid,String domain)throws Exception;
//	
//	//-----------------------过滤字符模块-------------------------------
//	/**查询所有发送过滤字符*/
//	public List<YxySendSysFilter> findAllFilter()throws Exception;
//	
//	//-----------------------邮件内容重复模块-------------------------------
//	/**查询所有的邮件内容*/
//	public List<YxySendContextSet> findAllEmailContext(String loginid,String domain,String emailSubject,String emailSize) throws Exception;
//	/**添加邮件发送内容信息*/
//	public void addEmailContext(YxySendContextSet o) throws Exception;
//	

//	
//	/**查询不屏蔽的邮箱*/
//	public List<YxyNoshieldEmail> findnoShieldEmail()throws Exception;
//	
//	
//	/**整理是否退订*/
//	public Map<String,List<String>> packUnAddress(List<String> address,String domain,String loginid)throws Exception;
	
	
}