Merge remote-tracking branch 'origin/main'

main
wangyi 5 days ago
commit 29c5ce7692

@ -142,7 +142,7 @@ public class GenCodeUtils {
Template tpl = Velocity.getTemplate(template, "UTF-8"); Template tpl = Velocity.getTemplate(template, "UTF-8");
tpl.merge(context, sw); tpl.merge(context, sw);
try { try {
zip.finish(); // zip.finish();
zip.putNextEntry(new ZipEntry(getFileName(template, tableEntity.getClassName(), config.getString("package"), config.getString("moduleName")))); zip.putNextEntry(new ZipEntry(getFileName(template, tableEntity.getClassName(), config.getString("package"), config.getString("moduleName"))));
IOUtils.write(sw.toString(), zip, "UTF-8"); IOUtils.write(sw.toString(), zip, "UTF-8");
IOUtils.closeQuietly(sw); IOUtils.closeQuietly(sw);

Loading…
Cancel
Save