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;
}
原文地址:https://www.cnblogs.com/guangxiang/p/9323111.html
时间: 2024-10-17 14:01:08