Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

一对多代码生成(ERP模板)生成的子表实体ApiModel注释中value为附表名称 #2365

Closed
malongmedea opened this issue Mar 20, 2021 · 1 comment

Comments

@malongmedea
Copy link

版本号:2.4.3
问题描述:

如标题所述,例如主表demo_a,附表demo_b。他俩是一对多关系。页面风格选择ERP风格(其它风格未测试),所生成的子表实体ApiModel注解错误。

截图&代码:

生成的代码大概是这样的

@Data
@TableName("damo_a")
@ApiModel(value="damo_a对象", description="xxxA")
public class SztCourseScope implements Serializable {
}

@Data
@TableName("damo_b")
@ApiModel(value="damo_a对象", description="xxxB")
public class SztCourseScope implements Serializable {
}

奇怪的是注解TableName是正常的,description也是正常的。

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants