pull/3/head
cfs 2016-03-25 14:41:42 +08:00
commit 4f647554fa
1 changed files with 3 additions and 0 deletions

View File

@ -22,6 +22,9 @@ public class ProjectConfigService extends BaseService<ProjectConfig> {
public ProjectConfig get() {
ProjectConfig conf = dao().fetch(getEntityClass());
if (conf == null) {
dao().insert(new ProjectConfig());
}
return conf;
}