Commit e50409ae by ddx

d

parent 46c5d3a4
......@@ -47,7 +47,7 @@ public abstract class AbstractService<M extends BaseMapper<E,T>,E,T> implements
public T getOne(E example){
List<T> list = this.selectByExample(example);
if(list!=null && list.size()>0){
return this.selectByExample(example).get(0);
return list.get(0);
}
return null;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment