mirror of https://gitee.com/makejava/EasyCode.git
添加默认类型,修复代码生成后无法自动刷新。
This commit is contained in:
parent
d1dce8a339
commit
485570f9d7
|
@ -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);
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue