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

2个小bug 反馈一下 #435

Closed
lltx opened this issue Sep 13, 2021 · 3 comments
Closed

2个小bug 反馈一下 #435

lltx opened this issue Sep 13, 2021 · 3 comments

Comments

@lltx
Copy link
Collaborator

lltx commented Sep 13, 2021

版本信息

  • pig版本:当前
  • 操作系统:mac
  • 是否修改包名: 无

报错信息 (注意格式化)

###问题描述(包括回显步骤、截图 )
问题1.打开pig-ui的字典和日志搜索页面,这里点击搜索, 数据就没了,
经过debug 是 Wrappers.query默认生成搜索语句策略问题。
mybatis-plus全局设置 field-strategy: NOT_EMPTY 问题解决 ,不知道会不会引发其他问题,还是有意为之。
2.pig-ui项目 ,dictUrl这个参数,字典翻译。 现在必须保证后端的字段是String类型 如果是int 0还是0,不会翻译。

@lltx
Copy link
Collaborator Author

lltx commented Sep 13, 2021

  1. 点击搜索 传过去的空条件。 where xx is null . 可以加 fromFilter 过滤

  2. 因为字典表里面保存的值是字符串,当你字段值是同类型string 才能比较 无可厚非,

如果avue 来判断所有类型 @smallweigit

感谢PR

@lltx
Copy link
Collaborator Author

lltx commented Sep 13, 2021

必须匹配类型,字符串或数字

@lltx
Copy link
Collaborator Author

lltx commented Sep 13, 2021

@smallweigit 这样也行 开发约定好就好

@lltx lltx closed this as completed Sep 13, 2021
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

1 participant