修复grp默认前缀导致的bug

This commit is contained in:
lixuetao
2022-03-31 02:03:31 +08:00
parent 64623a2d28
commit 7b1d995dab
@@ -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())){