添加默认类型,修复代码生成后无法自动刷新。

This commit is contained in:
javas 2018-01-11 18:45:34 +08:00
parent d1dce8a339
commit 485570f9d7
2 changed files with 4 additions and 2 deletions

View File

@ -104,6 +104,7 @@ public class ConfigServiceImpl implements ConfigService {
typeMapperList.add(new TypeMapper("bigint", "java.lang.Long"));
typeMapperList.add(new TypeMapper("datetime", "java.util.Date"));
typeMapperList.add(new TypeMapper("timestamp", "java.util.Date"));
typeMapperList.add(new TypeMapper("boolean", "java.lang.Boolean"));
typeMapperGroup.setName(DEFAULT_NAME);
typeMapperGroup.setTypeMapperList(typeMapperList);
typeMapperGroupMap.put(DEFAULT_NAME, typeMapperGroup);

View File

@ -1,6 +1,7 @@
package com.sjhy.plugin.tool;
import com.intellij.openapi.util.io.FileUtil;
import com.intellij.openapi.vfs.VirtualFileManager;
import com.sjhy.plugin.entity.Callback;
import com.sjhy.plugin.entity.TableInfo;
import com.sjhy.plugin.entity.Template;
@ -100,10 +101,10 @@ public class VelocityUtils {
} catch (IOException e) {
e.printStackTrace();
}
JOptionPane.showMessageDialog(null, "Code Generate Success!");
});
});
JOptionPane.showMessageDialog(null, "Code Generate Success!");
VirtualFileManager.getInstance().syncRefresh();
}
private Set<String> getImportList(TableInfo tableInfo) {