通用mapper中的select方法的注意点

代码如下:

public List<SpecParam> querySpecParams(Long gid) {
SpecParam t = new SpecParam();
t.setGroupId(gid);
return this.specParamMapper.select(t);
}



当gid=null的时候,会查询数据库所有记录,并返回
posted on 2018-11-29 23:06  supress_Elon_Musk  阅读(2854)  评论(0编辑  收藏  举报