摘要:
原因是sql或hql拼接有问题错误代码: public GemStorageHistory gemid(String code){ List<GemStorageHistory> list=this.daoPersistence.query("from GemStorageHistory gh where gh.gemStorageCode="+code); return list.size()>0?list.get(0):null; }错误原因:拼接字符串有误:gh.gemStorageCode="+code正确方法: public GemSt 阅读全文
posted @ 2012-11-29 15:35
juan1206
阅读(2505)
评论(0)
推荐(0)

浙公网安备 33010602011771号