日期:2014-05-18 浏览次数:20712 次
@SuppressWarnings("unchecked")
@Override
public List<Goods> getGoodsUseGoodsName(String goodsName) {
System.out.println("get goods with goodsnam");
System.out.println(goodsName);
List<Goods> list = sessionFactory
.getCurrentSession()
.createQuery(
"from t_goods tg where tg.goodsName=" + "'"+goodsName+"'")
.list();
return list;
}
List<UserInfo> list = userService.isExistUser(username, password);
UserInfo u = (UserInfo) list.get(0);
System.out.println(u.getAdmin());