package fr.zng.xxzx.common.dao.impl;



import fr.zng.xxzx.common.dao.HqCnoDao;
import fr.zng.xxzx.common.dao.PdtDao;
import fr.zng.xxzx.common.dao.base.BaseDao;
import fr.zng.xxzx.common.entity.HqCnoEntity;
import fr.zng.xxzx.common.entity.PdtEntity;

public class HqCnoDaoImpl extends BaseDao implements HqCnoDao {

	@Override
	public HqCnoEntity getCno(String portUid) {
		HqCnoEntity result = null;
		try {
			makeSession();
			result = session.selectOne("HqCno.getCno", portUid);
		} catch (Exception e) {
			session.rollback();
			e.printStackTrace();
		} finally {
			close();
		}
		return result;
	}
	
	@Override
	public HqCnoEntity getHqPdt(HqCnoEntity pdt) {
		HqCnoEntity result = null;
		try {
			makeSession();
			result = session.selectOne("HqCno.getHqPdt", pdt);
		} catch (Exception e) {
			session.rollback();
			e.printStackTrace();
		} finally {
			close();
		}
		return result;
	}
}
