?? listmessageserviceimpl.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("得到消息數(shù)量出錯!");
}
//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;
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -