Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
framework-tools
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 84b6e7e9
authored
Jul 16, 2024
by
henry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加获取架构资产树形结构接口
1 parent
562212f5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
26 deletions
framework-analysis/src/main/java/org/arch/analysis/controller/ArchMapController.java
framework-analysis/src/main/java/org/arch/analysis/service/IArchMapService.java
framework-analysis/src/main/resources/mapper/ArchMapMapp.xml
framework-analysis/src/main/java/org/arch/analysis/controller/ArchMapController.java
View file @
84b6e7e
...
...
@@ -83,19 +83,17 @@ public class ArchMapController {
/**
* 获取资产树型
*
* @return
*/
@PostMapping
(
"getAssetTree"
)
@OperLog
(
value
=
LogOperTypeEnum
.
QUERY
,
logTypeValue
=
LogTypeEnum
.
BUSI_LOG
,
operDes
=
"获取架构多维分析树形结构数据"
,
moduleName
=
"架构地图"
)
public
Result
getAssetTree
(
@RequestBody
ArchMapDto
mapDto
)
{
String
archiType
=
mapDto
.
getArchiType
();
if
(
StringUtils
.
isEmpty
(
archiType
))
{
if
(
StringUtils
.
isEmpty
(
archiType
))
{
return
Result
.
error
(
"架构类型不能为空;"
);
}
List
<
ArchMapVo
>
allDatas
=
archMapService
.
getAssetTree
(
mapDto
);
return
Result
.
success
(
allDatas
);
}
}
framework-analysis/src/main/java/org/arch/analysis/service/IArchMapService.java
View file @
84b6e7e
...
...
@@ -8,6 +8,5 @@ import java.util.List;
public
interface
IArchMapService
{
List
<
ArchMapVo
>
getOverAllBusAsset
(
ArchMapDto
mapDto
);
List
<
ArchMapVo
>
getAssetTree
(
ArchMapDto
mapDto
);
}
framework-analysis/src/main/resources/mapper/ArchMapMapp.xml
View file @
84b6e7e
...
...
@@ -3,30 +3,30 @@
<mapper
namespace=
"org.arch.analysis.mapper.ArchMapMapper"
>
<select
id=
"getOverAllBusAsset"
resultType=
"org.arch.analysis.vo.ArchMapVo"
parameterType=
"org.arch.analysis.dto.ArchMapDto"
>
select
ele_name as eleName,
n.asset_name as assetName,
m.element_id as elementId,
m.ea_level as eaLevel,
n.parent_asset_id as parentAssetId,
n.archi_type as archiType,
n.asset_code as assetCode,
n.asset_id
as assetId
ele_name as eleName,
n.asset_name as assetName,
m.element_id as elementId,
m.ea_level as eaLevel,
n.parent_asset_id as parentAssetId,
n.archi_type as archiType,
n.asset_code as assetCode,
n.asset_id
as assetId
from
archi_asset_info n,
archi_element m
archi_asset_info n,
archi_element m
where
n.archi_type = #{archiType}
and n.archi_ele_id = m.element_id
<if
test=
"eaLevel!=null and eaLevel!=''"
>
and m.ea_level= #{eaLevel}
</if>
and n.del_flag = 0
and n.archi_stage = 1
and n.state = 1
and m.state=1
and m.del_flag=0
n.archi_type = #{archiType}
and n.archi_ele_id = m.element_id
<if
test=
"eaLevel!=null and eaLevel!=''"
>
and m.ea_level= #{eaLevel}
</if>
and n.del_flag = 0
and n.archi_stage = 1
and n.state = 1
and m.state=1
and m.del_flag=0
<if
test=
"parentAssetId!=null and parentAssetId!=''"
>
and n.parent_asset_id = #{parentAssetId}
and n.parent_asset_id = #{parentAssetId}
</if>
</select>
</mapper>
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment