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

代码生成器表名取值问题 #33

Open
qinfeiyang2019 opened this issue Nov 16, 2019 · 2 comments
Open

代码生成器表名取值问题 #33

qinfeiyang2019 opened this issue Nov 16, 2019 · 2 comments

Comments

@qinfeiyang2019
Copy link

qinfeiyang2019 commented Nov 16, 2019

请问代码生成器中填写 表名*:Wechat 实际表名:wx_wechat
生成实体和服务类都是Wechat命名,这样好看些 (不想到处都是wx_wechat命名文件和类)
实体Wechat类属性
[Entity(TableCnName = "公众号信息",TableName = "wx_wechat")]
说明tableName对了得(wx_wechat)
但是实际执行得时候 tablename是Wechat
说明取值并不是我填写得 "实际表名". 而是取值 "表名*"

提问: 应该判断 可选填"实际表名"空时,才取值"表名*" ?

@qinfeiyang2019 qinfeiyang2019 changed the title BaseController调整 代码生成器表名取值问题 Nov 16, 2019
@qinfeiyang2019
Copy link
Author

qinfeiyang2019 commented Nov 16, 2019

image
在ServiceFunFilter类中看到 属性tablename已经弃用... 这里就不赋值吗
image
但是基类服务中还在调用

@cq-panda
Copy link
Owner

已增加代码生成器对表别名处理

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

2 participants