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

DB字段命名里有下划线时,生成的Map文件所对应的属性移除了下划线 #29

Closed
harvey0720 opened this issue May 23, 2019 · 2 comments
Labels
bug Something isn't working

Comments

@harvey0720
Copy link

表结构:
CREATE TABLE Sys_Area(
F_Id varchar(50) NOT NULL comment '标识列',
F_ParentId varchar(50) NULL comment '父级',
F_Layers int NULL comment '层次',
F_EnCode varchar(50) NULL comment '编码',
F_FullName varchar(50) NULL comment '名称',
F_SimpleSpelling varchar(50) NULL comment '简拼',
F_SortCode int NULL comment '排序码',
F_DeleteMark bit NULL comment '删除标志',
F_EnabledMark bit NULL comment '有效标志',
F_Description varchar(500) NULL comment '描述',
F_CreatorTime datetime NULL comment '创建日期',
F_CreatorUserId varchar(50) NULL comment '创建用户主键',
F_LastModifyTime datetime NULL comment '最后修改时间',
F_LastModifyUserId varchar(50) NULL comment '最后修改用户',
F_DeleteTime datetime NULL comment '删除时间',
F_DeleteUserId varchar(50) NULL comment '删除用户',
F_CreatorUserName varchar(50) NOT NULL DEFAULT '超级管理员',
F_DeleteUserName varchar(50) NULL,
F_LastModifyUserName varchar(50) NULL,
primary key (F_Id)
) ;
使用smartcode.yml默认设置,生成的Map里GetEntity把

QQ五笔截图未命名。在获取数据时给出提示:Statement:SysArea.GetEntity Tag:Where Min-matched:1 but matched:0 fail.

@Ahoo-Wang
Copy link
Member

贴模板

@Ahoo-Wang
Copy link
Member

你这个情况的建议是 配置转换的时候设置移除 前缀 F_ ,F_Id -> Id,这个比较符合规范。

@Ahoo-Wang Ahoo-Wang added the bug Something isn't working label May 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants