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

📄 engageinterviewbiz.java

📁 hr伯乐管理系统!非常适合java学员做学习参考用!是用集成框架开发的Struts+hrbernet+Spring 开发的
💻 JAVA
字号:
package org.better.hr.biz;

import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.better.hr.comm.Util;
import org.better.hr.dao.EngageInterviewDao;
import org.better.hr.entity.EngageInterview;
import org.better.hr.exception.HrException;

public class EngageInterviewBiz {
	
	private static final Log logger = LogFactory.getLog(ConfigFileFirstKindBiz.class);
	private EngageInterviewDao engageinterviewDao;
	
	public EngageInterviewDao getEngageinterviewDao() {
		return engageinterviewDao;
	}

	public void setEngageinterviewDao(EngageInterviewDao engageinterviewDao) {
		this.engageinterviewDao = engageinterviewDao;
	}

	/**
	 * 根据ID号返回对象
	 * @param id 主键id
	 * @return 对象
	 * @throws HrException
	 */
	public EngageInterview getEIbyID(java.io.Serializable id) throws HrException
	{
		try
		{
			return this.getEngageinterviewDao().load(id);
		}
		catch (Exception ex) {
			logger.error(ex);
			throw new HrException(ex);
		}
	}
	
	/**
	 * 新增
	 * @param cffk 新增的对象
	 * @return 新产生的一级机构编号
	 * @throws HrException
	 */
	public void add(EngageInterview condition) throws HrException {
		try {		
			condition.setRegisteTime(Util.parseDate(condition.getStr_registeTime())); //把日期字符串转换为日期类型,以便入库时类型匹配
			//执行面试结果登记后,需要将面试复核状态置为0(初始值),将面试状态设为1,表示该人已经面试过
			condition.setCheckStatus(Short.valueOf("0"));
			condition.setInterviewStatus(Short.valueOf("0"));
			
			this.getEngageinterviewDao().add(condition);
		} catch (Exception ex) {
			logger.error(ex);
			throw new HrException(ex);
		}
	}
	
	/**
	 * 查询显示列表
	 * @param condition 包含查询条件的对象
	 * @return 查询结果列表
	 * @throws HrException
	 */
	public List list(EngageInterview condition) throws HrException {
		try {
			return this.getEngageinterviewDao().find(condition);
		} catch (Exception ex) {
			logger.error(ex);
			throw new HrException(ex);
		}
	}
	
	/**
	 * 更新对象到数据库
	 * @param condition 已更新的对象
	 * @throws HrException
	 */
	public void update(EngageInterview condition) throws HrException {
		try {
			
			condition.setCheckTime(Util.parseDate(condition.getStr_checkTime())); //把日期字符串转换为日期类型,以便入库时类型匹配
			condition.setCheckStatus(Short.valueOf("1"));//面试筛选后,把面试筛选状态改为1
			
			this.getEngageinterviewDao().update(condition);
			
		} catch (Exception ex) {
			logger.error(ex);
			throw new HrException(ex);
		}
	}
	
	/**
	 * 删除数据库对象
	 * @param id 对象的主键编号
	 * @throws HrException
	 */
	public void delete(java.io.Serializable id) throws HrException
	{
		try {
			this.getEngageinterviewDao().delete(id);
		} catch (Exception ex) {
			logger.error(ex);
			throw new HrException(ex);
		}
	}
}

⌨️ 快捷键说明

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