Commit 84b6e7e9 by henry

添加获取架构资产树形结构接口

1 parent 562212f5
...@@ -83,19 +83,17 @@ public class ArchMapController { ...@@ -83,19 +83,17 @@ public class ArchMapController {
/** /**
* 获取资产树型 * 获取资产树型
*
* @return * @return
*/ */
@PostMapping("getAssetTree") @PostMapping("getAssetTree")
@OperLog(value = LogOperTypeEnum.QUERY, logTypeValue = LogTypeEnum.BUSI_LOG, operDes = "获取架构多维分析树形结构数据", moduleName = "架构地图") @OperLog(value = LogOperTypeEnum.QUERY, logTypeValue = LogTypeEnum.BUSI_LOG, operDes = "获取架构多维分析树形结构数据", moduleName = "架构地图")
public Result getAssetTree(@RequestBody ArchMapDto mapDto) { public Result getAssetTree(@RequestBody ArchMapDto mapDto) {
String archiType = mapDto.getArchiType(); String archiType = mapDto.getArchiType();
if(StringUtils.isEmpty(archiType)){ if (StringUtils.isEmpty(archiType)) {
return Result.error("架构类型不能为空;"); return Result.error("架构类型不能为空;");
} }
List<ArchMapVo> allDatas = archMapService.getAssetTree(mapDto); List<ArchMapVo> allDatas = archMapService.getAssetTree(mapDto);
return Result.success(allDatas); return Result.success(allDatas);
} }
} }
...@@ -8,6 +8,5 @@ import java.util.List; ...@@ -8,6 +8,5 @@ import java.util.List;
public interface IArchMapService { public interface IArchMapService {
List<ArchMapVo> getOverAllBusAsset(ArchMapDto mapDto); List<ArchMapVo> getOverAllBusAsset(ArchMapDto mapDto);
List<ArchMapVo> getAssetTree(ArchMapDto mapDto); List<ArchMapVo> getAssetTree(ArchMapDto mapDto);
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!