Could not set property 'supervisionState' to value 'null'

异常:

Could not set property 'supervisionState' to value 'null'_第1张图片

我的查询方法:
Could not set property 'supervisionState' to value 'null'_第2张图片


对应的vo类
[img]


Could not set property 'supervisionState' to value 'null'_第3张图片

数据库

Could not set property 'supervisionState' to value 'null'_第4张图片

解决bug:查出的数据supervisionState是null,查询结果赋值给vo的supervisionState时出错,null无法赋值给int类型的supervisionState数据,把vo类
        /** 督办状态 */
private int  supervisionState;


改为
/** 督办状态 */
private Integer supervisionState;


就ok啦 ~




你可能感兴趣的:(property)