Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Condition 映射表查询条件 column 字段格式转换问题 #135

Closed
RazorWang opened this issue May 8, 2024 · 1 comment
Closed

Comments

@RazorWang
Copy link

当前使用版本(必填,否则不予处理)

1.4.12

该问题是如何引起的?(确定最新版也有问题再提!!!)

主表和子表都已使用 @FieldNameConstants 注解
在 @EntityMapping 注解,配置 condision 参数时候, column 字段传入 "子表.Fields.字段名A(小驼峰)" ,
执行查询时候打印 sql 语句发现 字段名A(小驼峰) 没有转为下划线格式

重现步骤(如果有就写完整)

image

查询到源码 MPJMappingWrapper 类直接读取注解的 column 属性组装成 Condition 对象
image

MappingQuery 类直接读取 condition 的 column 属性组装 wrapper
image

报错信息

image

@RazorWang
Copy link
Author

@EntityMapping 的 orderByAsc 和 orderByDesc 同样情况

yulichang added a commit that referenced this issue May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants