9959ae7a5987b634acba2f22db85c111c28d2242.svn-base
1.4 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
package com.espeed.service.impl;
import java.util.List;
import com.espeed.dao.YxySmtpSendSelfSetDao;
import com.espeed.pojo.YxySmtpSendSelfSet;
import com.espeed.service.YxySmtpSendSelfSetService;
public class YxySmtpSendSelfSetServiceImpl implements YxySmtpSendSelfSetService{
/**查询自配配置信息*/
public List<YxySmtpSendSelfSet> findSmtpSelf() throws Exception {
return yxysmtpsendselfsetdao.findSmtpSelf();
}
/**编辑自配配置信息*/
public void addSmtpSelf(YxySmtpSendSelfSet o) throws Exception {
yxysmtpsendselfsetdao.addSmtpSelf(o);
}
/**删除自配配置信息*/
public void delSmtpSelf(int id) throws Exception {
yxysmtpsendselfsetdao.delSmtpSelf(id);
}
/**模糊查询自配配置信息*/
public List<YxySmtpSendSelfSet> findLikeSmtpSelf(String findValue)
throws Exception {
return yxysmtpsendselfsetdao.findLikeSmtpSelf(findValue);
}
/**判断是否存在*/
public List<YxySmtpSendSelfSet> findIsExits(String value) throws Exception {
String hql="from YxySmtpSendSelfSet where smtp_send_self_set_account='"+value+"'";
return yxysmtpsendselfsetdao.findByHql(hql);
}
private YxySmtpSendSelfSetDao yxysmtpsendselfsetdao;//自配SMTP设置DAO
public YxySmtpSendSelfSetDao getYxysmtpsendselfsetdao() {
return yxysmtpsendselfsetdao;
}
public void setYxysmtpsendselfsetdao(YxySmtpSendSelfSetDao yxysmtpsendselfsetdao) {
this.yxysmtpsendselfsetdao = yxysmtpsendselfsetdao;
}
}