update 优化 代码生成 字段更新未同步

feature/model
疯狂的狮子li 3 years ago
parent 8052d75957
commit 3600875707

@ -35,6 +35,7 @@ import java.io.IOException;
import java.io.StringWriter;
import java.nio.charset.StandardCharsets;
import java.util.*;
import java.util.function.Function;
import java.util.stream.Collectors;
import java.util.zip.ZipEntry;
import java.util.zip.ZipOutputStream;
@ -295,9 +296,9 @@ public class GenTableServiceImpl implements IGenTableService {
// 如果是列表,继续保留字典类型
column.setDictType(prevColumn.getDictType());
}
genTableColumnMapper.updateGenTableColumn(column);
genTableColumnMapper.updateById(column);
} else {
genTableColumnMapper.insertGenTableColumn(column);
genTableColumnMapper.insert(column);
}
});
if (CollUtil.isNotEmpty(saveColumns)) {

Loading…
Cancel
Save