listmessageserviceimpl.java
来自「一个关于短信的java程序,非常适合java程序员,谢谢大家」· Java 代码 · 共 58 行
JAVA
58 行
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 + =
减小字号Ctrl + -
显示快捷键?