⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 listmessageserviceimpl.java

📁 一个关于短信的java程序,非常适合java程序员,谢谢大家
💻 JAVA
字号:
package com.chinatech.cpmanage.service.impl;

import java.util.List;

import com.chinatech.cpmanage.common.BusinessException;
import com.chinatech.cpmanage.common.DAOException;
import com.chinatech.cpmanage.dao.ListMessageDAO;
import com.chinatech.cpmanage.dao.OperDAO;
import com.chinatech.cpmanage.dto.CpContentManageDTO;
import com.chinatech.cpmanage.service.*;

public class ListMessageServiceImpl implements ListMessageService {
	private ListMessageDAO dao;
	private OperDAO operdao;
	public int getMessageCount(CpContentManageDTO dto) throws BusinessException {
		// TODO Auto-generated method stub
		try {
			return dao.getMessageCount(dto);
		} catch (Exception e) {
			throw new BusinessException("得到消息数量出错!");
		}
		//return 0;
	}

	public List getMessage(CpContentManageDTO dto) throws BusinessException {
		// TODO 自动生成方法存根
		try {
			return dao.getMessage(dto);
		} catch (DAOException e) {
			throw new BusinessException("getMessage错误" + e.toString());
		}

	}
	
	public List getMessagePage(CpContentManageDTO dto,int startRow, int pageSize)
	throws BusinessException {
		try {
			return dao.getMessagePage(dto, startRow, pageSize);
		} catch (DAOException e) {
			throw new BusinessException("getMessagePage错误" + e.toString());
		}
	}
	public List getSp(String areaid,String isSp)throws BusinessException{
		try {
			return operdao.getOperesByAreaid(areaid, isSp);
		} catch (DAOException e) {
			throw new BusinessException("getMessage错误" + e.toString());
		}
	}
	public void setDao(ListMessageDAO dao) {
		this.dao = dao;
	}
	public void setOperDao(OperDAO operdao){
		this.operdao=operdao;
	}

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -