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 51c1f487
authored
Jul 16, 2024
by
henry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除多余的属性
1 parent
1002c490
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
69 deletions
framework-analysis/src/main/java/org/arch/analysis/controller/ArchMapController.java
framework-analysis/src/main/java/org/arch/analysis/vo/ArchMapVo.java
framework-analysis/src/main/resources/mapper/ArchMapMapp.xml
framework-analysis/src/main/java/org/arch/analysis/controller/ArchMapController.java
View file @
51c1f48
...
...
@@ -36,9 +36,7 @@ public class ArchMapController {
@OperLog
(
value
=
LogOperTypeEnum
.
QUERY
,
logTypeValue
=
LogTypeEnum
.
BUSI_LOG
,
operDes
=
"获取总体业务架构资产信息"
,
moduleName
=
"架构地图"
)
public
Result
getOverAllBusAsset
(
@RequestBody
ArchMapDto
mapDto
)
{
String
parentAssetId
=
mapDto
.
getParentAssetId
();
String
eleName
=
mapDto
.
getEleName
();
if
(
StringUtils
.
isEmpty
(
eleName
)
||
StringUtils
.
isEmpty
(
parentAssetId
))
{
if
(
StringUtils
.
isEmpty
(
parentAssetId
))
{
throw
new
NullPointerException
(
"架构类型、架构层级及元素名称不能为空;"
);
}
List
<
ArchMapVo
>
resultDatas
=
archMapService
.
getOverAllBusAsset
(
mapDto
);
...
...
framework-analysis/src/main/java/org/arch/analysis/vo/ArchMapVo.java
View file @
51c1f48
...
...
@@ -4,7 +4,9 @@ import lombok.AllArgsConstructor;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
@Data
@AllArgsConstructor
@NoArgsConstructor
public
class
ArchMapVo
{
/**
* 元素名称
...
...
@@ -30,68 +32,9 @@ public class ArchMapVo {
* 架构类型
*/
private
String
archiType
;
/**
* 上级资产编号
*/
private
String
assetId
;
public
String
getEleName
()
{
return
eleName
;
}
public
void
setEleName
(
String
eleName
)
{
this
.
eleName
=
eleName
;
}
public
String
getAssetName
()
{
return
assetName
;
}
public
void
setAssetName
(
String
assetName
)
{
this
.
assetName
=
assetName
;
}
public
String
getElementId
()
{
return
elementId
;
}
public
void
setElementId
(
String
elementId
)
{
this
.
elementId
=
elementId
;
}
public
String
getEaLevel
()
{
return
eaLevel
;
}
public
void
setEaLevel
(
String
eaLevel
)
{
this
.
eaLevel
=
eaLevel
;
}
public
String
getParentAssetId
()
{
return
parentAssetId
;
}
public
void
setParentAssetId
(
String
parentAssetId
)
{
this
.
parentAssetId
=
parentAssetId
;
}
public
String
getArchiType
()
{
return
archiType
;
}
public
void
setArchiType
(
String
archiType
)
{
this
.
archiType
=
archiType
;
}
public
ArchMapVo
()
{
}
@Override
public
String
toString
()
{
return
"ArchMapVo{"
+
"eleName='"
+
eleName
+
'\''
+
", assetName='"
+
assetName
+
'\''
+
", elementId='"
+
elementId
+
'\''
+
", eaLevel='"
+
eaLevel
+
'\''
+
", parentAssetId='"
+
parentAssetId
+
'\''
+
", archiType='"
+
archiType
+
'\''
+
'}'
;
}
}
framework-analysis/src/main/resources/mapper/ArchMapMapp.xml
View file @
51c1f48
...
...
@@ -8,14 +8,14 @@
m.element_id as elementId,
m.ea_level as eaLevel,
n.parent_asset_id as parentAssetId,
n.archi_type as archiType
n.archi_type as archiType,
n.asset_id as assetId
from
archi_asset_info n,
archi_element m
where
n.archi_type = 'ARCHI_BUSINESS'
and n.archi_ele_id = m.element_id
and n.ele_name = #{eleName}
<if
test=
"eaLevel!=null and eaLevel!=''"
>
and m.ea_level= #{eaLevel}
</if>
...
...
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