修复grp默认前缀导致的bug
This commit is contained in:
+2
-2
@@ -85,8 +85,8 @@ public class OnlCgformTagServiceImpl extends ServiceImpl<OnlCgformTagMapper, Onl
|
||||
onlCgformTag.setDbFieldName(pinYin.replace(" ","_"));
|
||||
|
||||
// 数据库的字段名称必须以字母开头,若不以字母开头加上固定的grp前缀
|
||||
if (!Validator.isMatchRegex("^[a-zA-Z]*$", onlCgformTag.getDbFieldName())){
|
||||
onlCgformTag.setDbFieldName("GRP_" + onlCgformTag.getDbFieldName());
|
||||
if (!Validator.isMatchRegex("^[a-zA-Z].*$", onlCgformTag.getDbFieldName())){
|
||||
onlCgformTag.setDbFieldName("grp_" + onlCgformTag.getDbFieldName());
|
||||
}
|
||||
|
||||
if(StringUtils.isNotBlank(onlCgformTag.getDbFieldEnName())){
|
||||
|
||||
Reference in New Issue
Block a user