📄 serproblemserviserimpl.java
字号:
/*
* $Workfile: SerProblemServiserImpl.java$
* Copyright (c) 2007 Jama, International.
* All rights reserved.
* Creator Jun
* Last Changed by: $Author: Jun$
* On: $Date: 2007-8-30 下午09:52:37$
* $Revision: 1$
*/
package com.jama.rcrm.service.business;
import java.util.List;
import org.apache.commons.beanutils.BeanUtils;
import com.jama.common.taglib.QueryInfo;
import com.jama.rcrm.service.business.dto.SerProblemDto;
import com.jama.rcrm.service.dao.SerProblemDao;
import com.jama.rcrm.service.web.form.ProblemForm;
public class SerProblemServiserImpl implements SerProblemServise
{
private SerProblemDao serProblemDao;
public SerProblemDao getSerProblemDao()
{
return serProblemDao;
}
public void setSerProblemDao(SerProblemDao serProblemDao)
{
this.serProblemDao = serProblemDao;
}
/**
* 传入SerProblemDto将SerProblemDto的属性对应赋值给TSerProblemDefine的
* 对象的属性保存到数据库中
* */
public boolean addProblemType(SerProblemDto serProblemDto) throws Exception
{
serProblemDao.addProblemType(serProblemDto);
return true;
}
/**
* 传入String 类型的ID数组将数据库中对应记录的inactive字段值设为1,
* 表示不可用
* */
public boolean deleteProblemType(String... ids) throws Exception
{
serProblemDao.deleteProblemType(ids);
return true;
}
/**
* 传入QueryInfo类型的对象将数据按需求查询出来封装到List内返回
*
*/
public List getProblem(QueryInfo queryInfo) throws Exception
{
return serProblemDao.getProblem(queryInfo);
}
/**
*传入ID查找表中对应的记录,封装成ProblemForm返回
*/
public ProblemForm getProblemTypeById(String id) throws Exception
{
SerProblemDto dto = serProblemDao.getProblemTypeById(id);
ProblemForm form = new ProblemForm();
BeanUtils.copyProperties(form,dto);
return form;
}
/**
*传入SerProblemDto,将数据库表中对应的记录内容修改为该DTO属性的内容
*/
public boolean modifyProblemType(SerProblemDto serProblemDto) throws Exception
{
serProblemDao.modifyProblemType(serProblemDto);
return true;
}
/**
*返回具有父子关系的内容为SerProblemDto的列表
*/
public List getProblemList() throws Exception
{
return serProblemDao.getProblemList();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -