作者 RuoYi

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

@@ -128,9 +128,9 @@ public class GenTableServiceImpl implements IGenTableService @@ -128,9 +128,9 @@ public class GenTableServiceImpl implements IGenTableService
128 int row = genTableMapper.updateGenTable(genTable); 128 int row = genTableMapper.updateGenTable(genTable);
129 if (row > 0) 129 if (row > 0)
130 { 130 {
131 - for (GenTableColumn cenTableColumn : genTable.getColumns()) 131 + for (GenTableColumn genTableColumn : genTable.getColumns())
132 { 132 {
133 - genTableColumnMapper.updateGenTableColumn(cenTableColumn); 133 + genTableColumnMapper.updateGenTableColumn(genTableColumn);
134 } 134 }
135 } 135 }
136 } 136 }
@@ -424,6 +424,7 @@ public class GenTableServiceImpl implements IGenTableService @@ -424,6 +424,7 @@ public class GenTableServiceImpl implements IGenTableService
424 { 424 {
425 throw new ServiceException("树名称字段不能为空"); 425 throw new ServiceException("树名称字段不能为空");
426 } 426 }
  427 + }
427 else if (GenConstants.TPL_SUB.equals(genTable.getTplCategory())) 428 else if (GenConstants.TPL_SUB.equals(genTable.getTplCategory()))
428 { 429 {
429 if (StringUtils.isEmpty(genTable.getSubTableName())) 430 if (StringUtils.isEmpty(genTable.getSubTableName()))
@@ -436,7 +437,6 @@ public class GenTableServiceImpl implements IGenTableService @@ -436,7 +437,6 @@ public class GenTableServiceImpl implements IGenTableService
436 } 437 }
437 } 438 }
438 } 439 }
439 - }  
440 440
441 /** 441 /**
442 * 设置主键列信息 442 * 设置主键列信息