package com.fr.tx.common.dao;

import java.util.List;

import org.apache.ibatis.session.SqlSession;

import com.fr.tx.common.entity.HjEntity;

public interface HjDao {
	
    public SqlSession getSession();
    
    /**
     * 画面检索
     * @param en
     * @return 查询内容
     */
    public List<HjEntity> search(HjEntity en);
    
    /**
     * 主键加载详细
     * @param pk 主键
     * @return 查询内容
     */
    public HjEntity getDetailByPk(String pk);
    
    /**
     * 获取分页总数量
     * @param en
     * @return count
     */
    public int getCount(HjEntity en);
    
    /**
     * 更新
     * @param en
     * @return result
     */
    public int update(HjEntity en);
    
    /**
     * 插入
     * @param en
     * @return result
     */
    public int insert(HjEntity en);
    
    /**
     * 删除
     * @param en
     * @return result
     */
    public int delete(HjEntity en);
    
   
}
