Failed to convert property value of type ‘null‘ to required type ‘double‘ for property ‘balance‘解决方案

网上方法

解决

源代码:

    private int id;
    private String name;
    private double balance;

只需要把intdouble换成整数和小数的包装类IntegerDouble就可以了

    private Integer id;
    private String name;
    private Double balance;

最后重新生成getset方法,重新运行

 

我用了 IFNULL(max(chg),0) as chg

posted @ 2022-01-08 20:49  锐洋智能  阅读(247)  评论(0编辑  收藏  举报