📄 columnstatserviceimpl.java
字号:
package com.chinatech.cpmanage.service.impl;
import java.util.ArrayList;
import java.util.List;
import com.chinatech.cpmanage.service.ColumnStatService;
import com.chinatech.cpmanage.dao.ColumnStatDAO;
import com.chinatech.cpmanage.dao.OperDAO;
import com.chinatech.cpmanage.common.BusinessException;
import com.chinatech.cpmanage.common.DAOException;
import com.chinatech.cpmanage.hibernate.NyxxwTitletree;
public class ColumnStatServiceImpl implements ColumnStatService{
private ColumnStatDAO columnStatDAO;
private OperDAO operDAO;
public List getSpByAreaId(String areaid) throws BusinessException {
// TODO 自动生成方法存根
List list=new ArrayList();
try{
list=operDAO.getOperesByAreaid(areaid,"1");
}catch(Exception e){
throw new BusinessException("执行getSpByAreaId方法时出错");
}
return list;
}
public List getMultiColumns(String spid) throws BusinessException {
// TODO 自动生成方法存根
List list=new ArrayList();
try{
list=columnStatDAO.getMultiColumns(spid);
}catch(Exception e){
throw new BusinessException("执行getMultiColumns方法时出错");
}
return list;
}
public List getMultiColumnsPage(int startRow, int pageSize,String id) throws BusinessException {
// TODO 自动生成方法存根
List list=new ArrayList();
try{
list=columnStatDAO.getMultiColumnsPage(startRow, pageSize, id);
}catch(Exception e){
throw new BusinessException("执行getMultiColumnsPage方法时出错");
}
return list;
}
public int getSingleColumnsStat(String query) throws BusinessException {
// TODO 自动生成方法存根
try{
return columnStatDAO.getSingleColumnsStat(query);
}catch(DAOException e){
throw new BusinessException("getSingleColumnsStat方法出错!" + e.getMessage());
}
}
public NyxxwTitletree getSpById(String spid) throws BusinessException {
NyxxwTitletree obj = null;
try{
obj = columnStatDAO.getSpById(spid);
}catch(DAOException e){
throw new BusinessException("执行getSpById方法出错!");
}
return obj;
}
public ColumnStatDAO getColumnStatDAO() {
return columnStatDAO;
}
public void setColumnStatDAO(ColumnStatDAO columnStatDAO) {
this.columnStatDAO = columnStatDAO;
}
public void setOperDAO(OperDAO operDAO) {
this.operDAO = operDAO;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -