nebula-contrib / ngbatis

NGBATIS is a database ORM framework base NebulaGraph + spring-boot, which takes advantage of the mybatis’ fashion development, including some de-factor operations in single table and vertex-edge, like mybatis-plus. NGBATIS 是一款针对 NebulaGraph + Springboot 的数据库 ORM 框架。借鉴于 MyBatis 的使用习惯进行开发。https://graph-cn.github.io/ngbatis-docs/
https://nebula-contrib.github.io/ngbatis/
Apache License 2.0
132 stars 42 forks source link

查询列表报空指针 #164

Closed zhangxk-ocean closed 1 year ago

zhangxk-ocean commented 1 year ago

查询列表报错,可能是什么原因呢 xml语句: image 参数: image

CorvusYe commented 1 year ago

有具体的日志吗

CorvusYe commented 1 year ago

image 提一个跟空指针没关系的,这部分可以考虑使用以下来替代:

and src.${tagName}.${prop.propertyName} ${ng.ifStringLike(prop.propertyValue)}
zhangxk-ocean commented 1 year ago

替换以后,还是报一样的错,日志如下: image

zhangxk-ocean commented 1 year ago

xml语句: image

zhangxk-ocean commented 1 year ago

这个空指针异常找到问题根源了,不小心把接参类型写成了long,用Long就行了

zhangxk-ocean commented 1 year ago

现在报个新问题,是什么原因呢: image

CorvusYe commented 1 year ago

for in的位置直接跟参数名就好了,不用$取值

zhangxk-ocean commented 1 year ago

明白了