package fr.zng.xxzx.common.dao;

import java.util.List;

import org.apache.ibatis.session.SqlSession;

import fr.zng.xxzx.common.entity.DvcLogLockEntity;
import fr.zng.xxzx.common.entity.TdFlowEntity;

/**
 * 投递流水
 * @author lyf
 *
 */
public interface TdFlowDao {
   
public SqlSession getSession();
    
    /**
     * 画面检索
     * @param en
     * @return 查询内容
     */
    public List<TdFlowEntity> search(TdFlowEntity en);

    
    /**
     * 获取分页总数量
     * @param en
     * @return count
     */
    public int getCount(TdFlowEntity en);
    
    /**
     * 主键加载详细
     * @param pk 主键
     * @return 查询内容
     */
    public TdFlowEntity getDetailByPk(String pk);
    
    /**
     * 插入
     * @param en
     * @return result
     */
    public int insert(TdFlowEntity en);
    /**
     * 插入
     * @param en
     * @return result
     */
    public String insert2(TdFlowEntity en);
    /**
     * 插入异常
     * @param en
     * @return result
     */
    public int insertErr(TdFlowEntity en);
    /**
     * 获取投递记录
     * @param en
     * @return count
     */
    public TdFlowEntity getTdFlowByUuid(TdFlowEntity en);
    /**
     * 更新投递记录
     * @param en
     * @return count
     */
	public int updateTd(TdFlowEntity tdFlowEn);
}
