YxySmtpSendSelfSetServiceImpl.java 1.4 KB
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;
	}

	
}