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

使用自定义运算符替换Equal后,字段导致不写op=eq,不会出现在sql语句中 #73

Closed
zengyufei opened this issue Mar 19, 2023 · 1 comment

Comments

@zengyufei
Copy link

问题描述

使用自定义运算符替换Equal后,字段导致不写op=eq,不会出现在sql语句中,经排查,是 DefaultParamResolver#allowedOperator 方法里面写死了默认使用 FieldOps.Equal ,替换后,已经不存在Equal。导致字段不参与sql。

复现步骤

  1. http://localhost/test/project?id=1

期望结果

返回id为1的数据。

期望sql:select * from project where id=1;

实际结果

返回全表数据。

实际sql:select * from project;

环境信息

  • 操作系统:win10
  • 浏览器:edge
  • bs版本: 4.1.2

补充说明

没有了

@troyzhxu
Copy link
Owner

troyzhxu commented May 8, 2023

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