|
@@ -93,24 +93,16 @@ public class VectorServerImpl extends BaseServerImpl implements VectorServer {
|
|
|
return new R(50002, MsgCode.E50002);
|
|
|
}
|
|
|
OutputFileEntity entity = o.get();
|
|
|
-// FileUtils.createDir(MOVE_FILE_TO_SERVER);
|
|
|
|
|
|
try {
|
|
|
-// org.apache.commons.io.FileUtils.copyDirectoryToDirectory(new File(entity.getSlicePath()), new File(MOVE_FILE_TO_SERVER));
|
|
|
// 修改前端的config.json 文件
|
|
|
writeJsonFile(param, entity.getDirectory(), entity);
|
|
|
|
|
|
- //修改linux 文件权限
|
|
|
-// String cmd = Command.CMD_CHOMD_755;
|
|
|
-// String slice = MOVE_FILE_TO_SERVER + entity.getDirectory();
|
|
|
-// cmd = cmd.replace("@path", slice);
|
|
|
-// log.info("cmd: {}", cmd);
|
|
|
-// cmdServer.exeCmdInt(cmd);
|
|
|
-
|
|
|
-
|
|
|
entity.setStatus(8);
|
|
|
entity.setServicePath(entity.getSlicePath());
|
|
|
entity.setUpdateTime(new Date());
|
|
|
+ // 添加图层名称
|
|
|
+ entity.setLayerName(param.getText());
|
|
|
|
|
|
// 添加图层角色
|
|
|
entity.setLayerRole(param.getRole());
|