📄 engageinterviewbiz.java
字号:
package com.accphr.biz.impl;
import java.io.Serializable;
import java.util.List;
import com.accphr.biz.IEngageInterviewBiz;
import com.accphr.dao.ICommonDao;
import com.accphr.entity.EngageInterview;
import com.accphr.page.PageResult;
/*
* 面试管理
*/
public class EngageInterviewBiz implements IEngageInterviewBiz {
private ICommonDao commonDao=null;
public void setCommonDao(ICommonDao commonDao) {
this.commonDao = commonDao;
}
//保存
/* (non-Javadoc)
* @see com.accphr.biz.impl.IEngageInterviewBiz#add(com.accphr.entity.EngageInterview)
*/
public void add(EngageInterview engageInterview){
this.commonDao.add(engageInterview);
}
//删除
/* (non-Javadoc)
* @see com.accphr.biz.impl.IEngageInterviewBiz#del(java.io.Serializable)
*/
public void del(Serializable erid){
this.commonDao.del(EngageInterview.class, erid);
}
//更新
/* (non-Javadoc)
* @see com.accphr.biz.impl.IEngageInterviewBiz#update(com.accphr.entity.EngageInterview)
*/
public void update(EngageInterview engageInterview){
this.commonDao.update(engageInterview);
}
//分页查询
/* (non-Javadoc)
* @see com.accphr.biz.impl.IEngageInterviewBiz#setPageResult(com.accphr.entity.EngageInterview, com.accphr.page.PageResult)
*/
public void setPageResult(EngageInterview engageInterview,PageResult pageResult){
String hql=" from EngageInterview where 1=1";
if(engageInterview!=null){
}
pageResult.setHql(hql);
this.commonDao.pageList(pageResult);
}
//根据ID查询
/* (non-Javadoc)
* @see com.accphr.biz.impl.IEngageInterviewBiz#findById(java.io.Serializable)
*/
public EngageInterview findById(Serializable id) {
return (EngageInterview)this.commonDao.findById(EngageInterview.class, id);
}
//根据字段查询
/* (non-Javadoc)
* @see com.accphr.biz.impl.IEngageInterviewBiz#findById(java.io.Serializable)
*/
public List find(EngageInterview engageInterview) {
String hql=" from EngageInterview where 1=1";
if(engageInterview !=null){
if(engageInterview.getHumanName()!=null&&engageInterview.getHumanName().length()>0){
hql+=" and humanName ='"+engageInterview.getHumanName()+"'";
}
if(engageInterview.getResumeId()!=null&&engageInterview.getResumeId().toString().length()>0){
hql+=" and resumeId ="+engageInterview.getResumeId();
}
}
List list=this.commonDao.findByHql(hql);
return list;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -