Commit f41d75ac by huangjinxin

fix:图层新建不创建saas图层

1 parent 0dba3e7a
......@@ -169,20 +169,20 @@ public class BusinessLayerServiceImpl implements BusinessLayerService {
}
// 同步创建saas图层,返回layerId
String result = saasRemoteService.addLayer(ak, layerName, 1, 1);
log.info("addLayer params:{} result:{}", layerName, result);
Result<LinkedTreeMap<String, Object>> saasResult = TypeUtils.convertResult(result);
if (!ResultEnum.SUCCESS.getCode().equals(saasResult.getCode())) {
return Result.failure(saasResult.getMessage());
}
String saasLayerId = (String) saasResult.getResult().get("id");// 存入pea
// String result = saasRemoteService.addLayer(ak, layerName, 1, 1);
// log.info("addLayer params:{} result:{}", layerName, result);
// Result<LinkedTreeMap<String, Object>> saasResult = TypeUtils.convertResult(result);
// if (!ResultEnum.SUCCESS.getCode().equals(saasResult.getCode())) {
// return Result.failure(saasResult.getMessage());
// }
// String saasLayerId = (String) saasResult.getResult().get("id");// 存入pea
String layerId = UUID.randomUUID().toString().replace("-", "");
// 入库保存
MapLayerCustomizeEntity m = new MapLayerCustomizeEntity();
m.setLayerId(layerId);
m.setSaasLayerId(saasLayerId);
// m.setSaasLayerId(saasLayerId);
m.setLayer(layerName);
m.setLayerDescribe(layerDesc);
m.setBranchId(branchId);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!