Commit a90ab818 by chamberone

feat: 添加saas图层信息

1 parent 14682076
......@@ -193,18 +193,17 @@ public class BusinessBlockServiceImpl implements BusinessBlockService {
String saasLayerName = team.getBranchId() + "_" + layerId;
String result = saasRemoteService.addLayer(ak, saasLayerName, 1, 1);
log.info("addLayer params:{} result:{}", layerName, result);
System.out.println(result);
Result<LinkedTreeMap<String, Object>> saasResult = TypeUtils.convertResult(result);
if (!ResultEnum.SUCCESS.getCode().equals(saasResult.getCode())) {
return Result.failure(saasResult.getMessage());
}
// 返回layerid和code
String saasLayerId = (String) saasResult.getResult().get("id");// 存入pea
String saasLayercode = (String) saasResult.getResult().get("code");// 存入pea
String blockName = String.format("%s_%s", layerName, team.getTeamName()); //区块名称
MapBlockInfoEntity block = new MapBlockInfoEntity();
// block.setAreaIds(blockId);
String blockName = String.format("%s_%s", layerName, team.getTeamName()); //区块名称
block.setAreaName(blockName);
block.setBranchId(team.getBranchId());
block.setGroupId(team.getGroupId());
......@@ -213,6 +212,8 @@ public class BusinessBlockServiceImpl implements BusinessBlockService {
block.setLayerName(layerName);
block.setStatus(true);
block.setAreaCount(0L);
block.setSaasLayerId(saasLayerId);
block.setSaasLayercode(saasLayercode);
block.setCreateTime(LocalDateTime.now());
block.setUpdateTime(block.getCreateTime());
entityManager.persist(block);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!