mirror of
https://gitee.com/likeadmin/likeadmin_java.git
synced 2026-05-08 08:07:46 +08:00
修改代码生成器
This commit is contained in:
@@ -241,7 +241,7 @@ public class GenerateServiceImpl implements IGenerateService {
|
||||
model.setSubTableName(genParam.getSubTableName().replace(GlobalConfig.tablePrefix, ""));
|
||||
genTableMapper.updateById(model);
|
||||
|
||||
for (Map<String, String> item : genParam.getColumns()) {
|
||||
for (Map<String, String> item : genParam.getColumn()) {
|
||||
Integer id = Integer.parseInt(item.get("id"));
|
||||
GenTableColumn column = genTableColumnMapper.selectById(id);
|
||||
column.setColumnComment(item.get("columnComment"));
|
||||
|
||||
@@ -71,7 +71,7 @@ public class GenParam implements Serializable {
|
||||
@Length(max = 200, message = "生成代码路径不能大于200个字符")
|
||||
private String genPath = "/";
|
||||
|
||||
private List<Map<String, String>> columns = new ArrayList<>();
|
||||
private List<Map<String, String>> column = new ArrayList<>();
|
||||
|
||||
private String treePrimary = "";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user