026c3e00678a336b08f1312ec776cbd7ec802586.svn-base
1.1 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
package yxy.timer.service.impl;
import java.util.List;
import yxy.timer.dao.YxySendMailMasterDao;
import yxy.timer.pojo.YxySendMailMaster;
import yxy.timer.service.YxySendMailMasterService;
public class YxySendMailMasterServiceImpl implements YxySendMailMasterService{
//查询正在使用的邮件
public List<YxySendMailMaster> findByStatus() throws Exception {
String hql="from YxySendMailMaster where isuse=1";
return yxysendmailmasterdao.findByHql(hql);
}
//批量更新
public void updateMaster(List<YxySendMailMaster> o) throws Exception {
yxysendmailmasterdao.updateByMaster(o);
}
//sql查询
public List<Object> findbysql(String sql)throws Exception{
return yxysendmailmasterdao.findbysql(sql);
}
//sql更新
public void updatebysql(String sql)throws Exception{
yxysendmailmasterdao.updatebysql(sql);
}
private YxySendMailMasterDao yxysendmailmasterdao;//邮件待发dao
public YxySendMailMasterDao getYxysendmailmasterdao() {
return yxysendmailmasterdao;
}
public void setYxysendmailmasterdao(YxySendMailMasterDao yxysendmailmasterdao) {
this.yxysendmailmasterdao = yxysendmailmasterdao;
}
}