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

online表单开发 功能测试和生成的代码结果不一致bug #3625

Closed
yilongmd opened this issue Apr 23, 2022 · 5 comments
Closed

online表单开发 功能测试和生成的代码结果不一致bug #3625

yilongmd opened this issue Apr 23, 2022 · 5 comments

Comments

@yilongmd
Copy link

yilongmd commented Apr 23, 2022

版本号:

3.1.0

问题描述:

在线测试和部署不一致, 数据库也存储也有问题(Auto在线表单存储的是id字段, 部署代码存储是username)

截图&代码:

在线功能测试
image

生成代码部署:
image

生成代码新增一行数据:
image

数据库存储也有问题:
image

表单设计:
image

扩展参数:
{"store":"id", "text":"username"}

@zhangdaiscott
Copy link
Member

看看生成的代码,代码截图
image

@zhangdaiscott
Copy link
Member

无回复,一天后关闭

@yilongmd
Copy link
Author

导致不一样的是因为, 在线生成器生成代码 dicCode保持了默认, 没有使用配置的{"store":"id", "text":"username"}, 其他地方某些地方是否也有影响
/**绑定用户*/ @Excel(name = "绑定用户", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username") @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username) @ApiModelProperty(value = "绑定用户") private java.lang.String bindUser;

我手工修改成了:
/**绑定用户*/ @Excel(name = "绑定用户", width = 15, dictTable = "sys_user", dicText = "username", dicCode = "id") @Dict(dictTable = "sys_user", dicText = "username", dicCode = "id") @ApiModelProperty(value = "绑定用户") private java.lang.String bindUser;

......

@zhangdaiscott zhangdaiscott reopened this May 4, 2022
@zhangdaiscott
Copy link
Member

ty

@tygithub1
Copy link

已修改

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

3 participants