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
c2f159bd
Commit
c2f159bd
authored
May 13, 2024
by
韩桐桐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg):使用单位新增压力容器设备控制
parent
92d2b882
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
IdxBizJgRegisterInfoServiceImpl.java
.../jg/biz/service/impl/IdxBizJgRegisterInfoServiceImpl.java
+5
-1
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/IdxBizJgRegisterInfoServiceImpl.java
View file @
c2f159bd
...
@@ -503,14 +503,18 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
...
@@ -503,14 +503,18 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
}
}
String
dictCode
=
String
.
format
(
"%s_%s"
,
dictCodePrefix
,
equipAddDictCodeSuffix
);
String
dictCode
=
String
.
format
(
"%s_%s"
,
dictCodePrefix
,
equipAddDictCodeSuffix
);
List
<
DictionarieValueModel
>
result
=
FeignUtil
.
remoteCall
(()
->
Systemctl
.
dictionarieClient
.
dictValues
(
dictCode
));
List
<
DictionarieValueModel
>
result
=
FeignUtil
.
remoteCall
(()
->
Systemctl
.
dictionarieClient
.
dictValues
(
dictCode
));
if
(
CompanyTypeEnum
.
CONSTRUCTION
.
getName
().
equals
(
companyType
)
){
return
result
;
}
// 初始化collect列表
// 初始化collect列表
List
<
DictionarieValueModel
>
collect
=
new
ArrayList
<>();
List
<
DictionarieValueModel
>
collect
=
new
ArrayList
<>();
// 使用单位 && 业务场景businessScenarios为1(场景选择)&& 设备种类为2000(压力容器) =》 设备类别只保留固定式压力容器(2100)
// 使用单位 && 业务场景businessScenarios为1(场景选择)&& 设备种类为2000(压力容器) =》 设备类别只保留固定式压力容器(2100)
// 使用单位 && 业务场景businessScenarios为0(场景选择)&& 设备种类为2000(压力容器) =》 设备类别排除固定式压力容器(2100)
// 使用单位 && 业务场景businessScenarios为0(场景选择)&& 设备种类为2000(压力容器) =》 设备类别排除固定式压力容器(2100)
boolean
shouldInclude2100
=
CompanyTypeEnum
.
USE
.
getName
().
equals
(
companyType
)
&&
"1"
.
equals
(
businessScenarios
)
&&
"2000"
.
equals
(
equList
);
boolean
shouldInclude2100
=
CompanyTypeEnum
.
USE
.
getName
().
equals
(
companyType
)
&&
"1"
.
equals
(
businessScenarios
)
&&
"2000"
.
equals
(
equList
);
collect
=
result
.
stream
()
collect
=
result
.
stream
()
.
filter
(
x
->
shouldInclude2100
?
"2100"
.
equals
(
x
.
getDictDataKey
())
:
!
"2100"
.
equals
(
x
.
getDictDataKey
()))
.
filter
(
x
->
shouldInclude2100
==
"2100"
.
equals
(
x
.
getDictDataKey
()))
.
collect
(
Collectors
.
toList
());
.
collect
(
Collectors
.
toList
());
return
collect
;
return
collect
;
}
}
...
...
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