Commit d19b6567 authored by 赵啸非's avatar 赵啸非

添加区域树

parent ba070fad
......@@ -227,8 +227,6 @@ public class SetupProjectServiceImpl extends AbstractCRUDServiceImpl<SetupProjec
buildLogManager(context);
buildLogManagerUi(context);
return Rest.ok();
}
......
......@@ -447,6 +447,30 @@ public class SetupProjectController extends BaseCRUDJsonBodyMappingController<Se
return ret.toJSONString();
}
@PostMapping("/importProjectDataInit")
@UnAuth
public String importProjectDataInit(MultipartFile file) {
JSONObject ret = new JSONObject();
Map<String, Object> model = new HashMap<>();
Context context = getContext();
String busiDesc = "导入" + getModuleDesc();
int code = VALUE_RESULT_SUCCESS;
try {
//解压
this.service.unProjectZip(file, context);
//初始化项目
SetupProjectEntity setupProjectEntity = new SetupProjectEntity();
this.service.distributeInit(setupProjectEntity, getContext());
recordSysLog(request, busiDesc + " 【成功】");
} catch (Exception e) {
code = VALUE_RESULT_FAILURE;
doException(request, busiDesc, model, e);
}
ret.put(KEY_RESULT_CODE, code);
ret.put(KEY_RESULT_MSG, "导入成功!");
return ret.toJSONString();
}
/**
* 检测是否初始安装,是否已经安装了base-manager,如果没有则进入引导界面进行安装
......
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