public List<InterProductMsg> selectIsHaveProductid(String productId) {
String sql="SELECT * FROM INTER_PRODUCT_MSG A WHERE A.PRODUCTID=? ";
// sql查询
SQLQuery sq = this.getCurrentSession().createSQLQuery(sql).addEntity(InterProductMsg.class);
sq.setString(0, productId);
@SuppressWarnings("unchecked")
List<InterProductMsg> list = sq.list();
LogUtil.writeLog("DAO实现层"+list);
return list;
}

05-11 22:13