public List getList(int xh)
{
String where="";
if(xh!=0)
{
where=where+" where xuehao="+xh+"";
}
return this.findAll("");
}
}
为什么查询的时候总是显示所有
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
3条回答
- danielinbiti 2015-07-08 03:17关注
public List getList(int xh) { String where=""; if(xh!=0) { where=where+" where xuehao="+xh+""; } return this.findAll(where);//是不是你师傅写的时候这里写的是where,不是"" } }
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报