Commit 6fd945d0 by chamberone

feat: 同步删除区块

1 parent bc31c720
...@@ -12,7 +12,7 @@ public interface ISaaSRemoteService { ...@@ -12,7 +12,7 @@ public interface ISaaSRemoteService {
@RequestParam String region, @RequestParam String coordType); @RequestParam String region, @RequestParam String coordType);
@PostMapping("/v1/area/delById") @PostMapping("/v1/area/delById")
public String deleteArea(@RequestParam String ak, @RequestParam String layerCode, @RequestParam String id); public String deleteArea(@RequestParam String ak, @RequestParam String id);
@PostMapping("/v1/layer/save") @PostMapping("/v1/layer/save")
public String addLayer(@RequestParam String ak, @RequestParam String layerName, @RequestParam Integer layerType, public String addLayer(@RequestParam String ak, @RequestParam String layerName, @RequestParam Integer layerType,
......
...@@ -177,6 +177,15 @@ public class BusinessBlockServiceImpl implements BusinessBlockService { ...@@ -177,6 +177,15 @@ public class BusinessBlockServiceImpl implements BusinessBlockService {
} }
block.setStatus(0); block.setStatus(0);
mapBlockInfoMPDao.updateById(block); mapBlockInfoMPDao.updateById(block);
// 同步删除saas区块
String result = saasRemoteService.deleteArea(ak, blockId);
log.info("params:{} result:{}", blockId, result);
Result<Boolean> saasResult = TypeUtils.<Boolean>convertResult(result);
if (!ResultEnum.SUCCESS.getCode().equals(saasResult.getCode())) {
return Result.failure("删除失败,请联系管理员");
}
return Result.success(null); return Result.success(null);
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!