4c1aad0c4323ee4d030f5f10edc39458d272b565.svn-base
5.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
package com.espeed.yxy.service;
import java.util.List;
import java.util.Map;
import com.espeed.centre.pojo.CentreTrackSet;
import com.espeed.centre.pojo.CentreYxyedmNewcustomer;
import com.espeed.centre.pojo.CentreYxyedmOldcustomer;
import com.espeed.yxy.pojo.YxySendMailDetail;
import com.espeed.yxy.pojo.YxySendMailMaster;
import com.espeed.yxy.pojo.YxySendSmtpInfo;
import com.espeed.yxy.pojo.YxySmtpSendSelfOverset;
import com.espeed.yxy.pojo.YxySmtpSendSelfSet;
import com.espeed.yxy.pojo.YxySmtpSendSet;
import com.espeed.yxy.pojo.YxySmtpSuffixSet;
import com.espeed.yxy.pojo.YxySysParamatersValue;
import com.espeed.yxy.pojo.YxyUserAddress;
/**
* 程序名称: EspeedMail_时速邮箱
* 程序版本: V1.0
* 作 者: 深圳市科飞时速网络技术有限公司(0755-88843776)
* 版权所有: 深圳市科飞时速网络技术有限公司
* 技术支持: Tech@21gmail.com
* 单元名称: 邮件发送service业务接口(营销游)
* 开始时间: 2013.12.09
* 程 序 员: 谢勇
* 最后修改:
* 备 注: 如需修改请通知程序员
*/
public interface YxySendMailService {
//------------------------待发邮件操作模块-----------------------------
/**查询所有待发邮件*/
public List<YxySendMailMaster> findByMailNum(int mailNum)throws Exception;
/**修改邮件使用状态*/
public void updateMailUseStatus(int mailid, int isuse,String timer)throws Exception;
/**修改邮件异常量*/
public void updateMailExpStatus(int mailid,int expnum)throws Exception;
/**同时修改待发邮件状态与基本邮件信息状态*/
public void updateMailStatus(int status,int mailid,String mailuid)throws Exception;
/**加入待发邮件*/
public void addMailMaster(YxySendMailMaster master,List<YxyUserAddress> sendaddress,int planid,int plan_differen)throws Exception;
/**更新待发邮件图片与附件路径*/
public void updatepicattrpath(int masterid,String picpath,String attrpath)throws Exception;
/**根据hql获取待发邮件*/
public List<YxySendMailMaster> getMailMasterByHql(String hql)throws Exception;
//------------------------待发地址操作模块-----------------------------
/**根据待发邮件ID查询待发地址*/
public List<YxySendMailDetail> findAddressByMailID(int mailID)throws Exception;
/**修改此地址为已发送*/
public void updateMailDetailstatus(int addressid)throws Exception;
/**更新地址状态为异常地址*/
public void updateExp(int addressid,int expnum)throws Exception;
/**根据邮件ID查询是否还存在待发地址*/
public boolean isHaveAddress(int mailid)throws Exception;
//------------------------SMTP操作模块---------------------------------
/**查询所有SMTP*/
public List<YxySendSmtpInfo> findSmtpInfoSetNum()throws Exception;
/**更新smtp使用状态*/
public void updateSmtpUseStatus(int status,int smtpid,String nowdate)throws Exception;
/**更新smtp状态所有的*/
public void updatesmtpstatus()throws Exception;
/**根据客户类型查询smtp*/
public YxySendSmtpInfo findSmtpInfoByCusType(List<YxySendSmtpInfo> smtp_list,int cus_type)throws Exception;
/**查找自主域名投递的smtp*/
public YxySendSmtpInfo findSmtpInfoByCusType2(List<YxySendSmtpInfo> smtp_list,YxySendMailMaster master)throws Exception;
//------------------------SMTP后缀设置参数模块-------------------------
/**查询后缀信息*/
public List<YxySmtpSuffixSet> findAllSmtpSuffixSet()throws Exception;
//------------------------SMTP后缀发送量模块----------------------------
/**查询该smtp对应后缀在时间段的发送量*/
public List<YxySmtpSendSet> findAllSmtpSendSet(String smtpservice,String nowDay)throws Exception;
/**删除后缀已发量信息*/
public void delmSmtpSet(String smtpService)throws Exception;
/**更新发送量信息*/
public void updateSmtpSet(List<YxySmtpSendSet> o)throws Exception;
//------------------------控制参数模块---------------------------------
/**code查询控制参数(有用户级返回用户级,否则返回默认参数)*/
public String findCompanyParamByCode(String code,String loginid,String domain)throws Exception;
/**paraid查询企业级控制参数*/
public List<YxySysParamatersValue> findCompanyParamValues(String domian,int para_id)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 void updateSendSelfSet(YxySmtpSendSelfOverset o)throws Exception;
/**查询SMTP判断是否阻塞*/
public void updateinitsmtpstatus()throws Exception;
/**获取跟踪配置信息*/
public List<CentreTrackSet> getTrackSetByHql(String hql)throws Exception;
/**获取开发客户配置信息*/
public List<CentreYxyedmNewcustomer> getNewCustomerSet(String hql)throws Exception;
/**获取盘活客户配置信息*/
public List<CentreYxyedmOldcustomer> getOldCustomerSet(String hql)throws Exception;
/**获取用户信息*/
public List<Object> getUserInfoBySql(String sql)throws Exception;
}