Commit 85e9a9dd authored by 赵啸非's avatar 赵啸非

修改登录鉴权时间

parent 8cab031c
......@@ -58,7 +58,9 @@ public class SetupDbServiceImpl implements SetupDbService {
} catch (Exception e) {
log.error("初始化数据库异常", e);
return Rest.fail(e.getMessage());
}finally {
}
return Rest.ok("初始化数据成功!");
}
......
......@@ -101,6 +101,14 @@ public class SetupProjectServiceImpl extends AbstractCRUDServiceImpl<SetupProjec
ZipUtils.unGzip(inputStream, setupProjectEntity.getProjectPath());
if(inputStream!=null){
try {
inputStream.close();
} catch (IOException e) {
// throw new RuntimeException(e);
}
}
String publicPath = setupProjectEntity.getProjectPath() + ProductDisEnum.getByValue(setupProjectEntity.getProjectCode()).getValue();
//导入数据库业务
......@@ -112,10 +120,10 @@ public class SetupProjectServiceImpl extends AbstractCRUDServiceImpl<SetupProjec
dbSetupEntity.setPassword(setupProjectEntity.getDbPassword());
dbSetupEntity.setDbFilePath(publicPath + "/db/base.sql");
log.info("数据库db路径!{}", dbSetupEntity.getDbFilePath());
Rest<String> dbRest = setupDbService.initDb(dbSetupEntity);
/* Rest<String> dbRest = setupDbService.initDb(dbSetupEntity);
if (YesNoEnum.YES.getValue() != dbRest.getCode()) {
log.info("数据库初始化成功!");
}
}*/
setupProjectEntity.setProjectStatus(ProjectStatusEnum.已部署.getValue());
this.update(setupProjectEntity);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment