提交 ebf50d0c 编写于 作者: zhouweidong's avatar zhouweidong

lite副本逻辑优化

上级 1be750d3
...@@ -93,7 +93,6 @@ public class MetaDynamicModelExService extends MetaDynamicModelServiceImpl { ...@@ -93,7 +93,6 @@ public class MetaDynamicModelExService extends MetaDynamicModelServiceImpl {
try { try {
File modelFile = null; File modelFile = null;
JSONObject system = null; JSONObject system = null;
String strModelFile = et.getModelfile(); String strModelFile = et.getModelfile();
if (StringUtils.isEmpty(strModelFile)){ if (StringUtils.isEmpty(strModelFile)){
throw new BadRequestAlertException("模型文件为空", "MetaDynamicModel", "unzip"); throw new BadRequestAlertException("模型文件为空", "MetaDynamicModel", "unzip");
...@@ -120,8 +119,12 @@ public class MetaDynamicModelExService extends MetaDynamicModelServiceImpl { ...@@ -120,8 +119,12 @@ public class MetaDynamicModelExService extends MetaDynamicModelServiceImpl {
throw new BadRequestAlertException("文件后缀名异常,请以zip或tar.gz作为后缀名", "MetaDynamicModel", "unzip"); throw new BadRequestAlertException("文件后缀名异常,请以zip或tar.gz作为后缀名", "MetaDynamicModel", "unzip");
} }
if(!ObjectUtils.isEmpty(system)) { if(!ObjectUtils.isEmpty(system)) {
et.setDynainstid(system.getString("getPSDynaInstId")); String dynainst = system.getString("getPSDynaInstId");
et.setSystemId(system.getString("name")); String sysid = system.getString("name");
if(!StringUtils.isEmpty(dynainst))
et.setDynainstid(dynainst);
if(!StringUtils.isEmpty(sysid))
et.setSystemId(sysid);
} }
return system; return system;
} catch (IOException e) { } catch (IOException e) {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册