真恶心,什么问题都遇上了,寻思着终于拿到数据了,一看,数据还不全。
解决方法:
在mybatis.xml配置文件中加上:<setting name="callSettersOnNulls" value="true"/>