微信开发者工具从后台获取值得时候出现attempted to return null from a method with a primitive return type (double).
attempted to return null from a method with a primitive return type (double).
从后要获取的值是一个double类型,刚开始在mapper.xml文件下的查询语句中
当查询出来的值为空,即没有值的时候,它的数据为null而不是double数据,正确的写法是
当它为空的之后,给它赋值为0.则微信开发者工具才不会...
原创
2019-06-04 16:04:23 ·
1927 阅读 ·
0 评论