1
0
forked from aixan/RuoYi-Vue

修复代码生成主子表校验必填失效问题

This commit is contained in:
RuoYi
2025-02-28 21:53:15 +08:00
parent 499648c90e
commit 637a09cfa9

View File

@@ -128,9 +128,9 @@ public class GenTableServiceImpl implements IGenTableService
int row = genTableMapper.updateGenTable(genTable);
if (row > 0)
{
for (GenTableColumn cenTableColumn : genTable.getColumns())
for (GenTableColumn genTableColumn : genTable.getColumns())
{
genTableColumnMapper.updateGenTableColumn(cenTableColumn);
genTableColumnMapper.updateGenTableColumn(genTableColumn);
}
}
}
@@ -424,6 +424,7 @@ public class GenTableServiceImpl implements IGenTableService
{
throw new ServiceException("树名称字段不能为空");
}
}
else if (GenConstants.TPL_SUB.equals(genTable.getTplCategory()))
{
if (StringUtils.isEmpty(genTable.getSubTableName()))
@@ -436,7 +437,6 @@ public class GenTableServiceImpl implements IGenTableService
}
}
}
}
/**
* 设置主键列信息