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

[Fix][Admin] Fix the problem of not being able to search using worknum #3388

Merged
merged 8 commits into from
Apr 12, 2024

Conversation

18216499322
Copy link
Contributor

Fix the problem of not being able to search using worknum

@@ -15,6 +15,9 @@
<if test='param.nickname!=null and param.nickname!=""'>
and a.nickname like "%${param.nickname}%"
</if>
<if test='param.worknum!=null and param.worknum!=""'>
and a.worknum like "%${param.worknum}%"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

此方式会导致 sql 注入风险 请使用 concat('%',#{param.worknum},'%') ,并将昵称字段的查询修改为此种方式

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好的,谢谢老师指导

@18216499322 18216499322 marked this pull request as draft April 12, 2024 07:48
@18216499322 18216499322 marked this pull request as ready for review April 12, 2024 08:13
@Zzm0809 Zzm0809 merged commit 72cfc1f into DataLinkDC:dev Apr 12, 2024
13 checks passed
Zzm0809 pushed a commit to Zzm0809/dinky that referenced this pull request May 6, 2024
DataLinkDC#3388)

Co-authored-by: luoshangjie <luoshangjie@yfpharmacy.com>
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

Successfully merging this pull request may close these issues.

2 participants