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

📄 questionsecondkinddaoimpl.java

📁 企业人力资源管理
💻 JAVA
字号:
package com.y2.hr.config.questionsecondkind.dao.impl;

import java.util.List;

import com.y2.hr.base.dao.impl.BaseDaoImpl;
import com.y2.hr.config.questionsecondkind.bean.ConfigQuestionSecondKind;
import com.y2.hr.config.questionsecondkind.dao.QuestionSecondKindDao;

public class QuestionSecondKindDaoImpl extends BaseDaoImpl implements
		QuestionSecondKindDao {

	public ConfigQuestionSecondKind getMajor(
			ConfigQuestionSecondKind questionSecondKind) {
		String hql = "from ConfigQuestionSecondKind where secondKindName = '"
				+ questionSecondKind.getSecondKindName() + "'";
		List<?> list = this.get(hql);
		return list.size() > 0 ? (ConfigQuestionSecondKind) list.get(0) : null;
	}

	public List<?> getPage(int curPage) {
		String hql = "from ConfigQuestionSecondKind";
		return this.getPage(hql, curPage);
	}

	public ConfigQuestionSecondKind getQuestionSecond(String qskId) {
		String hql = "from ConfigQuestionSecondKind where qskId = " + qskId;
		List<?> list = this.get(hql);
		return list.size() > 0 ? (ConfigQuestionSecondKind) list.get(0) : null;
	}

	public boolean isQuestionFirstKindId(String firstKindId) {
		String hql = "from ConfigQuestionSecondKind where firstKindId = '"
				+ firstKindId + "'";
		return this.get(hql).size() > 0 ? true : false;
	}

	public int sum() {
		String hql = "select count(s) from ConfigQuestionSecondKind s";
		return this.sum(hql);
	}

	public List<?> getQuestionSecond() {
		String hql="from ConfigQuestionSecondKind";
		return this.get(hql);
	}

}

⌨️ 快捷键说明

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