Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
a062db1f
Commit
a062db1f
authored
Aug 16, 2022
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
检查项匹配规则变动 向上查询 包括父级节点
parent
0f4a8490
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
0 deletions
+29
-0
InputItemMapper.java
...join/amos/patrol/business/dao/mapper/InputItemMapper.java
+6
-0
InputItemServiceImpl.java
...os/patrol/business/service/impl/InputItemServiceImpl.java
+23
-0
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/dao/mapper/InputItemMapper.java
View file @
a062db1f
...
...
@@ -24,6 +24,12 @@ public interface InputItemMapper extends BaseMapper {
public
List
<
InputItemVo
>
getInputItemInfoNew
(
InputItemPageParam
param
);
Map
<
String
,
String
>
getEquipParentCode
(
String
code
);
Map
<
String
,
String
>
getEquipParent
(
String
parentId
);
/**
* 新接口
* */
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/impl/InputItemServiceImpl.java
View file @
a062db1f
...
...
@@ -238,8 +238,31 @@ public class InputItemServiceImpl implements IInputItemService {
param
.
put
(
"orgCode"
,
orgCode
);
param
.
put
(
"bizOrgCode"
,
companyBizOrgCode
);
List
<
String
>
list
=
new
ArrayList
<>();
if
(
param
.
containsKey
(
"equipmentType"
)){
list
=
getEquipParent
(
param
.
get
(
"equipmentType"
).
toString
(),
list
);
list
.
add
(
"-1"
);
param
.
put
(
"equipmentType"
,
list
);
}
List
<
String
>
list1
=
new
ArrayList
<>();
if
(
param
.
containsKey
(
"facilitiesType"
)){
list1
=
getEquipParent
(
param
.
get
(
"facilitiesType"
).
toString
(),
list1
);
list1
.
add
(
"-1"
);
param
.
put
(
"facilitiesType"
,
list1
);
}
List
<
PointInputItemVo
>
content
=
inputItemMapper
.
queryCustomInputItem
(
param
);
return
content
;
}
public
List
<
String
>
getEquipParent
(
String
code
,
List
<
String
>
objects
){
Map
<
String
,
String
>
equipmentType
=
inputItemMapper
.
getEquipParentCode
(
code
);
if
(!
equipmentType
.
containsKey
(
"parent_id"
)
){
objects
.
add
(
code
);
return
objects
;
}
objects
.
add
(
code
);
Map
<
String
,
String
>
parent
=
inputItemMapper
.
getEquipParent
(
equipmentType
.
get
(
"parent_id"
));
return
getEquipParent
(
parent
.
get
(
"code"
),
objects
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment