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
SexEnum.UNKNOWN.value 与 memeber_user.sex 的默认值不一致 #508
Labels
bug
Something isn't working
Comments
建议把 UNKNOWN 改成 0 哈 |
不太好吧, 现在又没有发大版本, 直接修改存量枚举的值可能会导致部分实时跟进代码库改动的用户出现线上故障. |
这块是之前搞的不对,应该就是 0 是未知哈。 |
删除了 UNSPECIFIED, 更换了 UNKNOWN 的值 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
基本信息
你猜测可能的原因
不相关
复现步骤
ruoyi-vue-pro/yudao-module-system/yudao-module-system-api/src/main/java/cn/iocoder/yudao/module/system/enums/common/SexEnum.java
Lines 13 to 27 in 8428cc5
报错信息
member-2024-01-18.sql 中对于 sex 字段的默认值是 0 , 但 SexEnum.UNKNOWN.value 的值是 3.
改进建议
新增 SexEnum.UNSPECIFED (0), 并废弃 SexEnum.UNKNOWN .
The text was updated successfully, but these errors were encountered: